135-1821-9792

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遍历窗口上的控件
转载注明:http://wtcwzsj.com/article/psjoge.html

其他资讯



Copyright © 2009-2022 www.wtcwzsj.com 青羊区广皓图文设计工作室(个体工商户) 版权所有 蜀ICP备19037934号