INF: Graying the Text of a Button or Static Text Control

ID Number: Q39480

2.10 3.00 3.10

WINDOWS

Summary:

A control is a child window that is responsible for processing

keyboard, mouse, focus, and activation messages, among others. A

control paints itself and processes text strings. The color of the

text in a button or static text control is automatically changed to

gray when the control is disabled with the EnableWindow function.

However, If an application subclasses a control to process WM_PAINT

messages for the control, the application can use the GrayString

function to change the text color.

Additional reference words: 2.10 3.00 3.10 grey SR# G881208-7678