PRB: Can't Change Width of Vertical Up-Down Control

Last reviewed: January 29, 1998
Article ID: 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.

Keywords          : UsrCtl
Version           : WINNT:
Platform          : winnt
Issue type        : kbprb
Solution Type     : kbnofix


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 29, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.