My task is to display main window and just after that display a dialog box.
What message should I process to create dialog without any user input or command
Posted on 2005-10-26 03:20:21 by veach1
Do you mean that you already have a window but want to show a dialog box?
Posted on 2005-10-26 03:30:50 by roticv
No, I meant it should work like I run program, it shows main window and immediately after that shows dialog box
Posted on 2005-10-26 04:09:34 by veach1
would be usefull when you post some code. i dont understand what you want to do
Posted on 2005-10-26 10:03:31 by diablo2oo2
It's quite simple - after CreateWindowEx, call DialogBoxParam. Don't forget to preserve the first window's HWND in a global or local variable.
In the DialogBoxParam, hWndParent should be the HWND we just created.
Posted on 2005-10-26 13:56:33 by Ultrano
Ultrano, thank you!
Posted on 2005-10-27 01:34:57 by veach1
Or, in the WM_CREATE message of the main window call DialogBoxParam. Like:

.if uMsg==WM_CREATE
    invoke DialogboxParam

Posted on 2005-10-28 00:39:08 by programinator