标签:for length win find n+1 应用 message end box
HWND hw = ::FindWindow(NULL,"Form1");
HWND hw2 = ::FindWindowEx(hw,NULL,NULL,NULL);
int len = ::SendMessage(hw2, WM_GETTEXTLENGTH, 0, 0);
char* buffer = new char[len+1];
int n = ::SendMessage(hw2,WM_GETTEXT,len+1,(LPARAM)buffer);
MessageBox(buffer);
标签:for length win find n+1 应用 message end box
原文地址:http://www.cnblogs.com/gin304994/p/6118312.html