L
linuxping
Unregistered / Unconfirmed
GUEST, unregistred user!
建立对话框CAboutDlg ID_ABOUTBOX;在 上面放控件CListBox;然后用类向导建立CListBox对应的变量m_List.在构造函数中写CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD){ //{{AFX_DATA_INIT(CAboutDlg) m_List.AddString("00000"); m_List.AddString("11111"); //}}AFX_DATA_INIT}会出错!! //OnShowWindow中则不会出错???????????void CAboutDlg::OnShowWindow(BOOL bShow, UINT nStatus) { CDialog::OnShowWindow(bShow, nStatus); m_List.AddString("00000"); m_List.AddString("11111"); // TODO: Add your message handler code here }