Niko Gamulin
Niko Gamulin

Reputation: 66585

How to change font/color on MFC dialog for Windows Mobile?

Does anyone know how to set font and color on a static text and other controls of MFC dialog for Windows Mobile?

Where can I get the list of supported fonts?

Thanks!

Upvotes: 1

Views: 4575

Answers (3)

Joel
Joel

Reputation:

It depends on the control, but take a look at the Windows messages starting with WM_CTLCOLOR (e.g., WM_CTLCOLORSTATIC). For the fonts, use EnumFontFamilies.

Upvotes: 0

ctacke
ctacke

Reputation: 67198

Colors are changed via SetBkColor and SetTextColor.

Here is an example of enumerating fonts.

Upvotes: 2

Related Questions