Article View: borland.public.cppbuilder.nativeapi
Article #650How to reduce client area of the main frame?
From: Renald Yazmir
Date: Thu, 14 Feb 2008 21:35
Date: Thu, 14 Feb 2008 21:35
36 lines
2115 bytes
2115 bytes
Hello, I have a MDI document. I created a custom icon bar which I permanently attach to the main window. This custom icon bar is just a child window with pictures. When I move any child window by clicking on its title bar and dragging I want to stop as soon as I bump into my custom icon bar. Two things must occur; the window stops and cursor stops when it bumps to the custom icon bar. Basically it needs to behave the same as if window is moved towards the menu bar. Currently to achieve it I use ClipCursor(&clip_rect); while processing WM_MOVING message. I would like to use a different approach. Is it possible to reset a client rectangle of the main window (main frame)? If client rectangle of the main window is reduced by the height of custom icon bar then window will police the mouse motion and will stop when cursor bumps into the icon bar while dragging the child window. If it is not possible to reduce the client area of the main frame, can you suggest other ways to achieve what I described above? Thank you in advance. Rony
Technical Details
Message-ID:
<47b4b417$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,505df25bc3ca484a,start X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Renald Yazmir" <renald@partmaker.com> From: "Renald Yazmir" <renald@partmaker.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: How to reduce client area of the main frame? Date: Thu, 14 Feb 2008 16:35:26 -0500 Lines: 42 Organization: IMCS Inc X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 66.106.28.123 Message-ID: <47b4b417$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1203024919 66.106.28.123 (14 Feb 2008 13:35:19 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail