问题描述
我遇到了一个问题..在我的项目中,基本上有两个窗口.当满足某些条件时,我需要同时在两个窗口上同时进行操作.最初,我以前是这样做的.完成后,首先在第一个窗口上执行操作,然后在第二个窗口上执行操作,结果是这两个操作之间存在延迟,因为它必须在同一动作中同时发生而没有延迟.
Am struck up with a problem.. Basically in my project am having two windows. when certain condition is satisfied, i need to do operation on two windows simultaneously at the same time. Initially, I used to do like this First do operation on first window once finished then perform operation on second window & the result is there is delay between these two operations since it has to happen at the same time same movement without delay..
所以我想创建另一个鼠标光标..我的意思是一个原始的鼠标光标&另一个以编程方式创建的游标,因此当条件满足时,原始游标可以在第一个窗口&以编程方式创建的可以在第二个窗口上操作..与此同时,这两个操作可以同时发生.请谁能指导/建议我可以创建另一个光标吗?如果是这样,请建议我...如果不是,请给我任何有关如何完成此任务的想法.
So i thought to create another mouse cursor.. I mean one original mouse cursor & another Programmatically created cursor, So when condition satisfied Original cursor can operate on first window & programmatically created can operate on second window.. with this both operation can happen simultaneously at the same time..Please can anyone guide/suggest me Is it possible to create another cursor ? If so, please suggest me... If not, Give me any ideas how to accomplish this task..
谢谢大家.
推荐答案
不,您不能有两个光标.
No, you can't have two cursors.
如果您只是移动窗口,请尝试 DeferWindowPos ;否则,您可以尝试使用 SetRedraw .然后至少他们会看起来,就像他们在同一时间移动/改变一样.
If you're just moving the windows, try DeferWindowPos; otherwise you could try using SetRedraw. Then at least they will look as if they are moving / changing at the same time...
这篇关于在VC ++ MFC中创建另一个鼠标光标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!