www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++.windows.32-bits - GetText

↑ ↓ ← "Phill" <phill pacific.net.au> writes:
Hi there
Is there a way to get the Text of the clicked button
without iterating through all of the buttons to
check the state?

Any help is be appreciated

Phill.
Jan 08 2004
↑ ↓ Jan Knepper <jan smartsoft.us> writes:
Yeah, the button should have an ID and/or and HWND that is being passed 
to you message handler. There you should be able to do a GetWindowText 
on the HWND.



Phill wrote:
 Hi there
 Is there a way to get the Text of the clicked button
 without iterating through all of the buttons to
 check the state?
 
 Any help is be appreciated
 
 Phill.
 
 

-- ManiaC++ Jan Knepper
Jan 09 2004
↑ ↓ "Phill" <phill pacific.net.au> writes:
Ok I thought there was that method,
but I didnt know you could use it with a
button(Im from Java).

Thanks Phill.


"Jan Knepper" <jan smartsoft.us> wrote in message
news:btmj4v$sl8$1 digitaldaemon.com...
 Yeah, the button should have an ID and/or and HWND that is being passed
 to you message handler. There you should be able to do a GetWindowText
 on the HWND.



 Phill wrote:
 Hi there
 Is there a way to get the Text of the clicked button
 without iterating through all of the buttons to
 check the state?

 Any help is be appreciated

 Phill.

-- ManiaC++ Jan Knepper

Jan 09 2004
↑ ↓ Jan Knepper <jan smartsoft.us> writes:
Phill wrote:

 Ok I thought there was that method,
 but I didnt know you could use it with a
 button(Im from Java).

Ah! That explains something... -- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.org
Jan 09 2004
↑ ↓ → "Phill" <phill pacific.net.au> writes:
yes thats the reason I called it a method :o))
I keep forgetting!

Phill.


"Jan Knepper" <jan smartsoft.us> wrote in message
news:btn7lh$1tbi$2 digitaldaemon.com...
 Phill wrote:

 Ok I thought there was that method,
 but I didnt know you could use it with a
 button(Im from Java).

Ah! That explains something... -- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.org

Jan 09 2004