如何在listview中不失焦点 [英] how to not lose focus in listview

查看:76
本文介绍了如何在listview中不失焦点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在listview中选择了一个项目后,当我点击其他按钮或空格时选择标记消失

也许我认为焦点也消失了。



即使用户点击其他空间,是否有任何列表视图样式不会丢失所选标记?

我无法找到它在msdn中,请给我建议

After one item is selected in listview, selected mark dissapear as I click other button or space
maybe I think focus is gone also.

Is there any listview style that doesn''t lose selected mark even though user click other space?
I couldn''t find it in msdn, please give me advice

推荐答案

列表 - 视图窗口样式 [ ^ ]



您可能需要在创建控件时指定LVS_SHOWSELALWAYS。



最好的问候

Espen Harlinn
List-View Window Styles[^]

You probably need to specify LVS_SHOWSELALWAYS when you create the control.

Best regards
Espen Harlinn


设置 HideSelection属性 [ ^ ] ListView false 和即使 ListView 没有焦点,也应始终显示选择。
Set the HideSelection property[^] of the ListView to false and the selection should always be displayed even when the ListView does not have the focus.


这篇关于如何在listview中不失焦点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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