textbox font

Started by Marc van Cauwenberghe, April 06, 2013, 01:44:45 PM

Previous topic - Next topic

Marc van Cauwenberghe

Hi,
I would like to change the font properties of a textbox with handle hTextbox by clicking buttons. Size, bolt, italic, ....
I searched for a hour or 2 and could not find an easy way.

Anyone got some snippet?

Many thanks,
Marc


José Roca

In my headers (file AfxWin.inc) I provide the following functions:

AfxFontModifyFontFaceName
AfxFontSetWeight
AfxFontSetItalic
AfxFontSetUnderline
AfxFontSetStrikeOut
AfxFontSetCharset

They are documented in the help file for my headers.

Marc van Cauwenberghe

Thank you very much Jose. Really great.

Have a very nice day,
Marc