1

Topic: How to change text color and a background at a component?

There is a text box m_IDC_EDIT1 type CEdit. In this text box there is some text. How to make so that in  a state (that is when m_IDC_EDIT1.EnableWindow (0);) the text continued to remain black color, and a background - white color?

2

Re: How to change text color and a background at a component?

Hello, RussianFellow, you wrote: WM_CTLCOLORSTATIC By responding to this message, the parent window can use the specified device context handle to set the text and background colors of the static control, or an edit control that is read-only or disabled.

3

Re: How to change text color and a background at a component?

Hello, flt, you wrote: F> Hello, RussianFellow, you wrote: F> WM_CTLCOLORSTATIC And how in MFC to process this message?

4

Re: How to change text color and a background at a component?

Hello, RussianFellow, you wrote: RF> And how in MFC to process this message? MSDN.