Article View: borland.public.cppbuilder.nativeapi
Article #12908HowTo: Limiting window size
From: Martin Golm
Date: Thu, 13 Nov 2003 13:50
Date: Thu, 13 Nov 2003 13:50
10 lines
1175 bytes
1175 bytes
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)? TIA, Martin
Technical Details
Message-ID:
<3FB38C27.2C3183E5@gmx.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,498b056766cdd000,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-13 06:10:53 PST Message-ID: <3FB38C27.2C3183E5@gmx.de> Date: Thu, 13 Nov 2003 14:50:31 +0100 From: Martin Golm <golm@gmx.de> X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: HowTo: Limiting window size Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.153.9.28 X-Trace: newsgroups.borland.com 1068731534 62.153.9.28 (13 Nov 2003 05:52:14 -0700) Lines: 10 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail