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 » CExtGridWnd question Collapse All
Subject Author Date
tera tera Sep 10, 2008 - 8:10 PM

Hello.


Is not the resize of the column possible when I do not make a header outer cell?


tera tera Sep 22, 2008 - 1:50 AM

Thank you very much for your advice.


 


By the way , I want to make an outer column non-display.

Is it impossible?

Technical Support Sep 22, 2008 - 12:09 PM

The CExtGridBaseWnd::OuterColumnWidthSet() method allows you you to make an outer header column on the left or right having a zero width. This is the same as hiding an outer header column. You should also invoke the OnSwRecalcLayout()() grid’s method when yo have changed the size of inner grid parts.

Technical Support Sep 12, 2008 - 12:36 PM

You should turn on the proportional resizing feature for columns. First of all, you should use the __ESIS_STH_NONE scrolling type style when calling CExtGridWnd::SiwModifyStyle(). This disables horizontal scrolling at all. The proportionally resizable columns do not require horizontal scrolling and the horizontal scroll bar is useless at all. Second, you should apply the __EGBS_BSE_EX_PROPORTIONAL_COLUMN_WIDTHS style using the CExtGridWnd::BseModifyStyleEx() method. This style will turn on the feature you need. Third and optionally, you can set the proportional column weights using the CExtGridCell::ExtentPercentSet() method invoked for the header cells.