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. Rich edit control and caption

Rich edit control and caption

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.
  • R Offline
    R Offline
    RaymondM
    wrote on last edited by
    #1

    I have a window created with CreateWindowEx, with a caption. When I load the text using EM_STREAMIN the opening line of the text goes into the caption, replacing the intended title. How do I prevent this, so as to retain the intended caption ?

    L enhzflepE 2 Replies Last reply
    0
    • R RaymondM

      I have a window created with CreateWindowEx, with a caption. When I load the text using EM_STREAMIN the opening line of the text goes into the caption, replacing the intended title. How do I prevent this, so as to retain the intended caption ?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You need to show us the code that causes this to happen.

      Veni, vidi, abiit domum

      1 Reply Last reply
      0
      • R RaymondM

        I have a window created with CreateWindowEx, with a caption. When I load the text using EM_STREAMIN the opening line of the text goes into the caption, replacing the intended title. How do I prevent this, so as to retain the intended caption ?

        enhzflepE Offline
        enhzflepE Offline
        enhzflep
        wrote on last edited by
        #3

        What exactly do you mean by "with a caption". RichEdits are the same as a 'standard' edit, in that they don't have a caption. They simply contain text that may be edited by the user. In the case o a RichEdit, formatting and OLE objects are supported too. But captions? Nah, not according to any of the dozens of documents I've ever read on the matter. I've added captions to them, but that's through additional code - not through any inherent functionality of their own. Any caption that you have is a result of code that you have that we can't see. If you'd like a solution to your problem, you'll have to show us how you got into the predicament in the first place. Or as Richard said, you'll need to show code to get an answer.

        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