Modal or Modeless ?
-
i want to close dialog from app other than the caller, by processing a WM_CLOSE. i need to determine from EndDialog and DestroyWindow, which one to use for a purticular dialog. //my idea is to call EndDialog() and followed by DestroyWindow() for every HWND, but im not sure this will work as expected.
Thanks & Regards
-
i want to close dialog from app other than the caller, by processing a WM_CLOSE. i need to determine from EndDialog and DestroyWindow, which one to use for a purticular dialog. //my idea is to call EndDialog() and followed by DestroyWindow() for every HWND, but im not sure this will work as expected.
Thanks & Regards
Are you aware this (from MSDN [^]): An application calls EndDialog from within the dialog box procedure; the function must not be used for any other purpose. ?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke