Solved

background transparant

Posted on 2004-05-02
8
334 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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: 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 …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

827 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