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. Calculating the Number of Charcters in a Line Of a MultiLine Dialog Box

Calculating the Number of Charcters in a Line Of a MultiLine Dialog Box

Scheduled Pinned Locked Moved C / C++ / MFC
jsonquestion
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.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    Hi, I have a Multiline Dialog Box would anyone have the sequence of Win32 SDK API calls to calculate/set the number of characters in a Line of a Multiline Dialog Box BTW I am using Rich Edit 2.0 though I don't think this has any bearing on my question

    A M 2 Replies Last reply
    0
    • F ForNow

      Hi, I have a Multiline Dialog Box would anyone have the sequence of Win32 SDK API calls to calculate/set the number of characters in a Line of a Multiline Dialog Box BTW I am using Rich Edit 2.0 though I don't think this has any bearing on my question

      A Offline
      A Offline
      Alexander M
      wrote on last edited by
      #2

      i guess it's done automatically

      Don't try it, just do it! ;-)

      1 Reply Last reply
      0
      • F ForNow

        Hi, I have a Multiline Dialog Box would anyone have the sequence of Win32 SDK API calls to calculate/set the number of characters in a Line of a Multiline Dialog Box BTW I am using Rich Edit 2.0 though I don't think this has any bearing on my question

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #3

        what about CRichEditCtrl::GetTextLength() ? how dumb of me... shoulda read the whole thing. what about getting the whole text and looking for CR-LF and counting the characters between them ?

        This signature was proudly tested on animals.

        F 1 Reply Last reply
        0
        • M Maximilien

          what about CRichEditCtrl::GetTextLength() ? how dumb of me... shoulda read the whole thing. what about getting the whole text and looking for CR-LF and counting the characters between them ?

          This signature was proudly tested on animals.

          F Offline
          F Offline
          ForNow
          wrote on last edited by
          #4

          I am using Plains old C so EM_LINELENGTH But if I cann't fit the Number of Characters I want on the Line I would to some how want to make the font smaller ??? I guess I shoud re-prhase the question if I for Instance want 12 characters on one line of a MultiLine Dialog Box How Can I calculate/set the right Font ??

          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