Is there a way that I can make it so that when someone clicks the close 'cross' button in the upper right corner of the window, it does not destroy the window, but, rather, hide the window? Like with ShowWindow(hWnd, SW_HIDE)
The above code will hide the window for 5 seconds then show it again when you click on close. You don't need to use ShowWindow(hWnd, SW_HIDE), CDialog class has it's own ShowWindow function that comes from CWnd so you'll find most views including the frame have this too.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.