1 2 3 4 5 6 7 8 9 10 11 |
void CTestDlg::OnOK() { // TODO: Add extra validation here CEdit* edit; edit = new CEdit; edit->Create( ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER, CRect(10,10,120,30), this, 1); edit->SetWindowText("SysProgram"); } |
转载请注明:exchen's blog » MFC 动态创建控件