home Tech Library Tech Forum
Publisher
 
Custom Controls in MFC       
 
 
Spin Control and its Styles
 
 

 

A spin button control is a pair of arrow buttons that the user can click to increment or decrement a value; it is also referred to as an “up-down” control. The current position value can be displayed in a companion window. A spin button control is most often used with a companion control, called a buddy window. In addition to the window styles that apply to the common controls, there are styles specific to each new common control.
 
Spin Button Control Styles
UDS_HORIZ Arrows are horizontal rather than vertical.
UDS_ARROWKEYS Responds to keyboard arrow keys when it has the focus.
UDS_AUTOBUDDY Selects the previous control in the tab order as the control’s buddy.
UDS_SETBUDDYINT Causes the control to set the text of the buddy window when its position changes.
UDS_ALIGNRIGHT Positions the spin button control next to the right edge of the buddy.
UDS_ALIGNLEFT Positions the spin button next to the left edge of the buddy.
UDS_WRAP Causes the position to wrap if it goes beyond the range.
UDS_NOTHOUSANDS Does not insert a thousandths separator between every three decimal digits.
   
   
   
  RELATED TOPICS  
Custom Controls in MFC
SubClassing a Window
Common Custom Controls in MFC
Creating the Common Controls
Slider Control and Styles
List View Control and Styles
Tree View Control and Styles
Notification Messages by Common Controls
Property Sheets
How to create a Modal Property Sheet
 


 
           
Home | Profile | Users | Library | Publisher | Tech Forum | News | Contact Us