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);
当网页中的文本输入框失去焦点时才可以滚动
C++ 滚动IE滚动条
最新推荐文章于 2022-05-16 16:08:09 发布