从HCURSOR获取游标类型 [英] Get cursor type from HCURSOR

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

问题描述

我从另一个进程得到一个HCURSOR。我想找到它的类型。
它的资源是这些 LoadCursor



我在MSDN网站环顾四周没有找到任何有关如何获取HCURSOR的资源ID的信息。


解决方案

你不是。游标不一定具有资源ID(例如,您可以在内存中创建游标)。



您可能尝试从已知资源ID创建游标,然后比较它们到 HCURSOR 。 (系统光标应与 LoadImage(...,LR_SHARED)一起使用,因此多个调用应返回相同的句柄。)


I get a HCURSOR from another process. I would like to find its type. Its resource is of these LoadCursor.

I looked around in MSDN site did not found any info about how to get resource id of the HCURSOR. How do i do that?

Thank you.

解决方案

You don't. Cursors don't necessarily have resource IDs (you could create a cursor in memory, for example).

You perhaps could try creating cursors from known resource IDs and then comparing them to the HCURSOR in question. (System cursors should be used with LoadImage(..., LR_SHARED), so multiple calls should return the same handle.)

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

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