AfxGetApp () - & gt; GetMainWnd () - & gt; SendMessage (WM_COMMAND ID_FILE_NEW_TXT);
CMDIChildWnd * pChild=(CMDIChildWnd *) ((CFrameWnd *) AfxGetApp () - & gt; GetMainWnd ()) - & gt; GetActiveFrame ();
PDoc CEditorDoc *=(CEditorDoc *) pChild - & gt; GetActiveDocument (); Pointer to a new document, the document, will think the Mat in the document, how to do?
CodePudding user response:
1 save data into a text file to open the2 copies of data to the clipboard, GetEditCtrl (). Paste ();