Article View: borland.public.delphi.nativeapi
Article #125Re: How to disable Move and some! Sizing for form
From: Rob Kennedy
Date: Tue, 20 Jan 2004 18:21
Date: Tue, 20 Jan 2004 18:21
19 lines
1716 bytes
1716 bytes
Gerrit Beuze wrote: > I think I have found a solution by handling MW_NCHITTEST and > clearing the result like this: > > procedure TZoomOverView.WMNCHitTest(var Message: TWMNCHitTest); > begin > inherited; > case Message.Result of > HTRIGHT, HTBOTTOM, HTBOTTOMLEFT, HTBOTTOMRIGHT, > HTCAPTION, HTTOPRIGHT: Message.Result := Windows.HTNOWHERE; > end; > end; If your window has a system menu (accessible with Alt+Space), then a user can use the Move and Size items to circumvent your efforts. When in moving or sizing mode, the arrow keys move the cursor and the window edges. -- Rob
Technical Details
Message-ID:
<400d71a3$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!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<400cebae@newsgroups.borland.com> <400cf914$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f94dd,c0586a03256744bf X-Google-Attributes: gidf94dd,public X-Google-ArrivalTime: 2004-01-20 10:39:29 PST Date: Tue, 20 Jan 2004 12:21:27 -0600 From: Rob Kennedy <.> Organization: none User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.delphi.nativeapi Subject: Re: How to disable Move and some! Sizing for form References: <400cebae@newsgroups.borland.com> <400cf914$1@newsgroups.borland.com> In-Reply-To: <400cf914$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 68.74.197.249 Message-ID: <400d71a3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074622883 68.74.197.249 (20 Jan 2004 10:21:23 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail