PRB: Caption Bar Buttons Are Not Positioned Correctly (235582)



The information in this article applies to:

  • Microsoft Windows CE Operating System, Versions 2.0
  • Microsoft Windows CE Operating System, Versions 1.0

This article was previously published under Q235582

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

Modification Type:MajorLast Reviewed:10/27/2003
Keywords:kbprb kbWndw kbWndwProp KB235582