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 » CExtPropertyGridWnd : How to change property's style? Collapse All
Subject Author Date
exp lnt Sep 5, 2008 - 12:29 AM


Hi Guys,


I have used CExtGridCellComboBox in a CExtPropertyGridWnd.


When selecting a item in the combobox, i want to change style some properties on the grid by using ModifyStyle method with const parameter is __EGCS_READ_ONLY.



But i couldn’t recovery the first style of the property (before setting the style to __EGCS_READ_ONLY).



My question is : How to reset/set the style to properties when changing on the combobox ?


Thanks in advanced.



 

Technical Support Sep 6, 2008 - 1:24 PM

The CExtPropertyItem::InputEnabledGet() / CExtPropertyItem::InputEnabledSet() methods allow you to control read-only state of any CExtPropertyValue() property value object independently from the type of grid cell objects inside it. You can enable/disable input of one or more property values and invoke the CExtPropertyGridCtrl::PropertyStoreSynchronize() method for applying changes.