views:

1096

answers:

3

Hi,

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!

+2  A: 

Colors are changed via SetBkColor and SetTextColor.

Here is an example of enumerating fonts.

ctacke
A: 

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.