获取鼠标光标图像 [英] get the mouse cursor image

查看:101
本文介绍了获取鼠标光标图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于执行速度快,我想用c ++或c获取当前的鼠标光标图像.在我的应用程序中,我想在小程序中显示光标.所以我想将图像作为缓冲图像.我发现我们可以将图像作为位图数据获得.但由于缺乏文档,无法弄清楚该怎么做.您能帮我找到一个很好的教程来了解如何获取光标图像吗?

I wanted to get the current mouse cursor image in c++ or c because of the speed of execution. In my application I want to show the cursor in an applet. so I want to get the image as an buffered image. I found that we can get the image as bit map data. but can''t figure out how it can do it because of lack of documentation. can you help me to find me a good tutorial to understand how I get the cursor image?

推荐答案

Win API的GetCursor函数
返回值是当前游标的句柄.如果没有游标,则返回值为NULL.

请在这里查看:
http://msdn.microsoft.com/zh-我们/library/windows/desktop/ms648388%28v=vs.85%29.aspx [
GetCursor function of Win API
The return value is the handle to the current cursor. If there is no cursor, the return value is NULL.

Please see here:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms648388%28v=vs.85%29.aspx[^]


在这里看看:
http://stackoverflow.com/questions/3509951/how-to- get-mouse-cursor-icon-vs-c [ ^ ]

祝你好运!
Have a look over here:
http://stackoverflow.com/questions/3509951/how-to-get-mouse-cursor-icon-vs-c[^]

Good luck!


这篇关于获取鼠标光标图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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