Click to See Complete Forum and Search --> : unable to disable a pushbutton in a dailogbox


zeijier
March 30th, 1999, 09:40 PM
Hi, there


I use dlg.getdlgitem(ID_BUTTON)->EnableWindow(false) to disable a pushbutton in dialogbox ID_BUTTON, but it still enabled

, Why? Can somebody help me?


Thanks!

No name
March 30th, 1999, 10:28 PM
Try typing false in all caps.


ie. FALSE

Reshmi
March 30th, 1999, 10:29 PM
Hi,


You can use GetDlgItem itself to get the button's handle. The way I used

it in my application

is


(CButton *) GetDlgItem(IDC_BUTTON)->EnableWindow(FALSE);


I think this will help u.


Reshmi