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 » CExtPropertyGridCtrl question Collapse All
Subject Author Date
David Skok Mar 23, 2006 - 2:37 PM

What is the proper procedure to remove all references to a CExtPropertyStore
in a CExtPropertyGridCtrl before the CExtPropertyStore can be deleted?

Technical Support Mar 24, 2006 - 12:15 PM

The property store object can be assigned to or removed from the CExtPropertyGridCtrl control using its method below:

virtual CExtPropertyStore * PropertyStoreSet(
   CExtPropertyStore * pPS
);
No reference counting is performed in this operation. If your code assigns a non NULL valid property store, you are responsible for keeping this property store valid while the property grid control is valid. If you assign the NULL pointer as a property store that will remove any link between the property grid control and the property store tree.