🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1624

Re: Minimized windows and Icons

#1624
From: lsalomo
Date: Wed, 07 Nov 1990 02:28
23 lines
1171 bytes
Why don't you create the frame WITH the FCF_ICON bit set, subclass it, and
in your subclass procedure, check to see what needs to be drawn under
WM_MINMAXFRAME?  If the ICON is to be drawn, return (*pOldFrameProc), else
do your processing...

To check what is happening with WM_MINMAXFRAME...

case WM_MINMAXFRAME:
   if (((PSWP)mp1)->fs & SWP_MINIMIZE) {
      /* we're being minimized */
   } else {
      /* we're being maximized or restored */
   } /* endif */
   break;

Cheers,
Q - the "Q"uestor for knowledge (, a degree, etc.)

lsalomo@hubcap.clemson.edu
ibmman@clemson.clemson.edu
=============================================================================
"Gee Wally, I think there's something wrong with the Beaver."
=============================================================================
Technical Details
Message-ID: <11415@hubcap.clemson.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ogicse!emory!hubcap!lsalomo
References: <2290@bnlux0.bnl.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ogicse!emory!hubcap!lsalomo
From: lsalomo@hubcap.clemson.edu (lsalomo)
Newsgroups: comp.os.os2.programmer
Subject: Re: Minimized windows and Icons
Message-ID: <11415@hubcap.clemson.edu>
Date: 7 Nov 90 02:28:42 GMT
References: <2290@bnlux0.bnl.gov>
Organization: Clemson University, Clemson, SC
Lines: 23