🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Limiting behavior of sizing border

#2674
From: Larry Salomon Jr.
Date: Wed, 23 Dec 1992 20:40
21 lines
1211 bytes
In <ofBpSPK00WBL01sKsg@andrew.cmu.edu> sl31+@andrew.cmu.edu (Stephen M. Lacy) writes:


>I've noticed some applications that make restrictions on the size of a
>window while you resize it.  For example, when you have an OS/2 CMD.EXE
>window open, and you go to resize it, during the resize, the resize
>border will only go to multiples of the character size, if you know what
>I mean.  I want to be able to do this in one of my programs, how is it
>done?

Subclass the frame and intercept the WM_QUERYTRACKINFO message.

First call the old frame proc, then initialize the appropriate fields to the
limiting sizes.

Cheers,
Q
-- 
"If you choose not to decide, you  | "My other body is in the shop" - seen
 still have made a choice" - Rush  |  on a T-shirt
------------------------------------------------------------------------
Technical Details
Message-ID: <1992Dec23.204011.26686@panix.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!panix!os2man
References: <ofBpSPK00WBL01sKsg@andrew.cmu.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!panix!os2man
From: os2man@panix.com (Larry Salomon Jr.)
Subject: Re: Limiting behavior of sizing border
Message-ID: <1992Dec23.204011.26686@panix.com>
Date: Wed, 23 Dec 1992 20:40:11 GMT
References: <ofBpSPK00WBL01sKsg@andrew.cmu.edu>
Organization: PANIX Public Access Unix, NYC
Lines: 21