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 Tech Support » Message from a control in the toolbar. Collapse All
Subject Author Date
Suhai Gyorgy Oct 25, 2006 - 8:14 AM

I have a combobox in my toolbar. I want to find out when a user changed selection in it. Is the only way for that to make a CExtComboBox-derived class and override SetCurSel and OnReflectCbnSelEndOK methods as it is done in GLViews sample?

Thank you!

Technical Support Oct 25, 2006 - 11:41 AM

There are two ways:

1) Message handling. You can handle combo box notification messages in its parent window. It may be not convenient to code your own toolbar class for that.
2) Message reflection. You can handle combo box messages in a CExtComboBox-derived class.

The second approach seems to be preferable.