- DestroyWindow() results in a WM_DESTROY message - The WM_DESTROY calls PostQuitMessage (as yours already does) CreateDialog is used to create a modeless dialog, which allows other windows to function while it's displayed. It has to be destroyed using DestroyWindow DialogBox is used to create a modal dialog, which disables the other application windows until is is close. This type of dialog is closed by a call to EndDialog from inside the dialog proc. |