Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hello, I am using a dialogbar in o

Status
Not open for further replies.

ss2905

Programmer
Joined
Nov 2, 2000
Messages
10
Location
JP
Hello,
I am using a dialogbar in one of my projects.The DialogBar has a push button ( CButton ) in it.However, the button is always disabled when the dialogbar comes on screen.Even after forcibly using EnableWindow(TRUE) , the button remains disabled.The remaining resources entries like Edit Boxes, Radio Buttons, etc are displayed correctly.
What needs to be done to enable the button?

Thanks in Advance... :-)
 
You may want to check whether you've also added an OnUpdate() function for that control in your MainFrame code, something like this:

OnUpdateMyControl(CCmdUI* pCmdUI)
{
pCmdUI->Enable(TRUE);
}

Hope that helps! 8-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top