Click here to Skip to main content
15,892,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What happened here????? Wrong variable type??? Pin
Richard Cheng29-Jun-01 7:54
Richard Cheng29-Jun-01 7:54 
GeneralRe: What happened here????? Wrong variable type??? Pin
Richard Cheng29-Jun-01 7:58
Richard Cheng29-Jun-01 7:58 
GeneralRe: What happened here????? Wrong variable type??? Pin
Michael Dunn29-Jun-01 11:55
sitebuilderMichael Dunn29-Jun-01 11:55 
GeneralLoading a bitmap over a network Pin
Jack Mott29-Jun-01 7:12
Jack Mott29-Jun-01 7:12 
GeneralRe: Loading a bitmap over a network Pin
Drake Elsari29-Jun-01 7:20
Drake Elsari29-Jun-01 7:20 
GeneralRe: Loading a bitmap over a network Pin
Jack Mott29-Jun-01 7:35
Jack Mott29-Jun-01 7:35 
GeneralRe: Loading a bitmap over a network Pin
Drake Elsari30-Jun-01 14:52
Drake Elsari30-Jun-01 14:52 
GeneralPainting a bitmap over a CStatic Bitmap Pin
29-Jun-01 7:07
suss29-Jun-01 7:07 
I want to paint small icon part of a bitmap over a Cstatic background image. (and also over another static transparent text)

All is fine if I disable the CStatic bitmap my small icon bitmap
is drawed but when I enable the background my icon does not appear.

I think that it's drawed before the CStatic bitmap an thus erased ?

here is the code that draw the small bmp part: (code from
"Drawing Transparent Bitmap with ease with on the fly masks in MFC
By Raja Segar"


void CMydialogDlg::OnPaint()
{
////////////////////////////////////////////////////
//PAINT THE ICON
CPaintDC dc(this); // device context for painting
CDC dcMem; // memory device context
dcMem.CreateCompatibleDC(&dc);

// Select the bmp into the tmp memory DC
CBitmap* pOldBmp = (CBitmap*) dcMem.SelectObject(&m_bmpPLMain);
DrawTransparentBitmap( &dc, // The destination DC.
0, // Where to draw
0,
16, // Width & Height
16,
&dcMem, // the DC holding the bmp
0, // x & y pos in source bmp
0);
CDialog::OnPaint();
}

seem tricky uh ?

Thanks
GeneralRe: Painting a bitmap over a CStatic Bitmap Pin
29-Jun-01 12:20
suss29-Jun-01 12:20 
GeneralRe: Painting a bitmap over a CStatic Bitmap Pin
29-Jun-01 13:56
suss29-Jun-01 13:56 
GeneralArrays n'stuff Pin
John Uhlenbrock29-Jun-01 7:04
John Uhlenbrock29-Jun-01 7:04 
GeneralRe: Arrays n'stuff Pin
Michael Dunn29-Jun-01 7:36
sitebuilderMichael Dunn29-Jun-01 7:36 
GeneralRe: Arrays n'stuff Pin
John Uhlenbrock29-Jun-01 10:32
John Uhlenbrock29-Jun-01 10:32 
GeneralRe: Arrays n'stuff Pin
Ben Burnett29-Jun-01 11:34
Ben Burnett29-Jun-01 11:34 
QuestionHow do I get LOGFONT from an IFont without using CFont? Pin
Bart-Man29-Jun-01 6:18
Bart-Man29-Jun-01 6:18 
AnswerRe: How do I get LOGFONT from an IFont without using CFont? Pin
PJ Arends29-Jun-01 17:00
professionalPJ Arends29-Jun-01 17:00 
AnswerRe: How do I get LOGFONT from an IFont without using CFont? Pin
Ben Burnett29-Jun-01 17:01
Ben Burnett29-Jun-01 17:01 
GeneralGetPrivateProfileString() keeps failing Pin
David Osborn29-Jun-01 5:49
David Osborn29-Jun-01 5:49 
GeneralRe: GetPrivateProfileString() keeps failing Pin
#realJSOP1-Jul-01 3:17
mve#realJSOP1-Jul-01 3:17 
QuestionWhat control should I use??? Pin
Michael Martin29-Jun-01 5:39
professionalMichael Martin29-Jun-01 5:39 
GeneralGetting keyboard calls from external application windows Pin
David Higgins29-Jun-01 4:25
David Higgins29-Jun-01 4:25 
GeneralRe: Getting keyboard calls from external application windows Pin
29-Jun-01 4:46
suss29-Jun-01 4:46 
GeneralSplitter Windows Pin
Drake Elsari29-Jun-01 4:08
Drake Elsari29-Jun-01 4:08 
GeneralRe: Splitter Windows Pin
Drake Elsari29-Jun-01 15:53
Drake Elsari29-Jun-01 15:53 
GeneralRe: Splitter Windows Pin
Ben Burnett29-Jun-01 16:55
Ben Burnett29-Jun-01 16:55 

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.