Declare a boolean variable in your class,
add a handler to your menu/toolbar click and toogle the value of boolean thereCode:BOOL bState;
and in ON_UPDATEUI_XXX hadler just add followingCode:bState = !bState;
AmitCode:PCmdUI->SetCheck(bState);
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 11 of 11
Thread: Toggle Toolbar ButtonsThreaded View
|
Click Here to Expand Forum to Full Width |