Closing Internet Explorer
Posted on 2000-05-01
I am trying to close any open window of Microsoft Internet Explorer. As far as I know the class of this window is 'IEFrame', so the folowing code should do it:
var WinHandle: Integer;
WinHandle := FindWindow('IEFrame', nil);
if WinHandle <> 0 then SendMessage(WinHandle, wm_close, 0, 0);
The problem is that it doesn't work (I close other windows with this code). Even using the windows caption instead of the class doen't work. In both cases you can hear a system beep and that's all.