Solved

Transparent richedit Window

Posted on 1998-04-09
1
544 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 98
VBA "SendKeys" Syntax for Multiple Keystrokes 7 126
matchUp  challenge 9 126
Thin secure Windows 10 5 108
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: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

696 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