home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / os2 / programm / 7156 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.9 KB  |  43 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!yoyo.cc.monash.edu.au!parry
  3. From: parry@yoyo.cc.monash.edu.au (Tom J Parry)
  4. Subject: How do you trap MINIMIZE
  5. Message-ID: <1992Dec21.131505.400@monu6.cc.monash.edu.au>
  6. Originator: parry@yoyo.cc.monash.edu.au
  7. Sender: news@monu6.cc.monash.edu.au (Usenet system)
  8. Organization: Monash University, Melb., Australia.
  9. Date: Mon, 21 Dec 1992 13:15:05 GMT
  10. Lines: 31
  11.  
  12. I am trying to mimick some of the behaviour of PMSTICKY in one of my
  13. programs. The particular behaviour is its ability to lock onto the corner
  14. of a window when it is minimized.
  15.  
  16. Using PMTREE I have worked out that PMSTICKY uses one window but I am using
  17. two to make things easier. I reparent the invisible window the the object
  18. window when it's not in use.
  19.  
  20. Everything works great. When the minimize button of the window is hit - ie.
  21. when I get a WM_MINMAXFRAME message, I hide and reparent the window,
  22. put the little icon window on the desktop in the right place and everything
  23. seems great. The problem is that the window Ihave tried to hide and
  24. reparented to the object window is in the minimized window viewer.
  25.  
  26. According to the PM reference and the PDK PM programming volume, if you
  27. cast mparam1 to a PSWP and then change it's members then the changed SWP
  28. instructions will be used to perform the action. I have changed the
  29. (PSWP)mparam1->fl in every possible way I can think of and no matter what I
  30. do (including obviously removing the SWP_MINIMIZE flag) I can not get the
  31. original window out of the viewer.
  32.  
  33. This is quite a problem because the window, although represented in the
  34. minimized window viewer is a child of the object window and so doing
  35. anything to it in the viewer stuffs things up quite nicely.
  36.  
  37. Anybody know the correct way to _STOP_ a minimization and do what you want
  38. instead?
  39.  
  40. -- 
  41. Tom J Parry.
  42. Your reality is a figment of my imagination.
  43.