CommandBar_AlignAdornments (Windows CE 5.0)

Send Feedback

This function aligns the Close (X), Help (?) and OK buttons on the command bar.

voidCommandBar_AlignAdornments(HWNDhwndCB);

Parameters

  • hwndCB
    Handle to the command bar's window. This handle is returned when the command bar is created by the CommandBar_Create function.

Return Values

None.

Remarks

This function should be called after the main window has been resized. When the main window receives a WM_SIZE message, you should send a TB_AUTOSIZE message to the command bar and then call the CommandBar_AlignAdornments function. This will cause the Close (X), Help (?), and OK adornment buttons to be aligned on the right.

Requirements

OS Versions: Windows CE 4.0 and later.
Header: Commctrl.h.
Link Library: Commctrl.lib.

See Also

CommandBar_AddButtons | CommandBar_Create | CommandBar_InsertButton

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.