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);
}
原文地址:http://blog.51cto.com/9233403/2113662
时间: 2024-11-05 16:41:44