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

C / C++ / MFC

 
QuestionDefault argument for DISP_FUNCTION_ID Pin
Member 1214953910-Mar-16 16:44
Member 1214953910-Mar-16 16:44 
AnswerRe: Default argument for DISP_FUNCTION_ID Pin
Bram van Kampen16-Mar-16 15:45
Bram van Kampen16-Mar-16 15:45 
QuestionBoth EnumchildWindows and GetWindow return NULL for a ChildWindow modeless dialogbox Pin
ForNow10-Mar-16 10:19
ForNow10-Mar-16 10:19 
AnswerRe: Both EnumchildWindows and GetWindow return NULL for a ChildWindow modeless dialogbox Pin
Bram van Kampen10-Mar-16 14:39
Bram van Kampen10-Mar-16 14:39 
GeneralRe: Both EnumchildWindows and GetWindow return NULL for a ChildWindow modeless dialogbox Pin
ForNow10-Mar-16 15:20
ForNow10-Mar-16 15:20 
GeneralRe: Both EnumchildWindows and GetWindow return NULL for a ChildWindow modeless dialogbox Pin
Richard MacCutchan11-Mar-16 3:52
mveRichard MacCutchan11-Mar-16 3:52 
AnswerRe: Both EnumchildWindows and GetWindow return NULL for a ChildWindow modeless dialogbox Pin
Richard MacCutchan10-Mar-16 21:21
mveRichard MacCutchan10-Mar-16 21:21 
AnswerRe: Both EnumchildWindows and GetWindow return NULL for a ChildWindow modeless dialogbox Pin
leon de boer19-Mar-16 21:50
leon de boer19-Mar-16 21:50 
I have three suggestion/comments:

1.) You said quote: "Later I create a modeless Dialog in the childprocess for which I would like the to get the HWND handle."

Doesn't matter which create method you use you get the handle back right then ... so why don't you hold it??????

2.) Like others I wonder why you are using MFC at all which will be problematic why would you not just use the WIN32 API.

3.) If GetWindow(MainFrame,GW_CHILD) and EnumChildWindows are returning false the your created window isn't parented
to the window at all. It's most likely parented to the desktop and again go back to number 1 above show us the how
you created the modeless dialog and check you gave it a parent.

The key point here is a show use the lines of code around the modeless dialog creation call.
In vino veritas

GeneralRe: Both EnumchildWindows and GetWindow return NULL for a ChildWindow modeless dialogbox Pin
ForNow20-Mar-16 12:45
ForNow20-Mar-16 12:45 
QuestionHow Much of WM_USER+X is used by MFC Pin
Bram van Kampen9-Mar-16 14:14
Bram van Kampen9-Mar-16 14:14 
AnswerRe: How Much of WM_USER+X is used by MFC Pin
Jochen Arndt9-Mar-16 21:38
professionalJochen Arndt9-Mar-16 21:38 
AnswerRe: How Much of WM_USER+X is used by MFC Pin
Richard MacCutchan9-Mar-16 22:17
mveRichard MacCutchan9-Mar-16 22:17 
GeneralRe: How Much of WM_USER+X is used by MFC Pin
Bram van Kampen10-Mar-16 14:03
Bram van Kampen10-Mar-16 14:03 
GeneralRe: How Much of WM_USER+X is used by MFC Pin
Richard MacCutchan10-Mar-16 21:15
mveRichard MacCutchan10-Mar-16 21:15 
GeneralRe: How Much of WM_USER+X is used by MFC Pin
Jochen Arndt10-Mar-16 21:38
professionalJochen Arndt10-Mar-16 21:38 
GeneralRe: How Much of WM_USER+X is used by MFC Pin
Richard MacCutchan10-Mar-16 21:50
mveRichard MacCutchan10-Mar-16 21:50 
GeneralRe: How Much of WM_USER+X is used by MFC Pin
Bram van Kampen10-Mar-16 14:08
Bram van Kampen10-Mar-16 14:08 
GeneralRe: How Much of WM_USER+X is used by MFC Pin
Victor Nijegorodov11-Mar-16 3:17
Victor Nijegorodov11-Mar-16 3:17 
QuestionEnsuring code runs synchronously Pin
ForNow9-Mar-16 4:01
ForNow9-Mar-16 4:01 
AnswerRe: Ensuring code runs synchronously Pin
Richard MacCutchan9-Mar-16 6:21
mveRichard MacCutchan9-Mar-16 6:21 
AnswerRe: Ensuring code runs synchronously Pin
Bram van Kampen9-Mar-16 14:29
Bram van Kampen9-Mar-16 14:29 
AnswerRe: Ensuring code runs synchronously Pin
Bram van Kampen9-Mar-16 15:04
Bram van Kampen9-Mar-16 15:04 
QuestionNon display characters for selection count Pin
ForNow8-Mar-16 19:44
ForNow8-Mar-16 19:44 
AnswerRe: Non display characters for selection count Pin
Richard MacCutchan8-Mar-16 21:45
mveRichard MacCutchan8-Mar-16 21:45 
GeneralRe: Non display characters for selection count Pin
ForNow9-Mar-16 3:55
ForNow9-Mar-16 3:55 

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.