This method adds the Close button (X) to the command bar. You can also use it to add the Help button (?) and the OK button. This method is unique to MFC for Windows CE.
Header file: | Afxext.h |
Platforms: | Palm-size PC, H/PC Pro |
Windows CE versions: | 2.10 and later |
BOOL AddAdornments(DWORD dwFlags = 0);
TRUE indicates success. FALSE indicates failure.
This method creates a minimum of two buttons; a separator which aligns the selected adornment(s) to the right side of the rebar and the selected adornment(s).
When a user selects the Close (X), OK, or Help (?) button, the message associated with that button is placed in the application’s message queue. This method always creates a Close button; the OK button and the Help button are optional.
Do not call the this method until after you have added all the other elements (menus, buttons, combo boxes) to the rebar.