CODFillCompPP Class

class CODFillCompPP: public CPropertyPage

Generates a component fill property page.

Defined in: OdFillCompPP.h

Class Members

VIEWS_API CODFillCompPP(OD_FILLPPDATA* pInitData=NULL)

CODFillCompPP Constructor.

VIEWS_API ~CODFillCompPP()

CODFillCompPP Destructor.

OD_FILLPPDATA* m_pInitData

CODFillCompPP initialization data.

enum

Property page resource ID.

sfl::SECWellButton m_wndFGColor

Foreground color well button.

sfl::SECWellButton m_wndBGColor

Background color well button.

BOOL m_bTransparent

Current fill transparency value.

BOOL m_bBGTransparent

Current fill background transparency value.

int m_nHatch

Current fill hatch style.

int m_nHatchSel

Index of hatch listbox current selection.

CODHatchLB m_wndHatchLB

Hatch owner-draw listbox.

VIEWS_API virtual BOOL OnInitDialog()

Performs dialog data exchange.

VIEWS_API virtual BOOL OnInitDialog()

Called on dialog box initialization (i.e. on activation of property page).

VIEWS_API void InitializePP(OD_FILLPPDATA* pData)

Initializes property page based on data contained in passed OD_FILLPPDATA structure.

VIEWS_API void GetData(OD_FILLPPDATA& changes)

Returns user property selections (see OD_FILLPPDATA for more information).

VIEWS_API void ResetChgFlags()

Resets the property page changed flags (generally called after an Apply-Now operation).

OD_FILLPPDATA* m_pExitData

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

COLORREF m_clrFG

Current fill foreground color.

COLORREF m_clrBG

Current fill background color.

BOOL m_bFGColorChanged

Indicates if fill foreground color has been changed by user.

BOOL m_bBGColorChanged

Indicates if fill background color has been changed by user.

BOOL m_bHatchChanged

Indicates if fill hatch style has been changed by user.

BOOL m_bTranspChanged

Indicates if fill transparency has been changed by user.

BOOL m_bBGTranspChanged

Indicates if background fill transparency has been changed by user.

afx_msg LRESULT OnColorChange(WPARAM wParam, LPARAM lParam)

Called when user selects new foreground or background color.

VIEWS_API afx_msg void OnTranspBtn()

Called when fill transparency has been selected/deselected.

VIEWS_API afx_msg void OnTranspBGBtn()

Called when background fill transparency has been selected/deselected.

VIEWS_API afx_msg void OnHatchSelect()

Called when user changes the current fill hatch style.

VIEWS_API afx_msg void OnDestroy()

Called when dialog window is destroyed.