I'm trying to learn win32 C++ programming. I was looking for a way to change the font for a button. After lenghy searching I found this:
I figured out how to get it to work and everything, and it changed the font fine. What I want to do now, however, is change the colour of the font used on the button.
HFONT hMultiFont=CreateFont(24,12,0,0,700,0,0,0,0,0,0,0,0,TEXT("Times New Roman"));
Unfortunately, I could not find a list with descriptions of the arguments for CreateFont, so I do not know what each of the numbers does.
If anoyone could give me a list of the arguments, or another function that I could use to change the font (as well as colour) I would really appreciate it.
Edit: And yes, I did search MSDN, but I couldn't find a proper description.
For buttons, you will have to use an owner-drawn control, for other controls the various WM_CTLCOLOR* (eg WM_CTLCOLOREDIT; although there is a WM_CTLCOLORBTN message, it is useless for this purpose) messages can be used with SetTextColor to effect the change.
Search this board - I think Adrianxw has posted an owner-drawn button example at least once in the past.
Also read up on WM_DRAWITEM.