Thanks for your time. Yes, with style flag 3 (1+2) you stop the right mouse button (flag 1) and you've a direct control over links (flag 2) , but it doesn't stop the opening of links in a new window.
I found a solution though.
I use these few lines:
They must be executed for some time after a new link is pressed by the user. If a new "IE" window is opening, it is soon closed then.
You also need these API definitions for user32.dll :
user32.decls
I found a solution though.
I use these few lines:
Const WM_CLOSE=16 hWnd=FindWindow_NameNull("IEFrame",0) If hWnd PostMessage(hWnd,WM_CLOSE,0,0) EndIf
They must be executed for some time after a new link is pressed by the user. If a new "IE" window is opening, it is soon closed then.
You also need these API definitions for user32.dll :
user32.decls
FindWindow_NameNull%(lpClassName$,lpWindowName%):"FindWindowA" PostMessage%(hWnd%,Msg%,wParam%,lParam%):"PostMessageA"