Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. DrawText is too slow.

DrawText is too slow.

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    William Wang
    wrote on last edited by
    #1

    DrawText is too slow when string is long enough and without "\n" among the string charaters.any body knows another way instead DrawText? thanks regards.

    A 1 Reply Last reply
    0
    • W William Wang

      DrawText is too slow when string is long enough and without "\n" among the string charaters.any body knows another way instead DrawText? thanks regards.

      A Offline
      A Offline
      alex barylski
      wrote on last edited by
      #2

      TextOut() It's frustrating being a genius and living the life of a moron!!!

      W 1 Reply Last reply
      0
      • A alex barylski

        TextOut() It's frustrating being a genius and living the life of a moron!!!

        W Offline
        W Offline
        William Wang
        wrote on last edited by
        #3

        Great! But I have a problem with multiline text,I want to text it like a multiline edit control does. I don't know when should I break up the line and start a new line to text. in another word: I need a method to cauculate one character's width, it isn't only limited in english characters. thanks,so much life is like a box of chocolate,you never know what you r going to get. -- modified at 1:42 Wednesday 19th October, 2005

        D 1 Reply Last reply
        0
        • W William Wang

          Great! But I have a problem with multiline text,I want to text it like a multiline edit control does. I don't know when should I break up the line and start a new line to text. in another word: I need a method to cauculate one character's width, it isn't only limited in english characters. thanks,so much life is like a box of chocolate,you never know what you r going to get. -- modified at 1:42 Wednesday 19th October, 2005

          D Offline
          D Offline
          doctorpi
          wrote on last edited by
          #4

          I think you need GetTextExtent Dr.pi

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups