Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Draws a check box control by using the current Windows theme.
virtual BOOL DrawCheckBox(
CDC *pDC,
CRect rect,
BOOL bHighlighted,
int nState,
BOOL bEnabled,
BOOL bPressed);
);
Parameters
[in] pDC
A pointer to a device context[in] rect
The bounding rectangle of the check box.[in] bHighlighted
Specifies whether the check box is highlighted.[in] nState
0 for unchecked, 1 for checked normal,2 for mixed normal.
[in] bEnabled
Specifies whether the check box is enabled.[in] bPressed
Specifies whether the check box is pressed.
Return Value
TRUE if Theme API is enabled; otherwise FALSE.
Remarks
The values of nState correspond to the following check box styles.
nState |
Check box style |
|---|---|
0 |
CBS_UNCHECKEDNORMAL |
1 |
CBS_CHECKEDNORMAL |
2 |
CBS_MIXEDNORMAL |
Requirements
Header: afxvisualmanager.h