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 » Detecting changes in a CExtPropertyGridCtrl Collapse All
Subject Author Date
Paul Marley Oct 12, 2007 - 9:21 AM

Is there a way to detect when the user changes a value in the CExtPropertyGridCtrl without having to subclass the control? I’m using it in a stanard MFC application.

Thanks.

Technical Support Oct 12, 2007 - 12:23 PM

You should create and use your own CExtPropertyGridCtrl-derived class because in the property grid control notifications are based on virtual methods. You should override the CExtPropertyGridCtrl::Apply() virtual method to catch the cell editing event for each particular property value. You need to override the CExtPropertyGridCtrl::Reset() virtual method to catch the reset command invoked from the context menu over property value. Both virtual methods cover all the possible ways of changing property values.