Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Catch CloseWindow and DestroyWindow

Status
Not open for further replies.

ronnyjljr

IS-IT--Management
Nov 23, 2003
249
0
0
US
When a user clicks the underscore in the top right of the window, does this send the message CloseWindow()?

And if it does, can I override the method to do what I want it to do?

Same thing for the X, does it send DestroyWindow and can I override it?

Thanks,
Ron

cout << "If you don't know where you want to go, we'll make sure you get taken";
 
You can hook/catch messages WM_CLOSE and WM_DESTROY (or work with their handlers ON_WM_CLOSE( ) and ON_WM_DESTROY( ) in MFC).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top