www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - GetText

reply "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
parent reply 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
parent reply "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
parent reply 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
parent "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