It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center




7年前关闭。




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

我在MSDN站点四处查看,未找到有关如何获取HCURSOR的资源ID的任何信息。
我怎么做?

谢谢。

最佳答案

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

您也许可以尝试根据已知的资源ID创建游标,然后将它们与相关的HCURSOR进行比较。 (系统游标应与LoadImage(..., LR_SHARED)一起使用,因此多个调用应返回相同的句柄。)

关于c++ - 从HCURSOR获取光标类型,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13241940/

10-10 21:20