-
July 22nd, 2011, 07:25 AM
#1
Drawing text and emotion images
Hi,
I would like to draw a smiley within a text block like this
"Hello, how are you .
See you soon."
What is the best way to do this? I need DrawText flags to WORDBREAK etc.
Thanks in advance.
-
July 22nd, 2011, 08:16 AM
#2
Re: Drawing text and emotion images
Create a custom control derived from CWnd, implement the OnPaint() message handler and draw in this control what you want: texts, pictures and so on...
Victor Nijegorodov
-
July 22nd, 2011, 08:33 AM
#3
Re: Drawing text and emotion images
Yes, but then I'll have to do all logic by myself (WORDBREAK flags, parsing \r\n etc). I was looking for an easier way.
-
July 22nd, 2011, 08:41 AM
#4
Re: Drawing text and emotion images
Originally Posted by Nicholas_K
Yes, but then I'll have to do all logic by myself (WORDBREAK flags, parsing \r\n etc). I was looking for an easier way.
Well, someone must do such a work in any case!
If you don't want to do it youself - try to find something similar in the article sections of CG or/and www.codeproject.com
Last edited by VictorN; July 22nd, 2011 at 10:01 AM.
Victor Nijegorodov
-
July 22nd, 2011, 11:34 AM
#5
Re: Drawing text and emotion images
Thanks Victor, I've already been looking there so I guess I have to start digging , a bit annoying for such a simple task.
-
July 22nd, 2011, 02:05 PM
#6
Re: Drawing text and emotion images
Originally Posted by Nicholas_K
Thanks Victor, I've already been looking there so I guess I have to start digging , a bit annoying for such a simple task.
So typesetting is a simple task now?
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio:
FeinWindows - replacement windows manager for Visual Studio, and more...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|