how to close ie8 tabs
- by omair iqbal
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;