The CommandBands_AddAdornments function adds the Close button (X) to the upper right corner of the command bands control. You can also use it to add the Help button (?) and the OK button.
BOOL CommandBands_AddAdornments (HWND hwndCmdBands, HINSTANCE hinst, DWORD dwFlags, LPREBARBANDINFO prbbi);
Header file: | Commctrl.h |
Platforms: | H/PC |
Windows CE versions: | 2.0 and later |
Value | Meaning | Message |
---|---|---|
CMDBAR_HELP | Help button | WM_HELP |
CMDBAR_OK | OK button | WM_COMMAND (with IDOK as the message identifier) |
TRUE if the function succeeds. FALSE if it fails.
By default the adornments band is created with an identifier of 0xFFFFFFFF. You can use the REBARBANDINFO structure you pass in the prbbi parameter to override this identifier.