Article View: comp.os.os2.programmer
Article #2638How do you trap MINIMIZE
From: Tom J Parry
Date: Mon, 21 Dec 1992 13:15
Date: Mon, 21 Dec 1992 13:15
31 lines
1960 bytes
1960 bytes
I am trying to mimick some of the behaviour of PMSTICKY in one of my programs. The particular behaviour is its ability to lock onto the corner of a window when it is minimized. Using PMTREE I have worked out that PMSTICKY uses one window but I am using two to make things easier. I reparent the invisible window the the object window when it's not in use. Everything works great. When the minimize button of the window is hit - ie. when I get a WM_MINMAXFRAME message, I hide and reparent the window, put the little icon window on the desktop in the right place and everything seems great. The problem is that the window Ihave tried to hide and reparented to the object window is in the minimized window viewer. According to the PM reference and the PDK PM programming volume, if you cast mparam1 to a PSWP and then change it's members then the changed SWP instructions will be used to perform the action. I have changed the (PSWP)mparam1->fl in every possible way I can think of and no matter what I do (including obviously removing the SWP_MINIMIZE flag) I can not get the original window out of the viewer. This is quite a problem because the window, although represented in the minimized window viewer is a child of the object window and so doing anything to it in the viewer stuffs things up quite nicely. Anybody know the correct way to _STOP_ a minimization and do what you want instead? -- Tom J Parry. Your reality is a figment of my imagination.
Technical Details
Message-ID:
<1992Dec21.131505.400@monu6.cc.monash.edu.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!yoyo.cc.monash.edu.au!parryShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!yoyo.cc.monash.edu.au!parry From: parry@yoyo.cc.monash.edu.au (Tom J Parry) Subject: How do you trap MINIMIZE Message-ID: <1992Dec21.131505.400@monu6.cc.monash.edu.au> Originator: parry@yoyo.cc.monash.edu.au Sender: news@monu6.cc.monash.edu.au (Usenet system) Organization: Monash University, Melb., Australia. Date: Mon, 21 Dec 1992 13:15:05 GMT Lines: 31