Solved

Transparent richedit Window

Posted on 1998-04-09
1
534 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
cat dog challenge 18 126
sum13 challenge 24 120
Annoying "thing" blocks my view 4 114
Detect file exist or not 3 178
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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. …
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

808 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