GetCurSel
int GetCurSel( )const
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() ); }
Control.h