Article View: borland.public.cppbuilder.nativeapi
Article #12911Re: HowTo: Limiting window size
From: Jonathan Arnold
Date: Thu, 13 Nov 2003 14:54
Date: Thu, 13 Nov 2003 14:54
22 lines
1954 bytes
1954 bytes
Martin Golm wrote:
> I need to limit the size of a window in the way that it can't be smaller
> than a certain height. That means, if a user sizes the window, its
> client height should not be less than - say 400 pixels.
> I guess I have to use the WM_NCCALCSIZE message, but I'm not sure how to
> use it.
> Can anybody tell how to limit the window size (or even have a working
> example)?
There are also components that will do this in a very easy way. The
ZieglerCollection TzMinMax component does this as a non-visual component
that lets you set all kinds of info about the form : Min/Max size, TopLeft,
Drag width, etc.
http://www.zieglersoft.com
--
Jonathan Arnold C/C++/CBuilder Keen Advice:
http://www.keen.com/categories/categorylist_expand.asp?sid=5156620
Comprehensive C++Builder link site:
http://www.buddydog.org/C++Builder/c++builder.html
Technical Details
Message-ID:
<3fb39b0d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3FB38C27.2C3183E5@gmx.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,498b056766cdd000 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-13 07:01:31 PST Date: Thu, 13 Nov 2003 09:54:06 -0500 From: Jonathan Arnold <jdarnold@buddydog.org> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6a) Gecko/20031030 MultiZilla/1.5.0.3l X-Accept-Language: en-us, en, ja MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: HowTo: Limiting window size References: <3FB38C27.2C3183E5@gmx.de> In-Reply-To: <3FB38C27.2C3183E5@gmx.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 66.92.76.225 Message-ID: <3fb39b0d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1068735245 66.92.76.225 (13 Nov 2003 06:54:05 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail