【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.6.6.8 ComboBox::GetCurSel
Contents
Description
Syntax
int GetCurSel( )const
Parameters
Return
Examples
EX1
#include <..\OriginLab\DialogEx.h> #define IDC_COMBO1 1001 void ComboBox_GetCurSel_ex1(Dialog& MyDlg) { ComboBox m_cmbBox = MyDlg.GetItem(IDC_COMBO1); int nSel = 3; m_cmbBox.SetCurSel( nSel ); ASSERT( 3 == m_cmbBox.GetCurSel() ); }
Remark
See Also
Header to Include
Control.h