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
What message should I process to create dialog without any user input or command
Do you mean that you already have a window but want to show a dialog box?
No, I meant it should work like I run program, it shows main window and immediately after that shows dialog box
would be usefull when you post some code. i dont understand what you want to do
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.
In the DialogBoxParam, hWndParent should be the HWND we just created.
Ultrano, thank you!
Or, in the WM_CREATE message of the main window call DialogBoxParam. Like:
.if uMsg==WM_CREATE
invoke DialogboxParam