获取当前左键单击列表控件 [英] Get currently left clicked List Control

查看:70
本文介绍了获取当前左键单击列表控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我只是有一个小查询,我目前无法解决。基本上,在我的对话框中,我有四个列表控制窗口,我正在尝试在其中任何一个聚焦时更改位图。例如:如果第一个列表控件获得焦点或LButtonDown活动,我想检测并改变位图。目前,我知道我可以捕获LButtonDown按下命令,但是你能否建议我如何检测哪个List控件获得了焦点?另外,当该列表控件失去焦点时,如何再次更改位图?期待您的建议。

解决方案

参见 http://msdn.microsoft.com/en-us/library/bb774881(v = vs.85).aspx [ ^ ]和 http://msdn.microsoft.com/en-us/library/bb774871(v = vs.85)的.aspx [ ^ ]。

Hello,

I just have a small query which I am unable to resolve at the moment. Basically, in my dialog I have four list control windows and I am trying to change a bitmap on when any of them gets focused. For example: if the first list control gets focus or an LButtonDown activity, I would like to detect that and change the bitmap. At the moment, I know I can capture an LButtonDown press command, but could you suggest me as to how can I detect which List control has gained the focus? Also, how can I change the bitmap back again when that list control loses focus? Looking forward to your suggestions.

解决方案

See http://msdn.microsoft.com/en-us/library/bb774881(v=vs.85).aspx[^], and http://msdn.microsoft.com/en-us/library/bb774871(v=vs.85).aspx[^].


这篇关于获取当前左键单击列表控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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