admin管理员组

文章数量:1353284

I have a Windows desktop app and some of our dialogs have static text controls that we disable along with the control for which the static text is a label. We also have system settings that change the background color of windows to a dark color and change the text to a light color. Works fine except for those disabled static text controls. They look terrible. I have tried setting the font to not use anti-aliasing and a few other tricks to try to avoid the issue.

Is there anyway to influence how the OS draws this text short of implementing OnCtlColor and drawing the labels "disabled" while not actually disabling the controls?

Gee I hope insert image actually has the image show up when I post. Not there in the preview!

本文标签: How to avoid antialiasing of disabled static control on a Window dialogStack Overflow