Article View: borland.public.cppbuilder.nativeapi
Article #5775Re: Customised Title Bar Buttons
From: Alan Bellingham
Date: Fri, 15 Jul 2005 14:45
Date: Fri, 15 Jul 2005 14:45
25 lines
2004 bytes
2004 bytes
"Robert G. Hoover" <not.a.real.address@anywhere.sorry> wrote: >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! :) Funnily enough, I did that too. The results were very flash. Give me raw mouse clicks, keyboard events and window drawing code, and any control is possible (though maybe tediously intricate). The single most useful function for the drawing side is DrawFrameControl(), which you could use to draw the buttons yourself exactly as they would have been. It's a shame it wasn't there ... 14 years ago under Windows 3.1. (And one of these days, I really should go in and add use of that function to the current version of that window code. I've used it elsewhere since, but not there.) Alan Bellingham -- ACCU Conference 2006 - 19-22 April, Randolph Hotel, Oxford, UK
Technical Details
Message-ID:
<ggifd1dcadi6hkhgmfcbd9r0upjcpkelku@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42d7919a@newsgroups.borland.com> <42d7c62f@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 From: Alan Bellingham <alanb@episys.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Customised Title Bar Buttons Date: Fri, 15 Jul 2005 15:45:11 +0100 Reply-To: alanb@episys.com Message-ID: <ggifd1dcadi6hkhgmfcbd9r0upjcpkelku@4ax.com> References: <42d7919a@newsgroups.borland.com> <42d7c62f@newsgroups.borland.com> X-Newsreader: Forte Agent 2.0/32.652 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 193.129.251.253 X-Trace: newsgroups.borland.com 1121438709 193.129.251.253 (15 Jul 2005 07:45:09 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail