06/06/23 19:27:52 sqpbZVWI
ヒント:
char *cTitle;
cTitle = new char[LEN_BUFF + 1];
EnumWindows((WNDENUMPROC)EnumKill, (LPARAM)cTitle);
delete cTitle;
BOOL CALLBACK TConfigWWWCForm::EnumKill(HWND hWnd, LPARAM lParam) {
char *cTitle;
cTitle = (char *)lParam;
GetWindowText(hWnd, cTitle, LEN_BUFF);
if((GetWindow(hWnd, GW_OWNER) == NULL) && !strncmp(cTitle, "Jane", 4)) {
PostMessage(hWnd, WM_CLOSE, 0, 0);
}
return(true);
}