Path: 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 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." =============================================================================