Pushbutton in a toolbar
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, I have a toolbar into which I create an ordinary pushbutton. However, I can't get the button enabled or to send button clicks to the parent window. Does anyone know how to do this? Thanks, Royce
Handle this message for the button:
ON_UPDATE_COMMAND_UI
And write your enable disable code here. pCmdUI has got the necessary elements for this purpose:
afx_msg void OnUpdateYourButton( CCmdUI* pCmdUI );
:)
--Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord