🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #3215

Windows of Fixed Size (was Re: Iconic Windows)

#3215
From: Thomas B. Kinsman (37681)
Date: Wed, 12 Jun 1991 21:56
31 lines
2436 bytes
In article <...> press@venice.sedd.trw.com (Barry Press) writes:
>In article <...> memetral@athena.mit.edu (Max E. Metral) writes:
>>Hello Again folks.  This time, I'm trying to create an application that
>>stays as an Icon, like Screen Peace.  I tried using
>There are two things to do.  1. pass the right SW_ code to ShowWindow.
>2. thing is that you have to field WM_QUERYOPEN...
>Barry Press                                 Internet: press@venice.sedd.trw.com

Barry,
   (Don't you hate seeing things that you wrote, over and over again...  :-))
   Just wanted to say thanks for the solution on how to keep a window iconic.
I was thinking that it would be along the lines of processing WM_GETMINMAXINFO.
Just goes to show all the nuances to Windows.

   Closely related problem:  How do you write an application that is the same
size, except when iconified?  Is it just processing WM_GETMINMAXINFO, or is
there more to it?
   WM_GETMINMAXINFO is sent when WINDOWS wants to know the maximized size of
the window, the minimum or maximum tracking size of the window, or the maximized
position of the window.
   Setting all the values of sizes the same doesn't work.  The result was that
when you iconify it, WINDOWS thinks that you have an icon the size of your
original window.  In fact, it *seems* that your ICON receives a WM_PAINT, and
it paints the usual client-information!  What happens probably isn't that easy,
but that seems to be the idea.
   What else am I missing?  Thanks in advance.
-- 
----
thomas@ssd.kodak.com	Voice: 716/477-9379(w)		Fax: 716/722-5008
Thomas B. Kinsman, Eastman Kodak Co., Flr 3, Bldg 65, RL, Roch., NY 14650-1805
"Knowledge is what's left when you throw the books away."	- A. Einstein
Technical Details
Message-ID: <1991Jun12.215651.1313@ssd.kodak.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!think.com!mintaka!spdcc!dirtydog.ima.isc.com!ism.isc.com!ispd-newsserver!thomas
References: <1991Jun12.131526.207@minyos.xx.rmit.oz.au> <1991Jun12.193240.22429@athena.mit.edu> <1124@venice.SEDD.TRW.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!think.com!mintaka!spdcc!dirtydog.ima.isc.com!ism.isc.com!ispd-newsserver!thomas
From: thomas@ssd.kodak.com (Thomas B. Kinsman (37681))
Newsgroups: comp.windows.ms.programmer
Subject: Windows of Fixed Size (was Re: Iconic Windows)
Summary: What do you have to do?
Keywords: ICONIC WM_GETMINMAXINFO WM_SIZE
Message-ID: <1991Jun12.215651.1313@ssd.kodak.com>
Date: 12 Jun 91 21:56:51 GMT
References: <1991Jun12.131526.207@minyos.xx.rmit.oz.au> <1991Jun12.193240.22429@athena.mit.edu> <1124@venice.SEDD.TRW.COM>
Sender: Thomas B. Kinsman
Organization: Eastman Kodak
Lines: 31