PRB: Cannot Change Width of Vertical Up-Down Control

ID: Q180077

The information in this article applies to:

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 kbUpDownCtrl kbGrpUser kbWinOS 
Issue type        : kbprb
Solution Type     : kbnofix

Last Reviewed: December 17, 1998