Up-Down Controls

An up-down control, also known as a spin button control, is a pair of arrow buttons that a user can tap with the stylus to increment or decrement a value. An up-down control is most often used with a companion control, called a buddy window, in which the current value is displayed. In Windows CE-based applications, up-down controls can only be "buddies" with edit controls.

    

Up-Down control and buddy window

You create an up-down control by using the CreateUpDownControl function. This class is registered when the common control DLL is loaded. You can use the InitCommonControls function to ensure that this DLL is loaded.

To register the up-down control class using the InitCommonControlsEx function, specify the ICC_UPDOWN_CLASS flag as the dwICC member of the INITCOMMONCONTROLSEX structure you pass in the lpInitCtrls parameter.

Windows CE does not support hot tracking.