鼠标滚动同步两个窗口 [英] Mouse scroll syncronisation for two windows

查看:296
本文介绍了鼠标滚动同步两个窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我希望使用WIN32 C ++来同步滚动两个独立的窗口.现在,无论哪个窗口聚焦,滚动都仅对该窗口起作用.但是我的要求是,两个窗口都应该滚动一次.有人建议我也向其他窗口发送相同的滚动消息,但是MSDN说WM_HSCROLL消息仅对活动窗口执行.请为此提出一些解决方案,以下是为滚动发送的消息

Hi!

I want two independent windows to be scroll synchronously using WIN32 C++. Right now whichever window in focused, scroll is working for only that window. But my requirement is like, with a single scroll both the windows should scroll. Someone suggested me to send same scroll message for other window also, but MSDN says WM_HSCROLL message executes only for the active window. Please suggest some resolution for this, below is the message sent for scrolling

FORWARD_WM_MOUSEWHEEL((HWND) *EegOut, x, y, zDelta, fwKeys, SendMessage);



此之后,SendMessage发送WM_HSCROLL消息.
请帮忙.



After this SendMessage sends WM_HSCROLL message.
Please help.

推荐答案

请参见 ^ ]线程,其中包含类似问题的答案. :)
See this[^] thread, which contains the answer for a similar problem. :)


这篇关于鼠标滚动同步两个窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆