SpinButton::GetPos

Description

Syntax

int GetPos( )

Parameters

Return

The current position in the low-order word. The high-order word is nonzero if an error occurred

Examples

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

Remark

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.

See Also

header to Include

Control.h