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 » PropertyGrid combobox Collapse All
Subject Author Date
Suhai Gyorgy Feb 12, 2007 - 7:28 AM

Dear Support,
I need to get notified when selection changes in PropertyGrid’s combobox. For this reason I made a class derived from CExtPropertyGridCtrl and gave it a messagemap like this:

BEGIN_MESSAGE_MAP( CMyPropertyGridCtrl, CExtPropertyGridCtrl )
	ON_CBN_SELENDOK(__EXT_MFC_ID_PROPERTY_GRID_COMBO_BOX, OnComboSelEndOK)
END_MESSAGE_MAP()
Message handler method is afx_msg void OnComboSelEndOK(); I can never step inside this method. What am I missing?
Thank you.

Suhai Gyorgy Feb 12, 2007 - 7:33 AM

Sorry, I should have looked inside code before asking. I found OnPgcStoreSelect virtual method, just what I need.

Technical Support Feb 13, 2007 - 2:42 AM

Yes, the CExtPropertyGridComboBoxBar class has a reflection handler for the CBN_SELENDOK notification and that is why you do not receive this notification in the parent CExtPropertyGridCtrl. So you can handle the selection of a property store in the combo box by overriding the CExtPropertyGridCtrl::OnPgcStoreSelect() method.