home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / programm / 7407 < prev    next >
Encoding:
Text File  |  1993-01-07  |  755 b   |  18 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!well!shiva
  3. From: shiva@well.sf.ca.us (Kenneth Porter)
  4. Subject: persistent hide state
  5. Message-ID: <C0IK1L.33D@well.sf.ca.us>
  6. Sender: news@well.sf.ca.us
  7. Organization: Whole Earth 'Lectronic Link
  8. Date: Fri, 8 Jan 1993 02:24:56 GMT
  9. Lines: 7
  10.  
  11. I want my application to remember it's hidden state across
  12. invokations.  It's not a WPS app, so it can't use the class hierarchy
  13. to do this. My thought was that I could intercept some message
  14. indicating hide/show state and save it to an ini file. This currently
  15. doesn't quite work for me: I'm intercepting WM_SHOW, but I get a hide
  16. message (WM_SHOW with mp1=false) when the application closes while
  17. visible. Has someone else already done this?  What's the trick?
  18.