Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C with Visual Studio 2010 Pin
rp_suman28-Jul-10 6:19
rp_suman28-Jul-10 6:19 
GeneralRe: C with Visual Studio 2010 Pin
nhqlbaislwfiikqraqnm28-Jul-10 6:26
nhqlbaislwfiikqraqnm28-Jul-10 6:26 
GeneralRe: C with Visual Studio 2010 Pin
N a v a n e e t h28-Jul-10 6:38
N a v a n e e t h28-Jul-10 6:38 
GeneralMessage Closed Pin
28-Jul-10 6:50
nhqlbaislwfiikqraqnm28-Jul-10 6:50 
GeneralRe: C with Visual Studio 2010 Pin
rp_suman28-Jul-10 6:56
rp_suman28-Jul-10 6:56 
GeneralRe: C with Visual Studio 2010 Pin
Cedric Moonen28-Jul-10 8:10
Cedric Moonen28-Jul-10 8:10 
GeneralRe: C with Visual Studio 2010 Pin
rp_suman28-Jul-10 6:45
rp_suman28-Jul-10 6:45 
QuestionGetWindow() Pin
Caslen28-Jul-10 4:25
Caslen28-Jul-10 4:25 
I'm using a CStatic as a 'draw' window in a dialog. To get the extents of the window I'm using:-

CDC *pDC;
CWnd *wnd;
CRect R;

pDC = AWindow.GetDC();

wnd = pDC->GetWindow();
wnd->GetClientRect(&R);

This works fine in Debug but craps out in Release, at the moment I'm stumped, I've narrowed it down to being wnd=pDC->GetWindow() as the problem, or at least thats where is stops, any ideas?
AnswerRe: GetWindow() Pin
Maximilien28-Jul-10 4:48
Maximilien28-Jul-10 4:48 
GeneralRe: GetWindow() Pin
Caslen28-Jul-10 5:27
Caslen28-Jul-10 5:27 
Questionswitch by type_id (using RTTI) Pin
sashoalm28-Jul-10 1:41
sashoalm28-Jul-10 1:41 
AnswerRe: switch by type_id (using RTTI) Pin
Cool_Dev28-Jul-10 2:13
Cool_Dev28-Jul-10 2:13 
AnswerRe: switch by type_id (using RTTI) PinPopular
Cedric Moonen28-Jul-10 2:15
Cedric Moonen28-Jul-10 2:15 
GeneralRe: switch by type_id (using RTTI) Pin
sashoalm28-Jul-10 2:40
sashoalm28-Jul-10 2:40 
GeneralRe: switch by type_id (using RTTI) Pin
Cedric Moonen28-Jul-10 3:00
Cedric Moonen28-Jul-10 3:00 
AnswerRe: switch by type_id (using RTTI) Pin
Aescleal28-Jul-10 4:30
Aescleal28-Jul-10 4:30 
GeneralRe: switch by type_id (using RTTI) Pin
Cedric Moonen28-Jul-10 8:54
Cedric Moonen28-Jul-10 8:54 
QuestionEnter button not working on CBitmapButton. Pin
Le@rner28-Jul-10 1:34
Le@rner28-Jul-10 1:34 
AnswerRe: Enter button not working on CBitmapButton. Pin
ARopo28-Jul-10 2:20
ARopo28-Jul-10 2:20 
GeneralRe: Enter button not working on CBitmapButton. Pin
Le@rner28-Jul-10 2:30
Le@rner28-Jul-10 2:30 
QuestionAdding combo box to list control Pin
Sakhalean28-Jul-10 1:16
Sakhalean28-Jul-10 1:16 
AnswerRe: Adding combo box to list control Pin
Cool_Dev28-Jul-10 1:22
Cool_Dev28-Jul-10 1:22 
AnswerRe: Adding combo box to list control Pin
David Crow28-Jul-10 3:09
David Crow28-Jul-10 3:09 
AnswerRe: Adding combo box to list control Pin
Rolf Kristensen29-Jul-10 2:29
Rolf Kristensen29-Jul-10 2:29 
QuestionPassing Variable between Files Pin
T.RATHA KRISHNAN28-Jul-10 0:30
T.RATHA KRISHNAN28-Jul-10 0:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.