SpinButton::GetRange

Description

Call this function to retrieve the upper and lower limits (range) for a spin button control.

Syntax

void GetRange( int & nLower, int & nUpper )

Parameters

nLower
Reference to an integer that receives the lower limit for the control.
nUpper
Reference to an integer that receives the upper limit for the control.

Return

Examples

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);
}

Remark

See Also

Header to Include

Control.h