Article View: comp.os.os2.programmer
Article #1290WM_CLOSE, WM_DESTROY, WM_QUIT
From: Kenneth Porter
Date: Mon, 31 Aug 1992 21:35
Date: Mon, 31 Aug 1992 21:35
13 lines
853 bytes
853 bytes
Just what are the relationship of the various window shutdown messages? What should a window do to shut itself down without shutting down its parent? WinDestroyWindow(hwndSelf)? Which message should handle saving the window's state, WM_CLOSE or WM_DESTROY? My current understanding is that the client window proc should process WM_CLOSE by invoking WinDestroyWindow() on its frame, and then return 0. Any resource deallocation or state-saving is done while processing WM_DESTROY. Ken
Technical Details
Message-ID:
<BtvAMC.BL6@well.sf.ca.us>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!ames!pacbell.com!well!shivaShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!ames!pacbell.com!well!shiva From: shiva@well.sf.ca.us (Kenneth Porter) Subject: WM_CLOSE, WM_DESTROY, WM_QUIT Message-ID: <BtvAMC.BL6@well.sf.ca.us> Sender: news@well.sf.ca.us Organization: Whole Earth 'Lectronic Link Date: Mon, 31 Aug 1992 21:35:00 GMT Lines: 13