Solved

background transparant

Posted on 2004-05-02
8
304 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
Comment Utility
0
 

Author Comment

by:lapijn
Comment Utility
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
Comment Utility
It may not be exact solution of your problem but you can get idea from it
0
 
LVL 7

Expert Comment

by:vijay_visana
Comment Utility
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 10

Expert Comment

by:dkloeck
Comment Utility
use SetBkMode(TRANSPARENT);
0
 

Author Comment

by:lapijn
Comment Utility
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
Comment Utility
0
 

Author Comment

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

772 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

15 Experts available now in Live!

Get 1:1 Help Now