I am using the following line
SetForegroundWindow(hWnd);
in c++ to get focus to an ie8 window. What actually happens is , i get focus for 2 times and after that if i open the next time instead of getting the focus, it just blinks in the taskbar in orange colour.
Please provide me a resolution for this.
Any alternative for SetForegroundWindow()
?
I have tried using
SendMessage(hWnd, WM_SYSCOMMAND, SW_SHOW,0);
It did not work.