CGXGridParam::EnableTrackColWidth

void EnableTrackColWidth(WORD wFlags = GX_TRACK_INDIVIDUAL | GX_TRACK_SMOOTHHEADER | GX_TRACK_NOPRESSEDHEADER | GX_TRACK_NOMARKTRACKLINE);

wFlags

Specifies the options:

  • GX_TRACK_ALL specifies that all columns have the same width.

  • GX_TRACK_INDIVIDUAL specifies that columns can have different widths.

  • GX_TRACK_EXTHITTEST specifies that columns can be tracked by the user anywhere in the grid and not only in column headers.

  • GX_TRACK_NOTHEADER specifies that column 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 column to be resized shall not be outlined.

  • GX_TRACK_NOINVERTLINE specifies that no line indicating the new column 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 column widths for the end user.

·If you do not want the end user to be able to change the width of column headers (but all other columns should be sizeable), you should call

   GetParam()->EnableTrackColWidth(GX_TRACK_INDIVIDUAL | GX_TRACK_NOTHEADER);

·If you want to disable tracking the column widths, you should call

   GetParam()->EnableTrackColWidth(FALSE);

·If you do not want smooth resizing, you should call

   GetParam()->EnableTrackColWidth(GX_TRACK_INDIVIDUAL);

See Also

 CGXGridParam::IsEnableTrackColWidth  CGXGridParam::EnableTrackRowHeight

CGXGridParam

 Class Overview |  Class Members