Tech Support > Microsoft Windows > Development Resources > Let's See a Happy Face :)
Let's See a Happy Face :)
Posted by Larry Lindstrom on February 26th, 2005


Hi Folks:

Developing on Win2k, VC6, Win32, not MFC, GDI, not GDI+.

My client wants to insert smiley faces and frowney faces
in text displayed with TextOut().

I understand fonts and CreateFontIndirect(). The app
uses Petzold's EZ Font example.

What I don't know is the face name and character code
for the smiley and frowney faces. I'd appreciate any
suggestions or sample code fragments that can simplify this
task.

Thanks
Larry

Posted by Severian on February 26th, 2005


On Sat, 26 Feb 2005 10:31:39 -0800, Larry Lindstrom
<nobody@aracnet.com> wrote:

Wingdings (J is smile, K is indifferent, L is frown).

You will have to change selected fonts between TextOut() calls.

--
Sev

Posted by Ufit on February 27th, 2005


Subclass the control displaying text and assign some
number or char sequence for your smileys.

U)


Similar Posts