TA的每日心情 | 开心 昨天 06:36 |
---|
签到天数: 15 天 [LV.4]偶尔看看III
管理员
- 积分
- 1308
|
- static void MyGroupTextFrame () {
- HWND hwnd = AcadGetTextFrameHandle();
- WCHAR buf[100000]=L"";
- WCHAR TotalBuf[100000]=L"";
- if (hwnd) {
- if (GetWindowTextW(hwnd, buf, sizeof(buf)/sizeof(buf[0])-1) > 0) {
- StrCatW(TotalBuf,buf);
- }
- HWND hwndChild = GetWindow(hwnd,GW采用CHILD);
- hwndChild = GetWindow(hwndChild,GW采用CHILD);
- hwndChild = GetWindow(hwndChild,GW采用CHILD);
- do {
- if (GetWindowTextW(hwndChild, buf, sizeof(buf)/sizeof(buf[0])-1) > 0) {
- StrCatW(TotalBuf,采用T("\n")); StrCatW(TotalBuf,buf);
- }
- } while (hwndChild = GetWindow(hwndChild, GW采用HWNDNEXT));
- acutPrintf(采用T("\nBuf==%s"), TotalBuf);
- }
- }
复制代码 |
|