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. Paste Bitmap into CRichEditCtrl

Paste Bitmap into CRichEditCtrl

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

    I am searching for an easy way to paste a bitmap from the clipboard into a CRichEditCtrl. I have already found various articles in the internet which discuss many ways to insert a bitmap into the rtf control either from file or from resource. I have also taken a look at the MSDN Library sample "Wordpad", which I think works using OLE. But I think those solutions are all to complex for my application. I only need the option to paste a simple bitmap from clipboard into the control without functions to use OLE to maniplulate the bitmap or inster other OLE objects. So can anyone give me a hint/an easy way to paste a bitmap into a rtf control? Thanks in advance.

    D 1 Reply Last reply
    0
    • C CodeBrain

      I am searching for an easy way to paste a bitmap from the clipboard into a CRichEditCtrl. I have already found various articles in the internet which discuss many ways to insert a bitmap into the rtf control either from file or from resource. I have also taken a look at the MSDN Library sample "Wordpad", which I think works using OLE. But I think those solutions are all to complex for my application. I only need the option to paste a simple bitmap from clipboard into the control without functions to use OLE to maniplulate the bitmap or inster other OLE objects. So can anyone give me a hint/an easy way to paste a bitmap into a rtf control? Thanks in advance.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      CodeBrain wrote: I have already found various articles in the internet which discuss many ways to insert a bitmap into the rtf control either from file or from resource. ... So can anyone give me a hint/an easy way to paste a bitmap into a rtf control? So did the articles you found offer no hints?

      A 1 Reply Last reply
      0
      • D David Crow

        CodeBrain wrote: I have already found various articles in the internet which discuss many ways to insert a bitmap into the rtf control either from file or from resource. ... So can anyone give me a hint/an easy way to paste a bitmap into a rtf control? So did the articles you found offer no hints?

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Of course. But I am a little bit confused about the various approaches. I am not sure if I must use OLE or if there is an other way to do it since I need a small solution and not the ultra OLE solution with all possible OLE objects. The examples in the articles are very huge and full of OLE stuff. So I want to get some information and experience from the users here how they solved the problem and maybe which examples from the internet they used. And my goal is still a easy solution and not the all-in-one ultra code :)

        C 1 Reply Last reply
        0
        • A Anonymous

          Of course. But I am a little bit confused about the various approaches. I am not sure if I must use OLE or if there is an other way to do it since I need a small solution and not the ultra OLE solution with all possible OLE objects. The examples in the articles are very huge and full of OLE stuff. So I want to get some information and experience from the users here how they solved the problem and maybe which examples from the internet they used. And my goal is still a easy solution and not the all-in-one ultra code :)

          C Offline
          C Offline
          CodeBrain
          wrote on last edited by
          #4

          The post above is from me, just forgot to log in :zzz:

          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