CMFCToolBarComboBoxButton::OnDraw
Called by the framework to draw the combo box 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
[in] Pdc
The device context that displays the button.[in] rect
The bounding rectangle of the button.[in] pImages
The collection of images that is associated with the button.[in] bHorz
The dock state of the parent toolbar. TRUE when the toolbar is docked horizontally and FALSE when the toolbar is docked vertically.[in] bCustomizeMode
Whether the application is in customization mode.[in] bHighlight
Whether to draw the combo box button highlighted.[in] bDrawBorder
Whether to draw the combo box button with a border.[in] bGrayDisabledButtons
TRUE to draw shaded disabled buttons; FALSE to use the disabled images collection.
Requirements
Header: afxtoolbarcomboboxbutton.h