|
About Up-Down Controls
To the user, an up-down control and its buddy window often look like a single
control. You can specify that an up-down control automatically position itself
next to its buddy window and that it automatically set the caption of the buddy
window to its current position. For example, you can use an up-down control
with an edit control to prompt the user for numeric input. For more information
about edit controls, see Edit Controls The following illustration shows an up-down control with an edit control as
its buddy window, a combination that is sometimes referred to as a spinner
control.
An up-down control without a buddy window functions as a sort of simplified
scroll bar. For example, a tab control sometimes displays an up-down control to
enable the user to scroll additional tabs into view. The following illustration
shows an up-down control in the upper right corner of a tab control.
You can create an up-down control and specify its buddy window in several
ways. The UPDOWN_CLASS value specifies an up-down control's window class. You can
specify this window class in a dialog box template or in a call to the CreateWindowEx function. For more information about dialog box templates, see Dialog Boxes. Another way is to use the CreateUpDownControl function to create an up-down control and, at the same time, specify its
buddy window, current position, and minimum and maximum positions.
The UPDOWN_CLASS window class is registered when the common controls
dynamic-link library (DLL) is loaded. If you create an up-down control without using the CreateUpDownControl function, you must ensure that the DLL is loaded. You can do so by using the InitCommonControls function. For more information about common controls, see Common Controls.
CreateUpDownControl enables you to specify a buddy window. If you create an up-down control
without using this function, you can assign a buddy window by specifying the
UDS_AUTOBUDDY window style or by using the UDM_SETBUDDY message. If UDS_AUTOBUDDY is specified, the up-down control automatically
selects the previous window in the Z order as its buddy window. This window might
be the previous control in a dialog box template. You can use UDM_SETBUDDY to
assign a specific buddy window to an up-down control. To determine an up-down
control's current buddy window, use the UDM_GETBUDDY message. An up-down control and its buddy window must have the same parent
window.
An up-down control notifies its parent window when its current position
changes by sending it a UDN_DELTAPOS notification message and a WM_VSCROLL or WM_HSCROLL message. A vertically oriented up-down control, which does not have the
UDS_HORZ style, sends a WM_VSCROLL message. A horizontally aligned up-down control,
which has the UDS_HORZ style, sends a WM_HSCROLL message.
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|