Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » How to handle button messages in Control Bar ? Collapse All
Subject Author Date
KIAN PENG NGOI May 14, 2006 - 11:27 AM

I had created a resizable control bar (CExtControlBar) and a had put a dialog box into the control bar. There is a button in my dialog box and a on-button click message handler. When I run the program and clicked on the button, the OnBnClicked routine is not executed. Please help.

Thanks.

Technical Support May 16, 2006 - 9:37 AM

Do you have a CDialog-derived class created for your dialog resource? In general you should have a dialog class associated with the dialog template. Inside this class, add the ON_BN_CLICKED handler for your button. You can use the Class Wizard for that. If you have done all these steps, you should have no problems with handling buttons events. Anyway, if the problem persists, you can always send us a project that demonstrates the problem.