CGXGridParam::SetGridLineStyle

void SetGridLineStyle(UINT nStyle);

nStyle

Specifies the pen type. This member can be one of the following values:

  • PS_SOLID - Creates a solid pen.

  • PS_DASH - Creates a dashed pen. (Valid only when the pen width is 1.)

  • PS_DOT - Creates a dotted pen. (Valid only when the pen width is 1.)

  • PS_DASHDOT - Creates a pen with alternating dashes and dots. (Valid only when the pen width is 1.)

  • PS_DASHDOTDOT - Creates a pen with alternating dashes and double dots. (Valid only when the pen width is 1.)

Remarks

Choose between solid, dotted and dashed grid lines if you have enabled the new grid line mode.

Note: If you have implemented custom drawing of grid lines by overriding the method DrawGridLine, the grid line style must be PS_SOLID. Otherwise, your DrawGridLine override will not be called.

See Also

 CGXGridParam::SetNewGridLineMode

CGXGridParam

 Class Overview |  Class Members