Click here to Skip to main content
16,005,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalquestion Pin
Archer28231-May-04 17:57
Archer28231-May-04 17:57 
GeneralRe: question Pin
f6431-May-04 19:18
f6431-May-04 19:18 
QuestionDetect SD card ? Pin
bryce31-May-04 15:09
bryce31-May-04 15:09 
AnswerRe: Detect SD card ? Pin
bryce31-May-04 19:41
bryce31-May-04 19:41 
GeneralRebar problem Pin
Maarten Kools31-May-04 14:24
professionalMaarten Kools31-May-04 14:24 
GeneralCreate the CWnd Pin
TrungHuynh31-May-04 13:12
TrungHuynh31-May-04 13:12 
GeneralRe: Create the CWnd Pin
Maarten Kools31-May-04 14:27
professionalMaarten Kools31-May-04 14:27 
GeneralRe: Create the CWnd Pin
Diddy1-Jun-04 1:49
Diddy1-Jun-04 1:49 
The last parameter (the ID) is also used as the menu handler for the window. If that value is non-NULL, the system will attempt to load the menu given in nID and attach it to the window. If you step into Create until you get here:

// allow modification of several common create parameters
AfxHookWindowCreate(this);
HWND hWnd = ::CreateWindowEx(cs.dwExStyle, cs.lpszClass,
cs.lpszName, cs.style, cs.x, cs.y, cs.cx, cs.cy,
cs.hwndParent, cs.hMenu, cs.hInstance, cs.lpCreateParams);

#ifdef _DEBUG
if (hWnd == NULL)
{
TRACE1("Warning: Window creation failed: GetLastError returns 0x%8.8X\n",
GetLastError());
}
#endif

You will see if you put a watch on "@ERR" GetLastError returns 1401, "@ERR,hr" will then show you that maps to "Invaid Menu Handle"
Generalimage processing Pin
giti31-May-04 11:18
giti31-May-04 11:18 
Generalmultiple RPCs in one process. Pin
leonmccalla@hotmail.com31-May-04 9:36
leonmccalla@hotmail.com31-May-04 9:36 
GeneralThread Handle Query Pin
Nirav Doshi31-May-04 9:30
Nirav Doshi31-May-04 9:30 
GeneralRe: Thread Handle Query Pin
Michael Dunn31-May-04 12:26
sitebuilderMichael Dunn31-May-04 12:26 
GeneralRe: Thread Handle Query Pin
Nirav Doshi31-May-04 20:39
Nirav Doshi31-May-04 20:39 
GeneralRe: Thread Handle Query Pin
Diddy1-Jun-04 1:54
Diddy1-Jun-04 1:54 
GeneralRe: Thread Handle Query Pin
Nirav Doshi1-Jun-04 2:13
Nirav Doshi1-Jun-04 2:13 
GeneralRe: Thread Handle Query Pin
Diddy1-Jun-04 5:10
Diddy1-Jun-04 5:10 
GeneralRe: Thread Handle Query Pin
Nirav Doshi1-Jun-04 8:03
Nirav Doshi1-Jun-04 8:03 
GeneralRe: Thread Handle Query Pin
Diddy1-Jun-04 10:27
Diddy1-Jun-04 10:27 
GeneralCostom Draw Problem!!! Pin
VirgoCI31-May-04 8:24
VirgoCI31-May-04 8:24 
GeneralRe: Costom Draw Problem!!! Pin
Antti Keskinen31-May-04 11:46
Antti Keskinen31-May-04 11:46 
GeneralRe: Costom Draw Problem!!! Pin
VirgoCI31-May-04 17:48
VirgoCI31-May-04 17:48 
Generalsmtp question Pin
includeh1031-May-04 8:16
includeh1031-May-04 8:16 
GeneralRe: smtp question Pin
bryce31-May-04 15:10
bryce31-May-04 15:10 
GeneralProblem with SetTextColor Pin
Aviv Halperin31-May-04 7:50
Aviv Halperin31-May-04 7:50 
GeneralRe: Problem with SetTextColor Pin
Brian D31-May-04 8:15
Brian D31-May-04 8:15 

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.