This section lists the styles used when creating up-down controls.
Positions the up-down control next to the left edge of the buddy window. The buddy window is moved to the right, and its width is decreased to accommodate the width of the up-down control.
Positions the up-down control next to the right edge of the buddy window. The width of the buddy window is decreased to accommodate the width of the up-down control.
Causes the up-down control to increment and decrement the position when the UP ARROW and DOWN ARROW keys are pressed.
Automatically selects the previous window in the z-order as the up-down control's buddy window.
Causes the up-down control's arrows to point left and right instead of up and down.
Causes the control to exhibit "hot tracking" behavior. That is, it highlights the UP ARROW and DOWN ARROW on the control as the pointer passes over them. This style requires Windows 98 or Windows 2000. If the system is running Windows 95 or Windows NT 4.0, the flag is ignored. To check whether hot tracking is enabled, call SystemParametersInfo.
Does not insert a thousands separator between every three decimal digits.
Causes the up-down control to set the text of the buddy window (using the WM_SETTEXT message) when the position changes. The text consists of the position formatted as a decimal or hexadecimal string.
Causes the position to "wrap" if it is incremented or decremented beyond the ending or beginning of the range.
Was this page helpful?
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback.