当光标超出窗口范围时获取鼠标位置 [英] Get mouse position when cursor is out of window bounds

查看:80
本文介绍了当光标超出窗口范围时获取鼠标位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 当鼠标不在窗口边界内时,我需要获取相对于屏幕或窗口的鼠标坐标.
而且我一定不能使用"user32.dll"

 i need to get the mouse coordinates relative to screen or window, when the mouse is out of window boundaries.
And i must not use "user32.dll"

推荐答案

好....它的用户使用user32.dll,否则您必须创建一个transperetnless无边距窗口来缓存所有鼠标位置....
Well .... its eater ti use user32.dll or you have to create a transperetn borderless window to cach all the mouse positions....


这篇关于当光标超出窗口范围时获取鼠标位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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