The CommandBands_AddButtons function adds one or more bands to the command bands control.
BOOL CommandBands_AddBands (HWND hwndCmdBands, HINSTANCE hinst, UINT cBands, LPREBARBANDINFO prbbi);
Header file: | Commctrl.h |
Platforms: | H/PC |
Windows CE versions: | 2.0 and later |
TRUE if the function succeeds. FALSE if it fails.
By default, each band is created with a command bar as its child window. The command bar can be retrieved by using the CommandBands_GetCommandBar function. To create a different kind of child control in a band, use the RBBIM_CHILD mask in the fMask field of the REBARBANDINFO structure, and specify the child control's window handle in the REBARBANDINFO structure's hwndChild field.