CMFCVisualManager::OnDrawBrowseButton

The framework calls this method when it draws the browse button for an edit control.

virtual BOOL OnDrawBrowseButton(
   CDC* pDC,
   CRect rect,
   CMFCEditBrowseCtrl* pEdit,
   CMFCVisualManager::AFX_BUTTON_STATE state,
   COLORREF& clrText 
);

Parameters

  • [in] pDC
    A pointer to a device context.

  • [in] rect
    A rectangle that specifies the boundary for the browse button.

  • [in] pEdit
    A pointer to an edit control. The visual manager draws the browse button for this edit control.

  • [in] state
    An enumerated value that specifies the state of the button.

  • [out] clrText
    A reference to a COLORREF parameter. This is a reserved value and is currently unused.

Return Value

TRUE if successful; otherwise FALSE.

Remarks

Override this function in a derived class if you want to customize the appearance of browse buttons in instances of the CMFCEditBrowseCtrl Class. The possible values for the state of the button are ButtonsIsRegular, ButtonsIsPressed, and ButtonsIsHighlighted.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart

CMFCEditBrowseCtrl Class