Solved

Transparent richedit Window

Posted on 1998-04-09
1
492 Views
Last Modified: 2013-11-20
I want to create a window which will be transparent so that whatever is at the background will remain.I am creating a richedit control in the foreground inside a view, I want the bitmap displayed in the view to remain as I output text in the richedit control. Please Help..
0
Comment
Question by:ANR
1 Comment
 
LVL 11

Accepted Solution

by:
mikeblas earned 0 total points
ID: 1317575
As is, you can't. MFC uses RichEdit 1.0, which doesn't pay attention to WS_EX_TRANSPARENT and paints its own background in response to WM_PAINT instead of using WM_ERASEBKGND.

If you want, you can force MFC to use RichEdit 2.0 or RichEdit 3.0. Then, the WS_EX_TRANSPARENT style will work--or, you can override WM_ERASEBKGND.

The SDK has tons of documentation on the updated rich edit control window classes.

.B ekiM


0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now