🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16731

Re: Button

#16731
From: CapStick
Date: Fri, 25 Apr 2003 19:43
53 lines
2915 bytes
"Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org> wrote in message
news:3ea93061@newsgroups.borland.com...
> That is a quite different problem than what I understood you to want from
> your first message.
>
> The title bar cannot have a window and a button is a window.  It is part
of
> the "non-client" area of the window, the area that is managed by Windows
> itself.
>
> There is a set of messages that Windows sends to the window procedure
which
> relate to the title bar and other non-client areas.  Most of them begin
with
> WM_NC (think of the NC as Non-Client), such as WM_NCPAINT and
WM_NCHITTEST.
>
> You can elect to handle those things and paint the title bar, frame, etc
> yourself.
> As an alternative you could create the window to not have a title bar.
> Windows will handle the drawing of the borders.  Paint a title bar
yourself
> in response to a WM_NCPAINT message.  Put a button in there.  When someone
> clicks in the non-button area of where your version of the title bar is
> painted, respond to the WM_NCHITTEST message by returning HTCAPTION so
that
> Windows acts in the normal click-on-title-bar fashion.  You can get the
> dimensions for the title bar from a call to GetSystemMetrics.
>
> Note that this scheme means that for any of these which you want you will
> have to implement the maximize, minimize or close boxes and system menu
> yourself.
>
> .  Ed
>
> > CapStick wrote in message
> > news:3ea89466@newsgroups.borland.com...
> >
> > I should have stated that
> > i wished to place this button on the Title Bar
> > i have managed thus far to place a rectangle on the bar
>
>

Thank you for all your answers
Much Appreciated


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.471 / Virus Database: 269 - Release Date: 10/04/2003
Technical Details
Message-ID: <3ea98f73@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ea884eb$1@newsgroups.borland.com> <3ea89148@newsgroups.borland.com> <3ea89466@newsgroups.borland.com> <3ea93061@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,b6000c487f45b47e
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-25 12:46:51 PST
From: "CapStick" <lol@ljones81.fsnet.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ea884eb$1@newsgroups.borland.com> <3ea89148@newsgroups.borland.com> <3ea89466@newsgroups.borland.com> <3ea93061@newsgroups.borland.com>
Subject: Re: Button
Date: Fri, 25 Apr 2003 20:43:42 +0100
Lines: 55
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 217.135.42.228
Message-ID: <3ea98f73@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1051299699 217.135.42.228 (25 Apr 2003 12:41:39 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail