CSpinButton

Win32++

CSpinButton Class

Description

The CSpinButton class is used to create and manage a spin button control.

Refer to the documentation that ships with the Microsoft Windows Software Development Kit for more information on the use of spin button controls.

CSpinButton Members

CSpinButton
CSpinButton();
Constructor for the CSpinButton.
GetAccel
int GetAccel(int cAccels, LPUDACCEL paAccels) const;
Retrieves acceleration information for the up-down control. GetBase
int GetBase() const;
Retrieves the current radix base (either base 10 or 16) for the up-down control. GetBuddy
HWND GetBuddy() const;
Retrieves the handle to the current buddy window. GetPos
int GetPos() const;
Retrieves the current position of the upd-down control with 16-bit precision. GetRange
DWORD GetRange() const;
Retrieves the minimum and maximum positions (range) for the up-down control. SetAccel
BOOL SetAccel(int cAccels, LPUDACCEL paAccels) const;
Sets the acceleration for the up-down control. SetBase
int SetBase(int nBase) const;
Sets the radix base (either 10 or 16) for the up-down control. SetBuddy
HWND SetBuddy(HWND hwndBuddy) const;
Sets the buddy window for the up-down control. SetPos
int SetPos(int nBase) const;
Sets the current position for the up-down control with 16-bit precision. SetRange
void SetRange(int nLower, int nUpper) const;
Sets the minimum and maximum positions (range) for the up-down control.
Base class Members

For base class members, refer to the members of CWnd.

Remarks

Like all common controls, the spin button control requires a parent window. This parent window is often a dialog, but simple windows can also be the parent window for a spin button control.

A spin button control is often referred to as an up-down control.

Summary Information

Header file controls.h
Win32/64 support Yes
WinCE support Yes