Microsoft KB Archive/180077

{|
 * width="100%"|

PRB: Cannot Change Width of Vertical Up-Down Control

 * }

Q180077

-

The information in this article applies to:


 * Microsoft Win32 Application Programming Interface (API)

-

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 kbOSWinNT kbOSWin2000 kbUpDownCtrl kbGrpDSUser kbOSWin

Issue type : kbprb

Technology : kbAudDeveloper kbWin32sSearch kbWin32API