CToolBar::CommandToIndex

This method returns the index of the first toolbar button, starting at position 0, whose command identifier matches nIDFind.

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

int CommandToIndex( UINT nIDFind );