RB_IDTOINDEX

This message converts a band identifier to a band index in a rebar control.

At a Glance

Header file: Commctrl.h
Windows CE versions: 2.0 and later

Syntax

RB_IDTOINDEX  wParam = (WPARAM)(UINT) uBandID; lParam = 0;

Parameters

uBandID

Application-defined identifier of the band in question. This is the value that is passed in the wID member of the REBARBANDINFO structure when the band was inserted.

Return Values

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