删除没有所有者绘制的 Win32 公共控件上的虚线 [英] Remove the dotted line on a Win32 common control without owner-draw

查看:24
本文介绍了删除没有所有者绘制的 Win32 公共控件上的虚线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在没有所有者绘制或子类化的情况下删除 Win32 公共控件上指示键盘焦点的虚线矩形?

Is there any way to remove the dotted line rectangle, which indicates the keyboard focus, on a Win32 common control, without owner draw or subclass them?

好像在WPF下可以控制焦点矩形的视觉样式,但是在Win32通用控件上没找到对应的API.

It seems that under WPF one can control the visual style of the focus rectangle, but I failed to find corresponding API on a Win32 common control.

推荐答案

我不相信有一种简单的样式可以让您关闭列表视图控件上的焦点矩形.我见过它完成的唯一方法是使用所有者绘制控件.我知道这不是您要寻找的答案,但是有一些所有者绘制控件的示例可以执行此操作……这样您就不必做所有的工作.:)

I don't believe there is a simple style that allows you to turn off the focus rect on a list view control. The only way I've ever seen it done is with an owner draw control. I know this is not the answer you were looking for, but there are examples of owner draw controls that do this available... just so you don't have to do all the work. :)

这篇关于删除没有所有者绘制的 Win32 公共控件上的虚线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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