CODLabelCompPP Class

class CODLabelCompPP: public CPropertyPage

Label orientation property page

Defined in: OdLabelCompPP.h

Class Members

 CODLabelCompPP(OD_LABELPPDATA* pInitData=NULL)

CODLabelCompPP Constructor.

 ~CODLabelCompPP()

CODLabelCompPP Destructor.

OD_LABELPPDATA* m_pInitData

CODLabelCompPP initialization data.

 enum

Property page resource ID.

BOOL m_bOrientationEnabled

Flag that indicates if label orientation is on or off.

OD_CONTROL_POINT m_nCtlPoint

The orientation of the label.

int m_nXOffset

The horizontal offset of the label.

int m_nYOffset

The vertical offset of the label.

int m_nPctAlong

Percentage along line.

int m_nLineDistance

Distance from line.

BOOL m_bEnableLineOrientation

Flag indicating if line orientation fields are to be shown.

virtual BOOL  OnInitDialog()

Performs dialog data exchange.

virtual BOOL  OnInitDialog()

Called on dialog initialization.

void  InitializePP(OD_LABELPPDATA* pData)

Initializes property page with values passed in  OD_LABELPPDATA structure.

void  GetData(OD_LABELPPDATA& changes)

Retrieves user selections in passed  OD_LABELPPDATA structure.

void  ResetChgFlags()

Resets all property-changed flags.

void  SetControlState()

Examines data and enables or disables controls accordingly.

OD_LABELPPDATA* m_pExitData

CODLabelCompPP exit data (saved here after dialog window is closed).

BOOL m_bTopLeft

Top left radio button value.

BOOL m_bTopCenter

Top center radio button value.

BOOL m_bTopRight

Top right radio button value.

BOOL m_bCenterLeft

Center left radio button value.

BOOL m_bCenter

Center radio button value.

BOOL m_bCenterRight

Center right radio button value.

BOOL m_bBottomLeft

Bottom left radio button value.

BOOL m_bBottomCenter

Bottom center radio button value.

BOOL m_bBottomRight

Bottom right radio button value.

BOOL m_bOrientationEnabledChanged

Flag that indicates if orientation flag field has been changed.

BOOL m_bCtlPointChanged

Flag that indicates if orientation has been changed.

BOOL m_bXOffsetChanged

Flag that indicates if x-offset field has been changed.

BOOL m_bYOffsetChanged

Flag that indicates if y-offset field has been changed.

BOOL m_bPctAlongChanged

Flag that indicates if percent along field has been changed.

BOOL m_bLineDistanceChanged

Flag that indicates if line distance field has been changed.

afx_msg void  OnDestroy()

Called on WM_DESTROY message.

afx_msg void  OnKillFocus(CWnd* pNewWnd)

Called on WM_KILLFOCUS message.

afx_msg void  OnOrientationFlagClick()

Called when orientation enabled checkbox is clicked.

afx_msg void  OnCtlPointClick()

Called when orientation radio button is clicked.

afx_msg void  OnXOffsetChg()

Called when x-offset field is changed.

afx_msg void  OnYOffsetChg()

Called when y-offset field is changed.

afx_msg void  OnPctAlongChg()

Called when percent along line field is changed.

afx_msg void  OnLineDistanceChg()

Called when line distance field is changed.