几何尺寸与公差论坛

 找回密码
 注册
查看: 2012|回复: 0

遍历对话框里的static控件

[复制链接]
发表于 2007-5-31 16:01:39 | 显示全部楼层 |阅读模式
LPCTSTR  lpWindowName = _T("QQ用户登录");
CWnd *pDialog = FindWindow(NULL, lpWindowName);
CWnd * pChild = pDialog->GetWindow(GW_CHILD);

CString sText;

for (; pChild; )
{
  pChild->GetWindowText(sText);
  if (sText == _T("deg"))
   pChild->SetWindowText("mdeg");
  
  pChild = pChild->GetNextWindow(GW_HWNDNEXT);
}
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-9-28 05:59 , Processed in 0.034844 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表