Link to home
Start Free TrialLog in
Avatar of qcking
qcking

asked on

How to draw overlay bitmap on the RichEdit

I have a rich edit control with text on it. I would like to put a simple bitmap on the top of control so I can see both text and bitmap, I also be able to continue type chars in the RichEdit control as well.

How I can do that? Sample welcomes.
Avatar of basant
basant

I didn't understand your question.
Do u want to hide your control or what ?
if you want to hide you can use simple
ShowWindow( hWndControl, SW_HIDE) ;
Use ActiveX.
Avatar of qcking

ASKER

What kind ActiveX control you talking about?

Let me staight out the question again. If you run the Source Safe and use the file difference option, you will see two version of files display side by side and the differences of these two files are highlighted by color stripes. How we can draw different colors on the RichEdit control?

ASKER CERTIFIED SOLUTION
Avatar of PIG
PIG

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of qcking

ASKER

Pig, your suggestion may work but I did not try it. I like to state again I want to be able to set various background colors for my RichEdit. SetBkgColor() will apply one color for all control. What if I set red for first line, and set green for second line, etc?  
Foreground color is a character attribute, but background color is a property of the rich edit control. I think that for owner backgraound color for every line You must ownerdraw RichEdit control and set it owner color for each line.