【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.6.29.5 SpinButton::SetPos
Contents
Description
Call this function to set the current position for a spin button control.
Syntax
int SetPos( int nPos )
Parameters
- nPos
- New position for the control. This value must be in the range specified by the upper and lower limits for the control.
Return
The previous position
Examples
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); }
Remark
See Also
Header to Include
Control.h