PRB: Caption Bar Buttons Are Not Positioned Correctly

ID: Q235582


The information in this article applies to:
  • Microsoft Windows CE Operating System, versions 1.0, 2.0


SYMPTOMS

When you add the Help, OK, or Close buttons to the caption bar of a window, the buttons may appear oddly positioned, depending on which buttons you added. For example, if you use the Help and Close buttons, there will be a space between these buttons where the OK button would normally appear.


CAUSE

In earlier versions of Windows CE (before 2.10), the locations of the three buttons that can appear in the caption bar (Help, OK, and Close) are hard-coded.

Windows CE version 2.10 and later dynamically position the buttons based on which buttons are in the caption bar.


STATUS

This behavior is by design.


MORE INFORMATION

The window styles necessary to add the buttons to the caption bar are:

Button Style Ex. Style
Close WS_SYSMENU
OK WS_EX_CAPTIONOKBTN
Help WS_EX_CONTEXTHELP

Additional query words:

Keywords : kbGrpUser kbWinCE100 kbWinCE200 kbWndw kbWndwProp
Version : n/a:1.0,2.0
Platform : n/a
Issue type : kbprb


Last Reviewed: December 4, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.