BCGSuite for MFC
virtual void CBCGPButton::OnDrawText ( CDC *  pDC,
const CRect &  rect,
const CString &  strText,
UINT  uiDTFlags,
UINT  uiState 
)
protectedvirtual

Called when a button's text should be redrawn

Override this function when you need to customize a button's text drawing. See CDC::DrawText function for details about formatting flags.

Parameters
pDCA pointer to a device context
rectA button's text bounding rectangle
strTexta text to be drawn
uiDTFlagsSpecifies the flags used by CDC::DrawText.
uiStateSpecifies the method of formatting the text