CToolBar::SetButtonStyle

This method sets the style of a button or separator, or to group buttons. A button's style determines how the button appears and how it responds to user input.

Before calling SetButtonStyle, call the GetButtonStyle method to retrieve the button or separator style.

At a Glance

Header file: Afxext.h
Platforms: Palm-size PC, H/PC Pro
Windows CE versions: 2.10 and later
Complete documentation: Visual C++ documentation

Syntax

void SetButtonStyle( int nIndex, UINT nStyle );