CMFCCustomizeButton::OnDraw
Called by the framework to draw the button by using the specified styles and options.
virtual void OnDraw(
CDC* pDC,
const CRect& rect,
CMFCToolBarImages* pImages,
BOOL bHorz = TRUE,
BOOL bCustomizeMode = FALSE,
BOOL bHighlight = FALSE,
BOOL bDrawBorder = TRUE,
BOOL bGrayDisabledButtons = TRUE
);
Parameters
Parameter |
Description |
[in] pDC |
The device context that is used to draw the button. |
[in] rect |
A rectangle that bounds the button. |
[in] pImages |
Unused. |
[in] bHorz |
The current dock state of the parent toolbar. |
[in] bCustomizeMode |
Whether the application is running in customization mode. |
[in] bHighlight |
Whether the button is highlighted. |
[in] bDrawBorder |
Unused. |
[in] bGrayDisabledButtons |
Unused. |
Remarks
Pass TRUE for the bHorz parameter to indicate that the parent toolbar is docked horizontally or floating; pass FALSE to indicate that the parent toolbar is docked vertically.
Requirements
Header: afxcustomizebutton.h