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

C / C++ / MFC

 
Questionunwanted exit of program Pin
Member 439909416-Sep-07 0:20
Member 439909416-Sep-07 0:20 
Questionhow can I clear overlay after using transparentblt Pin
gurucplusplus15-Sep-07 19:17
gurucplusplus15-Sep-07 19:17 
AnswerRe: how can I clear overlay after using transparentblt Pin
Mark Salsbery16-Sep-07 8:12
Mark Salsbery16-Sep-07 8:12 
GeneralRe: how can I clear overlay after using transparentblt Pin
gurucplusplus16-Sep-07 17:31
gurucplusplus16-Sep-07 17:31 
GeneralRe: how can I clear overlay after using transparentblt Pin
Mark Salsbery17-Sep-07 6:47
Mark Salsbery17-Sep-07 6:47 
GeneralRe: how can I clear overlay after using transparentblt Pin
gurucplusplus17-Sep-07 15:44
gurucplusplus17-Sep-07 15:44 
GeneralRe: how can I clear overlay after using transparentblt Pin
Mark Salsbery17-Sep-07 17:58
Mark Salsbery17-Sep-07 17:58 
GeneralRe: how can I clear overlay after using transparentblt Pin
gurucplusplus17-Sep-07 19:27
gurucplusplus17-Sep-07 19:27 
paintMemory is a memory DC.
Let do an example. I implement the following:
painMemory.FillSolidRect(0,0,BitmapWidth,BitmapHeight(),RGB(255,0,0));
::TransparentBlt(pDC->GetSafeHdc(),m_upperLeftX, 0,BitmapWidth,0,BitmapHeight,
paintMemory.GetSafeHdc(),0,0,BitmapWidth,BitmapHeight,RGB(0,0,0));
// At this point I see the overlay image is red.
// Then next is try to clear this overlay painMemory from red to RGB(0,0,0)
painMemory.FillSolidRect(0,0,BitmapWidth,BitmapHeight(),RGB(0,0,0));
::TransparentBlt(pDC->GetSafeHdc(),m_upperLeftX, 0,BitmapWidth,0,BitmapHeight,
paintMemory.GetSafeHdc(),0,0,BitmapWidth,BitmapHeight,RGB(0,0,0));
// At this point I still see the overly image is red instead of black

I need solution for this ASAP. Thanks
GeneralRe: how can I clear overlay after using transparentblt Pin
Mark Salsbery17-Sep-07 20:17
Mark Salsbery17-Sep-07 20:17 
GeneralRe: how can I clear overlay after using transparentblt Pin
gurucplusplus18-Sep-07 17:55
gurucplusplus18-Sep-07 17:55 
GeneralRe: how can I clear overlay after using transparentblt Pin
Mark Salsbery19-Sep-07 4:54
Mark Salsbery19-Sep-07 4:54 
Questionhow to Convert unsigned char to UTF-8,Unicode? Pin
kcynic15-Sep-07 16:47
kcynic15-Sep-07 16:47 
AnswerRe: how to Convert unsigned char to UTF-8,Unicode? Pin
Nemanja Trifunovic16-Sep-07 1:27
Nemanja Trifunovic16-Sep-07 1:27 
GeneralRe: how to Convert unsigned char to UTF-8,Unicode? Pin
kcynic16-Sep-07 15:30
kcynic16-Sep-07 15:30 
QuestionFunny timing results in threading project Pin
Cyrilix15-Sep-07 10:27
Cyrilix15-Sep-07 10:27 
AnswerRe: Funny timing results in threading project Pin
carrivick15-Sep-07 20:51
carrivick15-Sep-07 20:51 
GeneralRe: Funny timing results in threading project Pin
Cyrilix16-Sep-07 7:07
Cyrilix16-Sep-07 7:07 
AnswerRe: Funny timing results in threading project Pin
Randor 16-Sep-07 6:07
professional Randor 16-Sep-07 6:07 
GeneralRe: Funny timing results in threading project Pin
Cyrilix16-Sep-07 7:05
Cyrilix16-Sep-07 7:05 
QuestionHow export functions from an exe file? Pin
Hongjun Ge15-Sep-07 7:18
Hongjun Ge15-Sep-07 7:18 
AnswerRe: How export functions from an exe file? Pin
Chris Losinger15-Sep-07 7:23
professionalChris Losinger15-Sep-07 7:23 
GeneralRe: How export functions from an exe file? Pin
Nemanja Trifunovic15-Sep-07 12:29
Nemanja Trifunovic15-Sep-07 12:29 
GeneralRe: How export functions from an exe file? Pin
Chris Losinger15-Sep-07 13:17
professionalChris Losinger15-Sep-07 13:17 
GeneralRe: How export functions from an exe file? Pin
Eytukan15-Sep-07 17:34
Eytukan15-Sep-07 17:34 
GeneralRe: How export functions from an exe file? Pin
Hongjun Ge16-Sep-07 2:24
Hongjun Ge16-Sep-07 2:24 

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.