共用方式為


CMFCBaseVisualManager::DrawComboBorder

Draws the combo box border using the current Windows theme.

virtual BOOL DrawComboBorder(
   CDC* pDC, 
   CRect rect, 
   BOOL bDisabled, 
   BOOL bIsDropped, 
   BOOL bIsHighlighted
);

Parameters

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

  • [in] rect
    Bounding rectangle of the combo box border.

  • [in] bDisabled
    Specifies whether the combo box border is disabled.

  • [in] bIsDropped
    Specifies whether the combo box border is dropped down.

  • [in] bIsHighlighted
    Specifies whether the combo box border is highlighted.

Return Value

TRUE if Theme API is enabled; otherwise FALSE.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCBaseVisualManager Class

Hierarchy Chart