int iTextLen; iTextLen = SendMessage(hwnd, WM_GETTEXTLENGTH, 0, 0); WCHAR buf[65535]; SendMessage(hwnd, WM_GETTEXT, iTextLen + 1, (LPARAM)buf); edtText->Text = buf;
不能获取对象TForm*这样的对象 findWindow、借助api获得子对象的句柄,getwindowsText等获取文本等
1,221
社区成员
8,136
社区内容
加载中
试试用AI创作助手写篇文章吧