home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: 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
-
- 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
-