GetRange
Call this function to retrieve the upper and lower limits (range) for a spin button control.
void GetRange( int & nLower, int & nUpper )
EX1
#include <Control.h> #include <..\OriginLab\DialogEx.h> #define IDC_SPIN1 1001 void SpinButton_GetRange(Dialog& MyDlg) { int nLower, nUpper; SpinButton m_spBtn = MyDlg.GetItem(IDC_SPIN1); m_spBtn.GetRange(nLower, nUpper); }
Control.h