The CommandBands_GetCommandBar function retrieves the handle to a command bar child control in a band of the command bands control.
HWND CommandBands_GetCommandBar (HWND hwndCmdBands, UINT uBand);
Header file: | Commctrl.h |
Platforms: | H/PC |
Windows CE versions: | 2.0 and later |
The window handle to the command bar identified by the index in the wBandID parameter. If this function fails, it returns a value of NULL.
The index you pass in the wBandID parameter is the current position of the command bar band in the command bands control. This index may have a different value than the order in which you added the band to the control, because the user may have repositioned the band.