CODGridDlg Class
class CODGridDlg: public CDialog
Grid settings dialog.Defined in: OdGridDlg.h
Class Members
CODGridDlg(CWnd* pParent = NULL)
Standard constructor.
Grid settings dialog resource ID.
BOOL m_bGridVisible
Non-zero if the grid is visible.
BOOL m_bSnapToGrid
Non-zero if snap to grid is on.
BOOL m_bAngleSnap
Non-zero if angle snap is on.
float m_fGridSpacingX
The horizontal grid spacing.
float m_fGridSpacingY
The vertical grid spacing.
sfl::SECWellButton m_btnGridColor
The grid color well button.
OD_UNIT_OF_MEASURE m_units
Unit of measurement for the grid.
CODMeasure m_minSpacing
Minimum spacing value.
CODMeasure m_maxSpacing
Maximum spacing value.
void SetUnitOfMeasure(const OD_UNIT_OF_MEASURE units)
Sets the unit of measure for the grid.
BOOL GetGridVisible() const
Returns TRUE if the grid is visible.
void SetGridVisible(const BOOL bGridVisible)
Shows or hides the grid.
BOOL GetSnapToGrid() const
Returns non-zero if snap to grid is on.
void SetSnapToGrid(const BOOL bSnapToGrid)
Turns on or off snap to grid.
BOOL GetAngleSnap() const
Returns non-zero if angle snap is on.
void SetAngleSnap(const BOOL bAngleSnap)
Turns on or off angle snap.
float GetHorizontalGridSpacing() const
Returns the horizontal grid spacing, in inches.
void SetHorizontalGridSpacing(const float fGridSpacingX)
Sets the horizontal grid spacing.
float GetVerticalGridSpacing() const
Returns the vertical grid spacing, in inches.
void SetVerticalGridSpacing(const float fGridSpacingY)
Sets the vertical grid spacing.
COLORREF GetGridColor() const
Returns the grid color.
void SetGridColor(const COLORREF crColor)
Sets the grid color.
void SetMinSpacing(const CODMeasure& minSpacing)
Set the minimum grid spacing value.
void SetMaxSpacing(const CODMeasure& maxSpacing)
Set the maximum grid spacing value.