🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Iconic Windows

#3245
From: Niels Erik Holm
Date: Fri, 14 Jun 1991 07:41
28 lines
1706 bytes
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
>	WS_ICONIC | WS_OVERLAPPED 	and
>	WS_ICONIC			and
>	WS_ICONIC | WS_OVERLAPPEDWINDOW 
>but none of them worked.  What am I doing wrong.  Other question is, how
>do I prevent it from being maximized, etc? Should I just intercept and ignore
>size messages?  Last Question, how do I replace the system menu with a 
>personalized menu?

The message WM_QUERYOPEN is intended for this purpose. If you return the
value 0 to windows, you indicate that the icon can not be opened into a
ordinary window.

The WM_GETMINMAXINFO message can be used to control the maximum and minimum
size of a window.

Niels Erik Holm
RC International
Denmark
---------------------------------------------------------------------------
Every day, once a day, give yourself a present. Don't plan it, don't wait
for it, just... let it happen.  Could be a new shirt at the men's store,
a catnap in your office chair, or two cups of good, hot, black coffee.
(Dale Cooper in Twin Peaks).
---------------------------------------------------------------------------
Technical Details
Message-ID: <1991Jun14.074156.626@rci.dk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!dkuug!rcbal!neh
References: <1991Jun12.131526.207@minyos.xx.rmit.oz.au> <1991Jun12.193240.22429@athena.mit.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!dkuug!rcbal!neh
From: neh@rci.dk (Niels Erik Holm)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Iconic Windows
Message-ID: <1991Jun14.074156.626@rci.dk>
Date: 14 Jun 91 07:41:56 GMT
References: <1991Jun12.131526.207@minyos.xx.rmit.oz.au> <1991Jun12.193240.22429@athena.mit.edu>
Organization: RC International, Copenhagen, Denmark
Lines: 28