JoyBurke
asked on
Disable a Button on a toolbar
I am having trouble disabling buttons on a toolbar made with the resource editor in Visual C++.
I am trying to disable certain buttons on the bar when a setting is changed.
I am running the below code in the frame of the MDI child window.
CToolBarCtrl * pTBCtrl = &m_wndTimeLineBar.GetToolB arCtrl();
pTBCtrl->EnableButton(ID_V IEW_EVENTS ,0);
The code runs with no errors, but doesn't appear to do anything.
I am trying to disable certain buttons on the bar when a setting is changed.
I am running the below code in the frame of the MDI child window.
CToolBarCtrl * pTBCtrl = &m_wndTimeLineBar.GetToolB
pTBCtrl->EnableButton(ID_V
The code runs with no errors, but doesn't appear to do anything.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.