CWnd *pCwnd = FindWindow(NULL, _T("Untitled - Notepad")); HWND handle = pCwnd->GetSafeHwnd(); pCwnd->PostMessageA(WM_PASTE,0,0);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)