Click here to Skip to main content
15,893,190 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I have a dialog box and i attached a toolbar to it.
(i added member variable CToolBar mo_ToolbarCtrl in dialog box's class and used mo_ToolbarCtrl.CreateEx method to attach the toolbar)

I added 'PreTranslateMessage' in my dialog box's class and there i want to know which toolbar button is clicked.

how do we do this?

Can we get the ID of the clicked toolbar button in PreTranslateMessage?
Posted

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