SetPos
Call this function to set the current position for a spin button control.
int SetPos( int nPos )
The previous position
EX1
#include <Control.h> #include <..\OriginLab\DialogEx.h> #define IDC_SPIN1 1001 void SpinButton_SetPos(Dialog& MyDlg) { SpinButton m_spBtn = MyDlg.GetItem(IDC_SPIN1); int nPos = m_spBtn.SetPos(10); }
Control.h