IDC_COMBO1在對話框(IDD_DIALOG1)上,IDD_DIALOG1|Add
Class|class CTextDialogalog: public CDialog;
BOOL CTextDialog::OnInitDialog(){}對combobox的選項初始化,
但是
// Select the next item of the currently selected item
// in the combo box.
int nIndex = m_pComboBox->GetCurSel();
int nCount = m_pComboBox->GetCount();
if ((nIndex != CB_ERR) && (nCount > 1))
{
if (++nIndex < nCount)
m_pComboBox->SetCurSel(nIndex);
else
m_pComboBox->SetCurSel(0);
}
獲取當前選中值的代碼應該放在什麼function(?)?
http://blog.csdn.net/mlj318/article/details/6719022