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. How can I change font for just say one line in a multiline edit box?

How can I change font for just say one line in a multiline edit box?

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
2 Posts 2 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.
  • E Offline
    E Offline
    Erich Ruth
    wrote on last edited by
    #1

    I have a multiline edit box with scrolling vertical bars. The user sometimes types lots of text in this edit box. I want the user to know where the end of each page is. So I want to say something like if this is the 50th line of the edit box then insert the text 'End of Page' and make this text smaller and bolder in color I know how to find every 50th line of text. My question is, how can I change the font for just one line of text in a multiline edit box? Any response any one can give me will be greatly appreciated. Sincerely, Erich J. Ruth

    E 1 Reply Last reply
    0
    • E Erich Ruth

      I have a multiline edit box with scrolling vertical bars. The user sometimes types lots of text in this edit box. I want the user to know where the end of each page is. So I want to say something like if this is the 50th line of the edit box then insert the text 'End of Page' and make this text smaller and bolder in color I know how to find every 50th line of text. My question is, how can I change the font for just one line of text in a multiline edit box? Any response any one can give me will be greatly appreciated. Sincerely, Erich J. Ruth

      E Offline
      E Offline
      Erik Thompson
      wrote on last edited by
      #2

      You should use the Rich Edit Control instead of the regular Edit control.

      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