Can anyone please tell me how to set the focus to my Web Browser?
I have an IWebBrowser2 in my app hosted inside a CAxWindow.
The problem is that when the application has loaded and the browser navigates to the start page, the user must click the mouse in the browser control window in order to get mousewheel scrolling and keyboard navigation to work.
I'd like to have this done automatically.
I need to make it so that when I click a button in my app and I send the pagedown and pageup key events or other keyboard events, the browser is focused so it receives them. No need to click at the start.
SetFocus has not worked, I'm not sure I got the DoVerb in IOleObject right, but I tried that one too.