Hi, I want to very simply give a specific control a specific font when creating a GUI. For example, I would like a multiline edit text control to have a courier new font. I have been searching for hours and can't really make much sense of what I am looking at with things such as CreateFontEx() and EnumFontFamilyEx() etc. I first had the idea of setting the font to a control using the SendMessage() API and specifying a HFONT object as a parameter, but actually getting the font itself is what is difficult.
I know that I could use GetStockObject(DEFAULT_GUI_FONT) or something along those lines but thats not what I want.

Any suggestions or tutorials to look out for?

Thanks in advance.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.