|
-
March 30th, 1999, 10:40 PM
#1
unable to disable a pushbutton in a dailogbox
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!
-
March 30th, 1999, 11:28 PM
#2
Re: unable to disable a pushbutton in a dailogbox
Try typing false in all caps.
ie. FALSE
-
March 30th, 1999, 11:29 PM
#3
Re: unable to disable a pushbutton in a dailogbox
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|