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.
Called by the framework to draw the button text.
virtual void OnDrawText(
CDC* pDC,
const CRect& rect,
const CString& strText,
UINT uiDTFlags,
UINT uiState
);
Parameters
[in] pDC
A pointer to a device context.[in] rect
A reference to a rectangle that bounds the button.[in] strText
The text to draw.[in] uiDTFlags
Flags that specify how to format the text. For more information, see the nFormat parameter of the CDC::DrawText method.[in] uiState
(Reserved.)
Remarks
Override this method to use your own code to draw the button text.
Requirements
Header: afxbutton.h