关于WM_GETTEXT的应用

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);

上一篇:Ubuntu 18.04 LTS IP 地址设置


下一篇:Ubuntu14.04 固定IP