home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8440 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.6 KB

  1. Path: sparky!uunet!olivea!sgigate!sgi!wdl1!scf16!andres
  2. From: andres@scf16.scf.loral.com (Jeff Andres)
  3. Newsgroups: comp.lang.pascal
  4. Subject: BPW: Closing MainWindow ???
  5. Message-ID: <1993Jan22.144222.8672@scf.loral.com>
  6. Date: 22 Jan 93 14:42:22 GMT
  7. Sender: andres@scf.loral.com (Jeff Andres)
  8. Organization: Loral Space & Range Systems
  9. Lines: 26
  10.  
  11. Using BPW and the resource workshop, I've used the skelton features
  12. of a Borland program to begin hacking/programming in windows. The
  13. program I started with (as I recall) didn't have an Exit function
  14. but it did of course have the standard window close call. I wanted
  15. to add the Exit feauture so I went into RW and created one with some
  16. bogus return code (99). My program could capture this but I couldn't
  17. quite figure out how to shutdown the windows....yes, RTFM...I see
  18. CanClose, but not CLOSE...I see DESTROY, but that doesn't appear
  19. to really shutdown/clean-up gracefully....hints ???
  20.  
  21. After getting frustrated, I decided that Borland had to have added this
  22. feature into one of their examples and stumbled upon HeapSpy. Glancing
  23. through their code I could not find where their Exit was called. I
  24. opened their Menu using RW (HeapSpy.res) and found out that their return
  25. code was set to something like 23400. So I took a chance and changed my
  26. code of 99 to 23400 and BAM, it worked...what is so special about this
  27. number and where is it documented....are there other reserved return
  28. codes ???
  29.  
  30. Cheers,
  31.  
  32. -- 
  33.  
  34.       Jeff Andres             ---  Loral Space and Range Systems
  35.                      ---  1260 Crossman Ave.  MS-S37
  36.   e-mail: andres@scf16.scf.loral.com    ---  Sunnyvale, California  94089
  37.