通过 GetDlgItem (ID) 获取 Combobox 对象。
使用 GetWindowText 从该对象获取 Edit 控件中的字符串。

解决方案 »

  1.   

    // The pointer to my combo box.
    extern CComboBox* pmyComboBox;
    DWORD dwSel;// Set the selection to be all characters after the current selection.
    if ((dwSel=pmyComboBox->GetEditSel()) != CB_ERR)
    {
       pmyComboBox->SetEditSel(HIWORD(dwSel), -1);
    }
      

  2.   

    打开msdn  搜ccomboBox 仔细看看成员函数的用法。