-1
试图字符串添加到组合框:添加字符串MFC组合框
BOOL CMyAppDlg::OnInitDialog()
{
CComboBox *combo= (CComboBox *)GetDlgItem(IDC_COMBO_TT);
combo->AddString("s1");
combo->AddString("s2");
// ...
return TRUE;
}
为什么框列表仍然是空的?
不知道。您未能检查“AddString”函数的返回值。 –