HI I am create a mimic of the Windows Context menu.
Show dialog does the follow:
- creates a dialog using
CreateDialogIndirectParam -
runs a message loop:
while ( ContinueModal() && GetMessage(&msg, NULL, 0, 0) ) { TranslateMessage( &msg ); DispatchMessage( &msg ); } -
I the dialog I look for lost focus event of the new window there I set the
ContinueModelflag to false and callEndDialog/DestroyWindow.- Calling
EndDialogdoesn’t kill my dialog,DestroyWindowdoes. Is this ok, can anyone explain why?
- Calling
Thanks!
D.
Like it says in the first line of the documentation,
EndDialogends modal dialogs. Your dialog is not modal, soEndDialogis the wrong function. The documentation forCreateDialogIndirectParamsays