CButton::SetState

This member function 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.

Syntax

void SetState( BOOL bHighlight );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CButton Overview, CButton Member Functions, Control Classes, CButton::GetState, CButton::SetCheck, CButton::GetCheck