Solved

background transparant

Posted on 2004-05-02
8
348 Views
Last Modified: 2013-11-20
Hi,
I made a RichEdit text which counts down on a progress bar
(so: "layer 1" = progress bar and "layer 2"= RichEdit counter).

Now I want to make my RichEdit Background transparant.
I tried it under properties of my richedit control, but this does nothing....
Any ideas???
Thanks...
0
Comment
Question by:lapijn
[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
8 Comments
 

Author Comment

by:lapijn
ID: 10976240
Thanks, but for the first one you need the SDK, and the second is only for a groupbox.
0
 
LVL 7

Expert Comment

by:vijay_visana
ID: 10976293
It may not be exact solution of your problem but you can get idea from it
0
Industry Leaders: 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!

 
LVL 7

Expert Comment

by:vijay_visana
ID: 10976313
0
 
LVL 10

Expert Comment

by:dkloeck
ID: 10977262
use SetBkMode(TRANSPARENT);
0
 

Author Comment

by:lapijn
ID: 10978807
Hi, dkloeck,thanks for your help:
I tried this:
/////
HBRUSH CTransparentEdtDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{      HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
      CBrush m_brush;
      if(pWnd->GetDlgCtrlID()==IDC_RICHEDIT1)
      {      GetBrush();
            pDC->SetBkMode(TRANSPARENT);
            pDC->SetTextColor(RGB(255,0,155));
            pDC->SelectObject(&m_bredtBrush);
            //hbr=(HBRUSH)m_bredtBrush;
      }      
      return hbr;
}
///////
But this does nothing, when I build it after I putted the RichEdit above the progressbar...
0
 
LVL 2

Accepted Solution

by:
teuntje earned 125 total points
ID: 10989077
0
 

Author Comment

by:lapijn
ID: 10998427
didn't got it to work....
thanks anyway all for your help...
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

690 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