News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

is button disabled?

Started by Trope, September 26, 2005, 05:24:18 PM

Previous topic - Next topic

Trope

I have looked everywhere and can't find this...

i got a button

IDC_MYBUTTON

trying to determin whether it is disabled or not.

I have seen this somewhere before, but can't find it now.

Anyone remember?


Ps. Tried this, didn't work:


invoke  IsWindowEnabled, IDC_MYBUTTON

.if eax == 0
INVOKE MessageBox, NULL, SADD("Disabled!"),NULL, MB_OK
.else
INVOKE MessageBox, NULL, SADD("Enabled!"),NULL, MB_OK
.endif

Infro_X

IsWindowEnabled you need to send a HANDLE to, a DlgItemCode can be made into a handle with


invoke GetDlgItem,[hDlg],IDC_MYBUTTON
invoke IsWindowEnabled,eax

..blah blah blah