Click here to Skip to main content
16,005,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: HWND to CWnd* Pin
Anonymous18-Oct-02 13:33
Anonymous18-Oct-02 13:33 
GeneralRe: HWND to CWnd* Pin
Chris Losinger18-Oct-02 16:52
professionalChris Losinger18-Oct-02 16:52 
GeneralRe: HWND to CWnd* Pin
Scott H. Settlemier18-Oct-02 18:51
Scott H. Settlemier18-Oct-02 18:51 
General10x Pin
Anonymous19-Oct-02 4:15
Anonymous19-Oct-02 4:15 
GeneralRe: HWND to CWnd* Pin
Christian Graus18-Oct-02 17:28
protectorChristian Graus18-Oct-02 17:28 
GeneralRe: HWND to CWnd* Pin
Anonymous19-Oct-02 4:16
Anonymous19-Oct-02 4:16 
GeneralBitmap in CEdit Pin
SatyaKiran18-Oct-02 12:26
SatyaKiran18-Oct-02 12:26 
GeneralRe: Bitmap in CEdit Pin
Hans Ruck19-Oct-02 0:55
Hans Ruck19-Oct-02 0:55 
CRichEdit has a way to set its background as transparent, but i have never used it so can't tell how to do it. You could set the container's background and place the CRichEdit object over.

Otherwise, derive a class CNewEdit from CEdit and override as follows:
HBRUSH CNewEdit::CtlColor(CDC* pDC, UINT nCtlColor) // the reflected one!!!
{
  pDC->SetBkMode(TRANSPARENT);
  return (HBRUSH)GetStockObject(WHITE_BRUSH);
}

BOOL CNewEdit::OnEraseBkgnd(CDC* pDC) 
{
  pDC->BitBltStuff(); // draw the bitmap here...
  return 0;
}


rechi
Generaltimelife of dlls Pin
mariuszpopiolek18-Oct-02 11:49
mariuszpopiolek18-Oct-02 11:49 
GeneralRe: timelife of dlls Pin
TyMatthews18-Oct-02 13:17
TyMatthews18-Oct-02 13:17 
GeneralRe: timelife of dlls Pin
mariuszpopiolek18-Oct-02 22:14
mariuszpopiolek18-Oct-02 22:14 
GeneralRe: timelife of dlls Pin
TyMatthews21-Oct-02 5:00
TyMatthews21-Oct-02 5:00 
GeneralCallback continued Pin
S van Leent18-Oct-02 10:57
S van Leent18-Oct-02 10:57 
GeneralRe: Callback continued Pin
Daniel Lohmann19-Oct-02 1:49
Daniel Lohmann19-Oct-02 1:49 
GeneralAddNew crashing Pin
nss18-Oct-02 10:46
nss18-Oct-02 10:46 
GeneralRe: AddNew crashing Pin
nss18-Oct-02 10:55
nss18-Oct-02 10:55 
Generalswitching menus in a dialog Pin
Steve L.18-Oct-02 10:38
Steve L.18-Oct-02 10:38 
GeneralRe: switching menus in a dialog Pin
Michael Dunn18-Oct-02 15:53
sitebuilderMichael Dunn18-Oct-02 15:53 
GeneralMDI Task Pin
act_x18-Oct-02 10:20
act_x18-Oct-02 10:20 
GeneralRe: MDI Task Pin
KaЯl18-Oct-02 11:19
KaЯl18-Oct-02 11:19 
Generalcommand nmake Pin
pnpfriend18-Oct-02 10:03
pnpfriend18-Oct-02 10:03 
GeneralRe: command nmake Pin
Daniel Turini18-Oct-02 10:08
Daniel Turini18-Oct-02 10:08 
GeneralRe: command nmake Pin
pnpfriend18-Oct-02 10:25
pnpfriend18-Oct-02 10:25 
Generalcopying from list box to clipboard Pin
Shay Harel18-Oct-02 9:45
Shay Harel18-Oct-02 9:45 
GeneralRe: copying from list box to clipboard Pin
valikac18-Oct-02 10:12
valikac18-Oct-02 10:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.