CODCoordinateMappingPage Class

class CODCoordinateMappingPage: public CODMeasurePropPage

This property page contains mapping mode and extent values. The coordinate mapping defines how logical units are mapped to device units.

Defined in: OdMeasurePropSheet.h

Class Members

 CODCoordinateMappingPage(IODRuler* pIRuler = NULL)

Constructor.

 ~CODCoordinateMappingPage()

Destructor.

void  SetDefaults()

Initialize default values for the property page controls.

void  UpdateLogUnitMeasure()

Updates the static controls that display the size of one logical unit given the current coordinate mapping selected.

CComboBox m_cMappingMode

Combo box object for mapping mode.

long m_nXExtent

Extent for X axis.

long m_nYExtent

Extent for Y axis.

long m_nXLogExtent

Logical extent for X axis.

long m_nYLogExtent

Logical extent for Y axis.

BOOL m_bYAxisUp

Flag indicating if positive Y values are up or down (unused).

CString m_strLogXUnitMeasure

Static display of size of one logical unit on X axis.

CString m_strLogYUnitMeasure

Static display of size of one logical unit on Y axis.

int m_nMapMode

Mapping mode value determined by combo box.

virtual BOOL  OnInitDialog()

Called on dialog initialization.

protected:

Performs dialog data exchange.

int  FindMapModeIdx(const int nMapMode)

Get the combo box index of the given mapping mode.

afx_msg void  OnChangeMapping()

Called when any of the extent values are changed.