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 to set a bitmap as the background of ricdedit control?

how to set a bitmap as the background of ricdedit control?

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

    A part of my program use rich edit control,now I want to set a bitmap as the background of richedit control,how to implemente it? hiall

    A 1 Reply Last reply
    0
    • B boyboy

      A part of my program use rich edit control,now I want to set a bitmap as the background of richedit control,how to implemente it? hiall

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

      implement in rich edit control's perant message - WM_CTRLCOLOR... CWnd::OnCtrlColor this func returns HBRUSH parameturs ... One from parameters of OnCtrlColor is nCtrlColor when it is equal to COLOR_EDIT and COLOR_MSG you must creat your own brush (which must not be local varible) and in this new brush draw the image (CDC::bitblt(...)) ... in the end return this burash as a result from CWnd::OnCtrlColor. For value diffirent from COLOR_EDIT and COLOR_MSG return the result from OnCtrlColor from base class.

      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