🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: API Access ToolBarWindow32 object

#5362
From: Remy Lebeau (TeamB)
Date: Tue, 06 Sep 2005 21:19
18 lines
1598 bytes
"Eangelo" <eangelo@libero.it> wrote in message
news:431de643@newsgroups.borland.com...

> I tried to use "EnumChildWindows" function again in order to access the
> ToolBarWindow32 sub-elements, but the "EnumChildWindows" function
> did not provide additional info.

That is because the buttons are not child windows.

> Is there an API to be used to achieve such a task?

There is a whole chapter in the Win32 API documentation on working with
ToolBar controls.  Please read the documentation.  Specifically, look at the
TB_BUTTONCOUNT, TB_GETBUTTON, and TB_PRESSBUTTON messages.


Gambit
Technical Details
Message-ID: <431e07eb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <431de643@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,25927713f6122048
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <431de643@newsgroups.borland.com>
Subject: Re: API Access ToolBarWindow32 object
Date: Tue, 6 Sep 2005 14:19:59 -0700
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <431e07eb$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1126041579 68.69.17.41 (6 Sep 2005 14:19:39 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail