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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Setting multile line text in a document

Setting multile line text in a document

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 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.
  • K Offline
    K Offline
    koumodaki
    wrote on last edited by
    #1

    I am coding an application which has a menu and a document. The menu has few radio buttons and check boxes. Based on user selection on the menu, I need to display description of what user's choices mean [few lines of text for each selection] on the document. I know CEdit class has GetLine() GetLineCount() to get the lines in a multi line document. But how do I display text sequentially on the document using CEdit class?

    R F 2 Replies Last reply
    0
    • K koumodaki

      I am coding an application which has a menu and a document. The menu has few radio buttons and check boxes. Based on user selection on the menu, I need to display description of what user's choices mean [few lines of text for each selection] on the document. I know CEdit class has GetLine() GetLineCount() to get the lines in a multi line document. But how do I display text sequentially on the document using CEdit class?

      R Offline
      R Offline
      Reagan Conservative
      wrote on last edited by
      #2

      I might not get the true meaning of your question, but you can provide the user with 'tool tips' (yellow box with text) to explain what each item does. Would that help with what you are trying to accomplish?

      John P.

      1 Reply Last reply
      0
      • K koumodaki

        I am coding an application which has a menu and a document. The menu has few radio buttons and check boxes. Based on user selection on the menu, I need to display description of what user's choices mean [few lines of text for each selection] on the document. I know CEdit class has GetLine() GetLineCount() to get the lines in a multi line document. But how do I display text sequentially on the document using CEdit class?

        F Offline
        F Offline
        fefe wyx
        wrote on last edited by
        #3

        You can use SetWindowText. Also you can use ReplaceSel to insert text in the current cursor position if nothing is selected.

        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