다음을 통해 공유


CReBarCtrl::IDToIndex

Implements the behavior of the Win32 message RB_IDTOINDEX, as described in the Windows SDK.

int IDToIndex(
   UINT uBandID 
) const;

Parameters

  • uBandID
    The application-defined identifier of the specified band, passed in the wID member of the REBARBANDINFO structure when the band is inserted.

Return Value

The zero-based band index if successful, or -1 otherwise. If duplicate band indices exist, the first one is returned.

Requirements

Header: afxcmn.h

See Also

Reference

CReBarCtrl Class

Hierarchy Chart

CReBarCtrl::InsertBand

Other Resources

CReBarCtrl Members