Article View: borland.public.cppbuilder.nativeapi
Article #11591Re: Prevent Window Resizing...
From: Angus
Date: Fri, 30 Jan 2004 04:10
Date: Fri, 30 Jan 2004 04:10
29 lines
1578 bytes
1578 bytes
Vlad,
Try
..header
protected:
void __fastcall FixedFormSize(TWMGetMinMaxInfo& Msg);
public:
BEGIN_MESSAGE_MAP
MESSAGE_HANDLER(WM_GETMINMAXINFO,TWMGetMinMaxInfo,FixedFormSize)
END_MESSAGE_MAP(TForm)
..cpp
void __fastcall TForm::FixedFormSize(TWMGetMinMaxInfo& Msg){
TForm::Dispatch(&Msg);
Msg.MinMaxInfo->ptMinTrackSize.y = VAL1;
Msg.MinMaxInfo->ptMaxTrackSize.y = VAL2;
}
rgds Angus.
"Vladimir Stefanovic" <antivari@ptt.yu> wrote in message
news:4007efe9@newsgroups.borland.com...
> If I have a Window HWND (say MyWinHandle), how can I
> prevent that window from resizing?
>
> Vladimir.
>
>
>
Technical Details
Message-ID:
<4019d921@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4007efe9@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,f9c04f3cbeda12c9,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-29 20:19:33 PST Reply-To: "Angus" <anguspickton@yahoo.com> From: "Angus" <aguspickton@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4007efe9@newsgroups.borland.com> Subject: Re: Prevent Window Resizing... Date: Fri, 30 Jan 2004 17:10:15 +1300 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 218.101.66.254 Message-ID: <4019d921@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1075435809 218.101.66.254 (29 Jan 2004 20:10:09 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail