?
Solved

background transparant

Posted on 2004-05-02
8
Medium Priority
?
351 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
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!

 
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 500 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

770 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