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 » How to change a height of the grid header? Collapse All
Subject Author Date
Thomas Roeder Nov 22, 2005 - 3:32 PM

Hi,


I’m using  a grid (CExtGridWnd), but the header cutting-off the bottom part of some letters from title.


How can I increase the height of the grid header?


Thanks.


 

Technical Support Nov 24, 2005 - 12:08 PM

There are two methods in the CExtGridBaseWnd class: OuterColumnWidthSet() and OuterRowHeightGet(). The first changes the width (in pixels) of the outer column on the left or right side and the second changes the height (in pixels) of the outer row at the top or bottom side. Here is the sample code which increases the height of the header row by 5 pixels:

INT nHeight = 
    m_wndGrid.OuterRowHeightGet(
        true, // bTop
        0,    // nRowNo
        false // bZeroIfNoColumns
        );
m_wndGrid.OuterRowHeightSet(
    true,     // bTop
    0,        // nRowNo,
    nHeight + 5
    );
 
m_wndGrid.OnSwUpdateScrollBars();
m_wndGrid.OnSwDoRedraw();