🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Minimized windows and Icons

#1612
From: Chris Armstrong
Date: Fri, 02 Nov 1990 20:39
21 lines
1576 bytes
I have a program which would sometimes like to show an Icon when it is 
minimized and at other times just show a very small version of the graph in
the window.  I know how to do these things separately but I can't seem to
switch between the two states.  It seems that if the FCF_ICON or the FS_ICON
flags are not set when the frame is created (in this case with WinCreateStd
Window) then there is no way the frame will use an icon itself.  I've tried
using the WinCreateFrameControls function from my window processing function
with no luck.  Does anyone know if there is any way to tell the frame window
to use an icon even when it wasn't created with the _ICON flags.  Or if it
is created with the _ICON flags how to tell it not to use the icon.  I've
also tried sending the frame window the SETICON message, again with no luck.
So far the best I've managed to come up with is to create the frame without the
_ICON flags and to draw an icon if the WM_PAINT message detects that the window
is minimized.  To get the minimized icon to be dragged by the mouse I have to
use the WM_MOUSEMOVE message and query whether the window is minimized each
time which is somewhat clumsy.

Any insight would be appreciated,

Chris Armstrong
Technical Details
Message-ID: <2290@bnlux0.bnl.gov>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!dino!sharkey!bnlux0!cpa

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!dino!sharkey!bnlux0!cpa
From: cpa@bnlux0.bnl.gov (Chris Armstrong)
Newsgroups: comp.os.os2.programmer
Subject: Minimized windows and Icons
Message-ID: <2290@bnlux0.bnl.gov>
Date: 2 Nov 90 20:39:32 GMT
Organization: Brookhaven National Lab
Lines: 21