Simple Windows Question
I have a program with 2 windows, one main and an auxilliary one. When I close the auxilliary one, I can't get it to show again (with the ShowWindow () function).
I'm guessing it's being destroyed - not simply hidden - even though I'm issuing a hide command from the window's event handler (under WM_CLOSE). I'm destroying both from the main window's WM_CLOSE.
Can anyone help? I'm guessing it's going to be something simple...
Make sure that DefWindowProc() isn't handling the message and that you return 0 from your message handler after hiding the window.