使用 windows hooks 处理 ImageList
我正在编写一个应用程序,可以通过 Hooks 捕获有关屏幕项目的信息 现在我试图在通过鼠标传递 ImageList 时获取它们的信息,“我想知道该项目的名称”
我该怎么做?
谢谢。
I am programming an application that can catching the information about the screen items by Hooks
Now I am trying to get the information of the ImageList when I pass them by mouse, "I want to know the name of the item"
how can i do this?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ImageList 中的图像没有名称,因此我不确定您是否在谈论 Win32 ImageList。但是,如果您实际上正在谈论它们,则必须检测您所在的控件类型(工具栏、列表视图等)并发送控件特定消息以获取图像列表句柄。
如果您不是在谈论 ImageList,而是在谈论实际控件,我建议您查看 辅助 API
Images in ImageLists don't have names, so I'm not sure you are talking about the Win32 ImageList. But if you are actually talking about them, you would have to detect the type of control you are over (toolbar,listview etc) and send the control specific message to get the imagelist handle.
If you are NOT talking about ImageLists, but actual controls, I would suggest looking at the Accessibility API