{{{#!gcode BOOL CALLBACK CloseIEProc(HWND hWnd, LPARAM lParam) { enum { SZ_SIZE = 1024 }; TCHAR sz[SZ_SIZE + 1]; GetClassName(hWnd, sz, SZ_SIZE); CString strClassName(sz); if (strClassName.Compare(_T("IEFrame")) == 0 ) PostMessage(hWnd, WM_CLOSE, 0, 0); return TRUE; } EnumWindows(CloseIEProc, 0); }}} ----