PRB: Cannot Change Width of Vertical Up-Down Control

ID: Q180077


The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API)
  • Microsoft Windows 2000


SYMPTOMS

When creating a vertical up-down control, the width passed in CreateWindow or specified in the dialog box template is ignored.


CAUSE

A vertical up-down control sets its width to the width of a vertical scroll bar when created, regardless of whether the buddy window handle is valid or NULL.


RESOLUTION

The width of the vertical up-down control can be changed manually by using the SetWindowPos() or MoveWindow() function after the control has been created.


STATUS

This behavior is by design.


MORE INFORMATION

This problem does not affect horizontal up-down controls because horizontal up-down controls do not change width when created.

Additional query words:

Keywords : kbCtrl kbNTOS kbWinOS2000 kbUpDownCtrl kbGrpUser kbWinOS
Version : WINDOWS:; winnt:
Platform : WINDOWS winnt
Issue type : kbprb


Last Reviewed: February 1, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.