禁用Windows默认文本突出显示 [英] Disable the windows default text highlight

查看:74
本文介绍了禁用Windows默认文本突出显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在寻找一种方法来禁用文本后面的突出显示颜色,通常以蓝色矩形的形式出现,这种颜色可以在大多数文本控件中看到.

有没有一种方法可以更改或禁用此功能,以便系统编程,甚至可以通过编程更好地控制单个控件?

谢谢George

Hi All,

I am looking for a way to disable the highlight color behind the text usually in the form of a blue rectangle that can be seen in the most of text controls.

Is there a way to change or disable this, for the system or even better an individual control programmatically?

Thanks George

推荐答案

最好的方法是创建一个可绘制自身的自定义控件,然后您可以选择使用本机控件还是自定义控件,无论哪种方式是适当的.这并非难事,但会有些乏味.

但是,人们不得不怀疑为什么要这么做. Windows的存在是为了给应用程序以相同的外观,以便用户一旦学会了如何使用一个Windows应用程序,便知道所有Windows应用程序都有什么用.
The best way would be to create a custom control that paints itself, and then you could chose to use either the native control or your custom control, whichever is appropriate. This wouldn''t be hard to do, but it would be a bit tedious.

However, one has to wonder why you would want to do this. The reason Windows exists is to give the same general appearance to applications so that once a user has learned how to use one windows app, he knows what to expect from all windows apps.


这篇关于禁用Windows默认文本突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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