win32 window + dialog + messagebox
-
I have winodow and create dialog with createdialog() function. all works fine. But in same time I have to show DialogBox on the dialog. and in this moment DialogBox can't take focus - it has no action on button click on it...can I do something with it?
-
I have winodow and create dialog with createdialog() function. all works fine. But in same time I have to show DialogBox on the dialog. and in this moment DialogBox can't take focus - it has no action on button click on it...can I do something with it?
Member 3825493 wrote:
But in same time I have to show DialogBox on the dialog.
How are you creating this second dialog box? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Member 3825493 wrote:
But in same time I have to show DialogBox on the dialog.
How are you creating this second dialog box? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
- first Dialog - CreateDialog(...) 2) messageBox - MessageBox(...)
-
Member 3825493 wrote:
But in same time I have to show DialogBox on the dialog.
How are you creating this second dialog box? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
CreateDialog(hWnd,...) - child of main window MessageBox(m_hWnd,..) - child of the Dialog
-
CreateDialog(hWnd,...) - child of main window MessageBox(m_hWnd,..) - child of the Dialog
Which dialog can't get user input? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Which dialog can't get user input? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
MessageBox.
-
MessageBox.
I can't imagine what's going wrong. What does the MessageBox() call code look like?
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
I can't imagine what's going wrong. What does the MessageBox() call code look like?
Mark Salsbery Microsoft MVP - Visual C++ :java:
MessageBox(m_hWnd,text,NULL,NULL);
-
MessageBox(m_hWnd,text,NULL,NULL);
Never mind the deleted reply - the default is MB_OK.... It really should work - MessageBox() has been around a long long time.
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Never mind the deleted reply - the default is MB_OK.... It really should work - MessageBox() has been around a long long time.
Mark Salsbery Microsoft MVP - Visual C++ :java:
I don't now what to say - but even if I make another modless dialog child of my first - it can't take focus...something wrong, but I have no idea what.. :(