VC遍历窗口上的控件
CWnd*pChild=this->GetWindow(GW_CHILD);TCHARszClassName[255]={0};while(pChild){//获得类名GetClassName(pChild->GetSafeHwnd(),szClassName,255);CStringstrTemp=_T("");//清空控件pChild->SendMessage(WM_SETTEXT,0,(LPARAM)(LPWSTR)(LPCWSTR)strTemp);pChild=pChild->GetWindow(GW_HWNDNEXT);}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。