码迷,mamicode.com
首页 > 其他好文 > 详细

VC遍历窗口上的控件

时间:2018-05-07 19:52:57      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:VC   遍历控件   

CWnd *pChild = this->GetWindow(GW_CHILD); TCHAR szClassName[255] = { 0 }; while (pChild) { //获得类名 GetClassName(pChild->GetSafeHwnd(), szClassName, 255); CString strTemp=_T(""); //清空控件 pChild->SendMessage(WM_SETTEXT, 0, (LPARAM)(LPWSTR)(LPCWSTR)strTemp ); pChild = pChild->GetWindow(GW_HWNDNEXT); }


VC遍历窗口上的控件

标签:VC   遍历控件   

原文地址:http://blog.51cto.com/9233403/2113662

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!