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 » Row height in CExtTreeGridWnd Collapse All
Subject Author Date
Offer Har Jan 18, 2011 - 7:54 AM

Dear Support,


We need to change the row height in CExtTreeGridWnd. We tried overriding DefaultRowHeightGet, but it only changed the height of the title row (top row) what function do we need to use for changing the other rows?


Thanks,


Ron.

Technical Support Jan 19, 2011 - 1:50 AM

Here is how to change the row height in tree grid:

HTREEITEM hti = wndTreeGrid.ItemInsert( . . . );
CExtGridCell * pCellHTI = (CExtGridCell *)hti;
    pCellHTI->ExtentSet( 50 ); // 50 pixels height
Alternatively, you can override the CExtTreeGridWnd::OnSiwQueryItemExtentV() virtual method.