🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Limiting Window Size

#63
From: Larry Salomon Jr.
Date: Fri, 30 Oct 1992 13:22
23 lines
1159 bytes
In <26914@oasys.dt.navy.mil> photons@oasys.dt.navy.mil (Julie Mills) writes:


>How can I limit the size of a window?  ie.  If the user sizes the window
>too small, I want it to snap back to what it was.

>Please respond to:  photons@oasys.dt.navy.mil

> Thanx,

>julie

You can do it, but it won't work quite the way you've described.  Subclass
the frame window and intercept the WM_QUERYTRACKINFO message.  The proper 
thing to do is to call the old frame procedure, then set the ptlMinTrackSize
to the minimum allowable size of the window.

Cheers,
Q
-- 
"If you choose not to decide, you  | "A fool and his money are fun to go
 still have made a choice" - Rush  |  out with" - seen on a T-shirt
------------------------------------------------------------------------
Technical Details
Message-ID: <1992Oct30.132223.2335@panix.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!rutgers!cmcl2!panix!os2man
References: <26914@oasys.dt.navy.mil>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!rutgers!cmcl2!panix!os2man
From: os2man@panix.com (Larry Salomon Jr.)
Newsgroups: comp.os.os2.programmer
Subject: Re: Limiting Window Size
Message-ID: <1992Oct30.132223.2335@panix.com>
Date: 30 Oct 92 13:22:23 GMT
References: <26914@oasys.dt.navy.mil>
Distribution: usa
Organization: PANIX Public Access Unix, NYC
Lines: 23