how to close ie8 tabs
Posted
by omair iqbal
on Stack Overflow
See other posts from Stack Overflow
or by omair iqbal
Published on 2010-05-15T05:41:16Z
Indexed on
2010/05/15
5:44 UTC
Read the original article
Hit count: 416
this code below is not closing tab in internet explorer 8 if i post wm_close command to Wnd it closes internet explorer but i want to close the current tab not entire 'ieframe' is FindWindowEX(Wnd , 0, 'Frame Tab', nil) supposed to retun handle to ie frame? if yes why is it not closing the current tab in internet explorer thanks in advance
var
Wnd,WndChild : hwnd;
begin
Wnd := FindWindow('IEFrame', nil);
WndChild := FindWindowEX(Wnd , 0, 'Frame Tab', nil);
postmessage(WndChild,wm_close,0,0);
end;
© Stack Overflow or respective owner