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. RichEditCtrl - pasted text not visible initially!?

RichEditCtrl - pasted text not visible initially!?

Scheduled Pinned Locked Moved C / C++ / MFC
questionworkspace
4 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.
  • S Offline
    S Offline
    Steve Roach
    wrote on last edited by
    #1

    I have a RichEditCtrl that "initially" does not diplay text that is pasted into it (using my_RichEditCtrl->Paste() or by Shift-Insert,Ctrl- V). The text "is" displayed if you then obscure the window and cause a redraw. What do I have to do to get the text to be made visible after the paste? Is it something to do with the configuration of the RE Ctrl, e.g in the Create call, or something I must do after the paste?. Thank-you Steve

    S 1 Reply Last reply
    0
    • S Steve Roach

      I have a RichEditCtrl that "initially" does not diplay text that is pasted into it (using my_RichEditCtrl->Paste() or by Shift-Insert,Ctrl- V). The text "is" displayed if you then obscure the window and cause a redraw. What do I have to do to get the text to be made visible after the paste? Is it something to do with the configuration of the RE Ctrl, e.g in the Create call, or something I must do after the paste?. Thank-you Steve

      S Offline
      S Offline
      Steve Roach
      wrote on last edited by
      #2

      I found that calling m_pMyRichEditCtrl->RedrawWindow(); does the trick but why? What's going on? Are there others ways? Steve ================== The original message was: I have a RichEditCtrl that "initially" does not diplay text that is pasted into it (using my_RichEditCtrl->Paste() or by Shift-Insert,Ctrl- V). The text "is" displayed if you then obscure the window and cause a redraw.

      What do I have to do to get the text to be made visible after the paste? Is it something to do with the configuration of the RE Ctrl, e.g in the Create call, or something I must do after the paste?.

      Thank-you

      Steve

      S 1 Reply Last reply
      0
      • S Steve Roach

        I found that calling m_pMyRichEditCtrl->RedrawWindow(); does the trick but why? What's going on? Are there others ways? Steve ================== The original message was: I have a RichEditCtrl that "initially" does not diplay text that is pasted into it (using my_RichEditCtrl->Paste() or by Shift-Insert,Ctrl- V). The text "is" displayed if you then obscure the window and cause a redraw.

        What do I have to do to get the text to be made visible after the paste? Is it something to do with the configuration of the RE Ctrl, e.g in the Create call, or something I must do after the paste?.

        Thank-you

        Steve

        S Offline
        S Offline
        Steve Roach
        wrote on last edited by
        #3

        I still have a problem.. The processing behind the "Paste" button in my application is simply: m_pMyRichEditCtrl->Paste(); m_pMyRichEditCtrl->RedrawWindow(); which solves the text not visible problem from the button but it does not solve the same problem when I paste using Ctrl-V. Any idea what else I need to do? Thanks Steve ================== The original message was: I found that calling
        m_pMyRichEditCtrl->RedrawWindow();
        does the trick but why? What's going on? Are there others ways?

        Steve

        ==================
        The original message was:

        I have a RichEditCtrl that "initially" does not diplay text that is pasted into it (using my_RichEditCtrl->Paste() or by Shift-Insert,Ctrl- V). The text "is" displayed if you then obscure the window and cause a redraw.

        What do I have to do to get the text to be made visible after the paste? Is it something to do with the configuration of the RE Ctrl, e.g in the Create call, or something I must do after the paste?.

        Thank-you

        Steve

        D 1 Reply Last reply
        0
        • S Steve Roach

          I still have a problem.. The processing behind the "Paste" button in my application is simply: m_pMyRichEditCtrl->Paste(); m_pMyRichEditCtrl->RedrawWindow(); which solves the text not visible problem from the button but it does not solve the same problem when I paste using Ctrl-V. Any idea what else I need to do? Thanks Steve ================== The original message was: I found that calling
          m_pMyRichEditCtrl->RedrawWindow();
          does the trick but why? What's going on? Are there others ways?

          Steve

          ==================
          The original message was:

          I have a RichEditCtrl that "initially" does not diplay text that is pasted into it (using my_RichEditCtrl->Paste() or by Shift-Insert,Ctrl- V). The text "is" displayed if you then obscure the window and cause a redraw.

          What do I have to do to get the text to be made visible after the paste? Is it something to do with the configuration of the RE Ctrl, e.g in the Create call, or something I must do after the paste?.

          Thank-you

          Steve

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

          Make sure you have handler for Ctrl+V and it pointed to your function that does Paste(); RedrawWindow(); ================== The original message was: I still have a problem..

          The processing behind the "Paste" button in my application is simply:
          m_pMyRichEditCtrl->Paste();
          m_pMyRichEditCtrl->RedrawWindow();

          which solves the text not visible problem from the button but it does not solve the same problem when I paste using Ctrl-V. Any idea what else I need to do?

          Thanks

          Steve

          ==================
          The original message was:

          I found that calling
          m_pMyRichEditCtrl->RedrawWindow();
          does the trick but why? What's going on? Are there others ways?

          Steve

          ==================
          The original message was:

          I have a RichEditCtrl that "initially" does not diplay text that is pasted into it (using my_RichEditCtrl->Paste() or by Shift-Insert,Ctrl- V). The text "is" displayed if you then obscure the window and cause a redraw.

          What do I have to do to get the text to be made visible after the paste? Is it something to do with the configuration of the RE Ctrl, e.g in the Create call, or something I must do after the paste?.

          Thank-you

          Steve

          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