Which message (if any) is sent when the dialog is fully shown / drawn / the last child control was created/displayed on a resource dialog? Both the dialog and the child controls are created from a resource inside WinMain().
hwndDialog = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_DIALOG1), nullptr, DialogProc);
ShowWindow(hwndDialog, SW_SHOWNOACTIVATE);
I want a particular code to run when the dialog is fully shown/drawn.
I tried placing the needed code inside the WM_INITDIALOG
and WM_ACTIVATE
message handlers but these events seem to be fired before the dialog’s content is fully drawn/shown. How do I obtain the message that signifies the on_show_dialog-like state?
The dialog has only standard button controls.
1