Drawing text and emotion images
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Drawing text and emotion images

  1. #1
    Join Date
    Jan 2003
    Location
    Lund, sweden
    Posts
    32

    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.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,414

    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

  3. #3
    Join Date
    Jan 2003
    Location
    Lund, sweden
    Posts
    32

    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.

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,414

    Re: Drawing text and emotion images

    Quote Originally Posted by Nicholas_K View Post
    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

  5. #5
    Join Date
    Jan 2003
    Location
    Lund, sweden
    Posts
    32

    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.

  6. #6
    Join Date
    Aug 2000
    Location
    New York, NY, USA
    Posts
    5,526

    Re: Drawing text and emotion images

    Quote Originally Posted by Nicholas_K View Post
    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:
    FeinViewer - an integrated GDI objects viewer for Visual C++ Debugger, 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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center