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 » Yet Another property grid question Collapse All
Subject Author Date
David Skok Sep 11, 2007 - 1:47 PM

I do not display the toolbar in PropertyGrid controls in my app. I only show the sort by category display. As such there is no need for the sorted property display. Can I safely override OnPgcCreateGrids() and NOT create it without problems?

Thanks

Technical Support Sep 12, 2007 - 9:28 AM

Yes, just override the CExtPropertyGridCtrl::OnPgcCreateGrids() virtual method for that. You need to create at least one tree grid window in the property grid control because, otherwise, if you create no tree windows, the property grid control will no longer be usable. Your version of the OnPgcCreateGrids() method should be similar to the original one: it should create a CExtPropertyGridWndCategorized window and it should not create a CExtPropertyGridWndSorted window. You can use similar approach and remove other build-in parts of the property grid control: the combo box bar, tool bar and help tip bar. To remove any of these bars, you should override the CExtPropertyGridCtrl::OnPgcCreateBars() virtual method and create only those bars that you need.