Click here to Skip to main content
15,902,114 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have tool bar on the dialog how when clicking on button in tool bar it should be pressed and clicking again the it should be unpressed. this is a dialog onupdate is not calling in sdi we can do it through onupdatecommand how to do in dialog. please let me know.

how i will get whether it is pressed and unpressed and while pressing it should show like pressed.

What I have tried:

m_IsLineEnabled = !m_IsLineEnabled;
Posted
Updated 11-May-17 21:08pm

1 solution

You must learn about the toolbar api. Read the overview Working with the Toolbar Control.

Finer access you get with the underlying CToolBarCtrl. In that class you have the GetButton and SetButtonInfo functions to manipulate the control.

The most easilist solution.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900