//this 为parent窗口的指针
CEdit* pEdit = new CEdit;
pEdit->Create(ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER,
CRect(10, 10, 100, 100), this, 1);
转载于:https://www.cnblogs.com/eric_lgf/archive/2009/08/05/1539666.html
转载于:https://www.cnblogs.com/eric_lgf/archive/2009/08/05/1539666.html