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

C / C++ / MFC

 
AnswerRe: How to make excel addin in vc++ Pin
ThatsAlok2-Sep-05 20:55
ThatsAlok2-Sep-05 20:55 
QuestionVC++ Using Blowfish Compiler Error Pin
CooperWu2-Sep-05 16:04
CooperWu2-Sep-05 16:04 
GeneralRe: VC++ Using Blowfish Compiler Error Pin
sunit52-Sep-05 21:10
sunit52-Sep-05 21:10 
GeneralRe: VC++ Using Blowfish Compiler Error Pin
CooperWu3-Sep-05 2:49
CooperWu3-Sep-05 2:49 
AnswerRe: VC++ Using Blowfish Compiler Error Pin
CooperWu3-Sep-05 2:59
CooperWu3-Sep-05 2:59 
Questiona blowfish decrypt/encrypt related question Pin
Torune2-Sep-05 16:03
Torune2-Sep-05 16:03 
QuestionCreating a colored, transparent CStatic Pin
David Fleming2-Sep-05 14:00
David Fleming2-Sep-05 14:00 
AnswerRe: Creating a colored, transparent CStatic Pin
David Fleming2-Sep-05 22:59
David Fleming2-Sep-05 22:59 
OK, it looks like I solved my own problem. Just in case anyone else is interested, here's what I found:

CPaintDC dc(this); //get a DC for the control
//The next several lines create a compatible bitmap in memory
// and draw a solid light green "bitmap" on it,
// then select that bitmap into the DC in memory
pDCMem = new CDC;
pDCMem->CreateCompatibleDC(&dc);
bmp.CreateCompatibleBitmap(&dc,rc.Width(),rc.Height());
pOldBitmap = pDCMem->SelectObject(&bmp);
CBrush brush;
brush.CreateSolidBrush(RGB(122,255,122));
pDCMem->FillRect(rc, &brush);
//After drawing on the DC in memory (text and whatever else)
// use BitBlt to merge the bitmap in memory with what's on screen
dc.BitBlt(0,0,rc.Width(),rc.Height(),pDCMem,0,0,SRCAND);
//SRCAND combines the src and dest DCs using boolean AND
//Then clean up
pDCMem->SelectObject ( pOldBitmap ) ;
delete pDCMem;

And it works. Now the CStatic is light green, with text on it (which I did not include in the code snippet) and the bitmap "behind" it can be seen greenishly colored through it.
QuestionAbsent Thread Pin
Blake Miller2-Sep-05 10:53
Blake Miller2-Sep-05 10:53 
AnswerRe: Absent Thread Pin
Gary R. Wheeler3-Sep-05 2:36
Gary R. Wheeler3-Sep-05 2:36 
QuestionWhat do employers mean by .Net experience Pin
Brian R2-Sep-05 9:31
Brian R2-Sep-05 9:31 
AnswerRe: What do employers mean by .Net experience Pin
Chris Losinger2-Sep-05 10:43
professionalChris Losinger2-Sep-05 10:43 
QuestionThreading problem.. Pin
Laing,James2-Sep-05 8:42
Laing,James2-Sep-05 8:42 
AnswerRe: Threading problem.. Pin
Gary R. Wheeler3-Sep-05 2:43
Gary R. Wheeler3-Sep-05 2:43 
GeneralRe: Threading problem.. Pin
Laing,James3-Sep-05 7:27
Laing,James3-Sep-05 7:27 
Question:: operator Pin
celllllllll2-Sep-05 7:47
celllllllll2-Sep-05 7:47 
AnswerRe: :: operator Pin
PJ Arends2-Sep-05 8:26
professionalPJ Arends2-Sep-05 8:26 
GeneralRe: :: operator Pin
celllllllll2-Sep-05 8:50
celllllllll2-Sep-05 8:50 
GeneralRe: :: operator Pin
PJ Arends2-Sep-05 9:03
professionalPJ Arends2-Sep-05 9:03 
GeneralRe: :: operator Pin
celllllllll6-Sep-05 10:28
celllllllll6-Sep-05 10:28 
QuestionCPreviewView Class Pin
mikobi2-Sep-05 7:18
mikobi2-Sep-05 7:18 
AnswerRe: CPreviewView Class Pin
PJ Arends2-Sep-05 8:21
professionalPJ Arends2-Sep-05 8:21 
GeneralRe: CPreviewView Class Pin
mikobi2-Sep-05 20:29
mikobi2-Sep-05 20:29 
GeneralRe: CPreviewView Class Pin
mikobi2-Sep-05 20:43
mikobi2-Sep-05 20:43 
GeneralRe: CPreviewView Class Pin
PJ Arends3-Sep-05 8:57
professionalPJ Arends3-Sep-05 8:57 

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.