获取鼠标光标图像

问题描述:

由于执行速度快,我想用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!