C++ 滚动IE滚动条

CString StrPath = L"Frame Tab\\TabWindowClass\\Shell DocObject View\\Internet Explorer_Server";
 HWND IEMain = ::FindWindow(L"IEFrame", NULL);
 HWND FrameTab = ::FindWindowEx(IEMain, NULL, L"Frame Tab", NULL);
 HWND TabWindowClass = ::FindWindowEx(FrameTab, NULL, L"TabWindowClass", NULL);
 HWND ShellDocObjectView = ::FindWindowEx(TabWindowClass, NULL, L"Shell DocObject View", NULL);
 HWND IE = ::FindWindowEx(ShellDocObjectView, NULL, L"Internet Explorer_Server", NULL);
 ::SendMessage(IE, WM_KEYDOWN, VK_RIGHT , 0);
 ::SendMessage(IE, WM_KEYUP, VK_RIGHT , 0);

当网页中的文本输入框失去焦点时才可以滚动 
相关文章
相关标签/搜索