Probably a simple answer but I cannot seem to find it 8-(
I want to check if a button on a dialog is Enabled or Disabled, I'm nearly There...
I've located the Dialog Window, found the handle for the button and I can simulate the button click all using API. But I need to check whether the btton is Enabled before I simulate the button click.
Does anybody know how to check the buttons enabled property in API once you have the handle ?
Re: API Calls - Check if a Button is Enabled/Disabled
'****
As not said: tested again - iswindowenabled worked
just fine!!
'****
Or you can try with GetwindowLong
but you might have to find out if the byte I test
for Vb CommandButton is the same for the control
of the software you are looking at - as it might not
be the same...
Let us know if any solution works (I tried the
IsWindowEnabled but it does not seem to work...)
Last edited by Cimperiali; November 26th, 2004 at 10:24 AM.
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.