Link to home
Start Free TrialLog in
Avatar of JoyBurke
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.GetToolBarCtrl();
pTBCtrl->EnableButton(ID_VIEW_EVENTS,0);

The code runs with no errors, but doesn't appear to do anything.
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial