Solved

background transparant

Posted on 2004-05-02
8
316 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
8 Comments
 
LVL 7

Expert Comment

by:vijay_visana
ID: 10974869
0
 

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

Expert Comment

by:vijay_visana
ID: 10976313
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
not able to insert into temp table 68 157
lucky13 challenge 11 120
ShiftLeft challenge 21 76
abstract class with all non abstract mentods 6 76
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 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

18 Experts available now in Live!

Get 1:1 Help Now