int GetPos( )
The current position in the low-order word. The high-order word is nonzero if an error occurred
EX1
#include <Control.h> #include <..\OriginLab\DialogEx.h> #define IDC_SPIN1 1001 void SpinButton_GetPos(Dialog& MyDlg) { SpinButton m_spBtn = MyDlg.GetItem(IDC_SPIN1); int nPos = m_spBtn.GetPos(); }
Call this function to retrieve the current position of a spin button control.
When it processes the value returned, the control updates
its current position based on the caption of the buddy window.
The control returns an error if there is no buddy window
or if the caption specifies an invalid or out-of-range value.
Control.h