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!
Printable View
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!
Try typing false in all caps.
ie. FALSE
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