CToolBarCtrl::SetCmdID

This method sets the command identifier, which is sent to the owner window when the specified button is pressed.

At a Glance

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

Syntax

BOOL SetCmdID( int nIndex, UINT nID );