PRB: Cannot Change Width of Vertical Up-Down Control
Article ID: 180077
Article Last Modified on 11/21/2006
APPLIES TO
- Microsoft Win32 Application Programming Interface
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.
Keywords: kbctrl kbnofix kbprb kbupdownctrl KB180077