CGXGridParam::EnableTrackRowHeight
void EnableTrackRowHeight(WORD wFlags = GX_TRACK_INDIVIDUAL | GX_TRACK_SMOOTHHEADER | GX_TRACK_NOPRESSEDHEADER | GX_TRACK_NOMARKTRACKLINE);
wFlags
Specifies the options:
- GX_TRACK_ALL specifies that all rows have the same height.
- GX_TRACK_INDIVIDUAL specifies that rows can have different heights.
- GX_TRACK_EXTHITTEST specifies that rows can be tracked by the user anywhere in the grid and not only in row headers.
- GX_TRACK_NOTHEADER specifies that row headers cannot be tracked.
- GX_TRACK_NOPRESSEDHEADER specifies that headers shall not be drawn pressed while the user is dragging the mouse.
- GX_TRACK_NOMARKTRACKLINE specifies that the grid line for the row to be resized shall not be outlined.
- GX_TRACK_NOINVERTLINE specifies that no line indicating the new row size shall be drawn while the user is dragging the mouse.
- GX_TRACK_SMOOTHHEADER specifies that headers shall be redrawn with the new size while the user is dragging the mouse.
- GX_TRACK_SMOOTHCELLS specifies that the grid shall be redrawn with the new size while the user is dragging the mouse.
Remarks
Specifies the options for or disables changing row heights for the end user.
·If you do not want the end user to be able to change the height of row headers (but all other rows should be sizeable), you should call
GetParam()->EnableTrackRowHeight(GX_TRACK_INDIVIDUAL | GX_TRACK_NOTHEADER);
·If you want to disable tracking row heights, you should call
GetParam()->EnableTrackRowHeight(FALSE);
·If all rows should be the same height (as for example Microsoft Query views), you should call
GetParam()->EnableTrackRowHeight(GX_TRACK_ALL);
·If you do not want smooth resizing, you should call
GetParam()->EnableTrackRowHeight(GX_TRACK_INDIVIDUAL);
See Also
CGXGridParam::IsEnableTrackRowHeight CGXGridParam::EnableTrackColWidth