home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4611 < prev    next >
Encoding:
Text File  |  1992-08-31  |  830 b   |  24 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!pacbell.com!well!shiva
  3. From: shiva@well.sf.ca.us (Kenneth Porter)
  4. Subject: WM_CLOSE, WM_DESTROY, WM_QUIT
  5. Message-ID: <BtvAMC.BL6@well.sf.ca.us>
  6. Sender: news@well.sf.ca.us
  7. Organization: Whole Earth 'Lectronic Link
  8. Date: Mon, 31 Aug 1992 21:35:00 GMT
  9. Lines: 13
  10.  
  11. Just what are the relationship of the various window shutdown
  12. messages?
  13.  
  14. What should a window do to shut itself down without shutting down its
  15. parent?  WinDestroyWindow(hwndSelf)? Which message should handle saving
  16. the window's state, WM_CLOSE or WM_DESTROY?
  17.  
  18. My current understanding is that the client window proc should process
  19. WM_CLOSE by invoking WinDestroyWindow() on its frame, and then return 0.
  20. Any resource deallocation or state-saving is done while processing
  21. WM_DESTROY.
  22.  
  23. Ken
  24.