CToolBar::SetButtonInfo

This method sets the button's command identifier, style, and image number. For separators, which have the TBBS_SEPARATOR style, this method sets the separator's width in pixels to the value stored in iImage.

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 SetButtonInfo( int nIndex, UINT nID, UINT nStyle, int iImage );