Article View: borland.public.cppbuilder.nativeapi
Article #16818Re: Button
From: CapStick
Date: Fri, 25 Apr 2003 01:52
Date: Fri, 25 Apr 2003 01:52
49 lines
2601 bytes
2601 bytes
"Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org> wrote in message news:3ea89148@newsgroups.borland.com... > A button IS a type of window, a class of window that is pre-defined and > whose code is part of Windows' code. A button does not need to be in a > dialog. It is ok to put a button in a normal (non-dialog) window. The > button is a child of the window in which it resides and is assigned an ID > just like is done any other child window. > > If you wanted to you could write code to paint the image of a button and of > its label in both the normal and depressed state, detect key clicks, hotkey > presses, detect the Enter key when you simulated that it had the focus and > send messages to the parent. That would duplicate the action of a button > and keep you from having to create a window but it is a lot of work and for > little gain. > > . Ed > > > CapStick wrote in message > > news:3ea884eb$1@newsgroups.borland.com... > > > > Using Win32 API free Borland Compiler > > > > Is it possible to create a button > > in a rectangle (not in a dialog) > > > > and associating an ID to A region I guess > > > > without creating a new window just for the button > > My Humblest Apologies. 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 Many hanks --- 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:
<3ea89466@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!in.nntp.be!newsrouter.icnc.com!198.6.0.123!uunet!sac.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ea884eb$1@newsgroups.borland.com> <3ea89148@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-24 19:04:04 PST From: "CapStick" <lol@ljones81.fsnet.co.uk> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ea884eb$1@newsgroups.borland.com> <3ea89148@newsgroups.borland.com> Subject: Re: Button Date: Fri, 25 Apr 2003 02:52:33 +0100 Lines: 51 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: 62.25.218.187 Message-ID: <3ea89466@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1051235430 62.25.218.187 (24 Apr 2003 18:50:30 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!in.nntp.be!newsrouter.icnc.com!198.6.0.123!uunet!sac.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail