Re: Change color of font in a dialog box by Igor
Igor
Fri Feb 06 15:18:56 CST 2004
"Robert" <anonymous@discussions.microsoft.com> wrote in message
news:36192660-8262-47B4-8AFE-EC925A3EF7E9@microsoft.com...
> I know you can change the font name and size by adjusting the Dialog
properties. How can you change the font color to RED?
Who's drawing the text? Do you have a static control? If so, see
WM_CTLCOLORSTATIC message.
> Also, you can define the Caption of the dialog box thru the
properites, how do you change it dynamically from your program. Is it
the SetWindowText function?
Yes.
> If so, what's the name of the control that's associated with the
Dialog caption?
You call SetWindowText on the dialog itself.
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken