Click here to Skip to main content
15,880,543 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: UDP Sockets and Windows 10 Pin
Randor 28-Jun-17 8:00
professional Randor 28-Jun-17 8:00 
GeneralRe: UDP Sockets and Windows 10 Pin
leon de boer28-Jun-17 8:27
leon de boer28-Jun-17 8:27 
QuestionDirect creation of CWnd Object Pin
al250027-Jun-17 5:16
al250027-Jun-17 5:16 
AnswerRe: Direct creation of CWnd Object Pin
Victor Nijegorodov27-Jun-17 6:17
Victor Nijegorodov27-Jun-17 6:17 
AnswerRe: Direct creation of CWnd Object Pin
Victor Nijegorodov27-Jun-17 6:27
Victor Nijegorodov27-Jun-17 6:27 
GeneralRe: Direct creation of CWnd Object Pin
leon de boer27-Jun-17 6:49
leon de boer27-Jun-17 6:49 
GeneralRe: Direct creation of CWnd Object Pin
Victor Nijegorodov27-Jun-17 10:45
Victor Nijegorodov27-Jun-17 10:45 
GeneralRe: Direct creation of CWnd Object Pin
leon de boer27-Jun-17 19:49
leon de boer27-Jun-17 19:49 
I left it because I understand you have linked the MSDN Page but that is incorrect which I suspected and I tried it Smile | :)

Download my code and change the MDI child create removing the WS_OVERLAPPEDWINDOW and replace with his flags
if (Child == 0){
    Child = CreateWindowEx(WS_EX_MDICHILD,
	MDICHILD_CLASSNAME, _T("OpenGL MDI Client"),
	WS_CHILD | WS_VISIBLE | WS_CAPTION | WS_SIZEBOX | WS_MINIMIZEBOX | WS_MAXIMIZEBOX/*WS_OVERLAPPEDWINDOW*/,
	CW_USEDEFAULT, CW_USEDEFAULT,
	CW_USEDEFAULT, CW_USEDEFAULT,
	AppMDIClient, NULL, GetModuleHandle(0),
	NULL);							// Create the MDI Child
}

Code still works perfectly as I suspected from my playing around with MDI because I know what all the flags do. The statement was possibly true historically but current API does not respect that documentation.
So you are technically correct from documentation and he should just use WS_OVERLAPPEDWINDOW but his flags work regardless and isn't the problem.

I am not posting hypothetical I physically checked it because I have working MDI samples and worked thru this stuff.

For the record the current windows API seems to use WS_SYSMENU as a flag to engage the keyboard accelerator keystrokes to the MDI child window. That is all I can find that it does. The current documentation says it controls the "system menu box" which doesn't even exist anymore (all that functionality is under the top left title icon and it ignores the flag). So the MSDN documentation needs a little update. I can imagine some poor new user going what is this "system menu box" they are talking about.
In vino veritas


modified 28-Jun-17 2:53am.

GeneralRe: Direct creation of CWnd Object Pin
al250029-Jun-17 5:23
al250029-Jun-17 5:23 
GeneralRe: Direct creation of CWnd Object Pin
leon de boer29-Jun-17 6:25
leon de boer29-Jun-17 6:25 
QuestionHow to proceed and execute LDPC decoding using Data Structure in C Pin
Member 1326117526-Jun-17 21:15
Member 1326117526-Jun-17 21:15 
AnswerRe: How to proceed and execute LDPC decoding using Data Structure in C Pin
Richard MacCutchan26-Jun-17 22:59
mveRichard MacCutchan26-Jun-17 22:59 
AnswerRe: How to proceed and execute LDPC decoding using Data Structure in C Pin
leon de boer27-Jun-17 5:36
leon de boer27-Jun-17 5:36 
GeneralRe: How to proceed and execute LDPC decoding using Data Structure in C Pin
Member 1326117527-Jun-17 19:19
Member 1326117527-Jun-17 19:19 
QuestionDisecting a PE File, Revisited Pin
Bram van Kampen26-Jun-17 14:56
Bram van Kampen26-Jun-17 14:56 
Questionhow to use memset to fill a char array with space key? Pin
focusdoit25-Jun-17 3:01
focusdoit25-Jun-17 3:01 
AnswerRe: how to use memset to fill a char array with space key? Pin
leon de boer25-Jun-17 3:12
leon de boer25-Jun-17 3:12 
GeneralRe: how to use memset to fill a char array with space key? Pin
focusdoit25-Jun-17 3:53
focusdoit25-Jun-17 3:53 
GeneralRe: how to use memset to fill a char array with space key? Pin
harold aptroot25-Jun-17 4:03
harold aptroot25-Jun-17 4:03 
GeneralRe: how to use memset to fill a char array with space key? Pin
focusdoit25-Jun-17 4:11
focusdoit25-Jun-17 4:11 
GeneralRe: how to use memset to fill a char array with space key? Pin
harold aptroot25-Jun-17 4:23
harold aptroot25-Jun-17 4:23 
GeneralRe: how to use memset to fill a char array with space key? Pin
Rick York26-Jun-17 7:50
mveRick York26-Jun-17 7:50 
GeneralRe: how to use memset to fill a char array with space key? Pin
leon de boer26-Jun-17 8:05
leon de boer26-Jun-17 8:05 
QuestionC programming Determine Students grade Pin
hoangtrungl22-Jun-17 22:47
hoangtrungl22-Jun-17 22:47 
AnswerRe: C programming Determine Students grade Pin
OriginalGriff22-Jun-17 22:54
mveOriginalGriff22-Jun-17 22:54 

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.