|
-
May 12th, 1999, 09:42 AM
#1
how to enable a button in a dialogbar?
I have a button in my dialogbar which is grayout. How do I enable the button?
I added a handler to handle the event of the button being clicked. What else I should do?
Thanks!
-
May 12th, 1999, 10:50 AM
#2
Re: how to enable a button in a dialogbar?
that should be enough.... where have you added the handler (i.e. to which class)?
-
May 13th, 1999, 02:12 AM
#3
Re: how to enable a button in a dialogbar?
EnableWindow(TRUE); enables a button and EnableWindow(FALSE); disables a button.
-
June 30th, 1999, 12:47 PM
#4
Re: how to enable a button in a dialogbar?
Please add a variable to the button thru class wizard . Suppose the name is
m_Button. Then in your code you can write
m_Button.EnableWindow(TRUE);//to enable the window
m_Button.EnableWindow(FALSE);//to disable the window
reply to [email protected]
-
June 30th, 1999, 01:01 PM
#5
Re: how to enable a button in a dialogbar?
When you decide to enable the button you could say
CButton* button = (CButton*)dialogBar.GetDlgItem(IDC_BUTTON_RESOURCE_NAME_HERE);
button->EnableWindow(true);
correspondingly if you needed to disable you would replace the true with a false
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
|