Article View: borland.public.cppbuilder.nativeapi
Article #5773Re: Customised Title Bar Buttons
From: Robert G. Hoover
Date: Fri, 15 Jul 2005 14:20
Date: Fri, 15 Jul 2005 14:20
29 lines
1883 bytes
1883 bytes
I always wanted to do that myself. I resorted to making a frameless window and drawing my own title bar. Then I was able to add a "dropdown/rollup" button to my custom titlebar. Of course, I had to write my own dragging methods to drag the window under the cursor when the user clicks on the titlebar. But, it was worth it! :) HTH, Rob Michael wrote: > Hello > > I have intercepted the WM_NCPAINT message to customise the Caption Bar and > window border for my application window. The problem is I cannot find a way > to stop Windoze drawing the default Caption Bar buttons (Minimise, Maximise > & Close). > > I need to know two things (I think).... > How to stop Windoze drawing the default Caption Bar buttons. > How to draw my own custom buttons in the Caption Bar. > > Thanks in advance for any help with this. > > Michael > >
Technical Details
Message-ID:
<42d7c62f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!news-hog.berkeley.edu!ucberkeley!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<42d7919a@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a487771a6ef38d6f X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 15 Jul 2005 10:20:28 -0400 From: "Robert G. Hoover" <not.a.real.address@anywhere.sorry> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Customised Title Bar Buttons References: <42d7919a@newsgroups.borland.com> In-Reply-To: <42d7919a@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.142.36.34 Message-ID: <42d7c62f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1121437231 67.142.36.34 (15 Jul 2005 07:20:31 -0700) Lines: 29 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!news-hog.berkeley.edu!ucberkeley!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail