CButton::SetState

CButton::SetState

void SetState( BOOL bHighlight );

Parameters

bHighlight

Specifies whether the button is to be highlighted. A nonzero value highlights the button; a 0 value removes any highlighting.

Remarks

Sets the highlighting state of a button control.

Highlighting affects the exterior of a button control. It has no effect on the check state of a radio button or check box.

A button control is automatically highlighted when the user clicks and holds the left mouse button. The highlighting is removed when the user releases the mouse button.

CButton Overview |  Class Members |  Hierarchy Chart

See Also   CButton::GetState, CButton::SetCheck, CButton::GetCheck, BM_SETSTATE