Share via


CSpinButtonCtrl::SetPos

Sets the current position for a spin button control.

int SetPos( 
   int nPos  
); 
int SetPos32( 
   int nPos  
);

Parameters

  • nPos
    New position for the control. This value must be in the range specified by the upper and lower limits for the control.

Return Value

The previous position (16-bit precision for SetPos, 32-bit precision for SetPos32).

Remarks

SetPos32 sets the 32-bit position.

Requirements

Header: afxcmn.h

See Also

Reference

CSpinButtonCtrl Class

Hierarchy Chart

CSpinButtonCtrl::SetRange

CSpinButtonCtrl::GetPos