Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The framework calls this method when it draws an instance of the CMFCSpinButtonCtrl Class.
virtual void OnDrawSpinButtons(
CDC* pDC,
CRect rectSpin,
int nState,
BOOL bOrientation,
CMFCSpinButtonCtrl* pSpinCtrl
);
Parameters
[in] pDC
A pointer to a device context.[in] rectSpin
A rectangle that specifies the boundaries of the spin control.[in] nState
A flag that indicates the state of the spin control. See the Remarks section for more information.[in] bOrientation
A Boolean parameter that specifies the orientation of the spin control. A value of TRUE indicates the spin control is horizontal. Otherwise, it is vertical.[in] pSpinCtrl
A pointer to a spin control. The framework draws the buttons for this control.
Remarks
The nState parameter indicates the state of the spin control. The parameter is one of the following values:
AFX_SPIN_PRESSEDUP
AFX_SPIN_PRESSEDDOWN
AFX_SPIN_HIGHLIGHTEDUP
AFX_SPIN_HIGHLIGHTEDDOWN
AFX_SPIN_DISABLED
Override this method in a derived visual manager to customize the appearance of a spin control.
Requirements
Header: afxvisualmanager.h