Hi all!
I have CToolBar and 3 buttons on it (ID_BUTTON1, ID_BUTTON2, ID_BUTTO3)
Could you please tell me how to retrieve handles of these buttons?
Thx a lot
Printable View
Hi all!
I have CToolBar and 3 buttons on it (ID_BUTTON1, ID_BUTTON2, ID_BUTTO3)
Could you please tell me how to retrieve handles of these buttons?
Thx a lot
I am not sure how to get the Handle to the buttons but you can do alot of things if you get the CToolbarCtrl of the Toolbar using
GetToolBarCtrl();
If you look in the MSDN for CToolbarCtrl you will find that you can change a number of different features.
You may be able to get the Handle of the controls by using the GetDlgItem(...) method from the CToolbarCtrl object that you get.