TCHAR titleText[MAX_PATH] = {0};
HWND nHwnd = ::FindWindow(”指定类名“, ”指定标题“);
while(nHwnd != NULL) {
::GetWindowText(nHwnd, titleText, MAX_PATH);
if (_tcslen(titleText) > 0) MessageBox(titleText);
nHwnd = ::FindWindowEx(0, nHwnd, NULL, ”指定标题“);
}
请教一下,我用上述代码枚举指定窗口,然后要截取窗口的部分标题,要怎么处理?