PRB: Cannot Change Width of Vertical Up-Down Control (180077)



The information in this article applies to:

  • Microsoft Win32 Application Programming Interface (API)

This article was previously published under Q180077

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.

Modification Type:MinorLast Reviewed:5/14/2004
Keywords:kbCtrl kbnofix kbprb kbUpDownCtrl KB180077