Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionupdating the layered window Pin
theCPkid11-Sep-09 21:27
theCPkid11-Sep-09 21:27 
QuestionResource Pin
kk.tvm11-Sep-09 18:50
kk.tvm11-Sep-09 18:50 
AnswerRe: Resource Pin
Shivanand Gupta11-Sep-09 20:02
Shivanand Gupta11-Sep-09 20:02 
AnswerRe: Resource Pin
«_Superman_»11-Sep-09 20:06
professional«_Superman_»11-Sep-09 20:06 
QuestionUndelete a File in NTFS Pin
venkatglasses11-Sep-09 18:12
venkatglasses11-Sep-09 18:12 
AnswerRe: Undelete a File in NTFS Pin
Richard Andrew x6411-Sep-09 18:31
professionalRichard Andrew x6411-Sep-09 18:31 
AnswerRe: Undelete a File in NTFS Pin
«_Superman_»11-Sep-09 20:08
professional«_Superman_»11-Sep-09 20:08 
QuestionHow to decide if GPRS service is down in a C++ application (UDP socket) Pin
nahitan11-Sep-09 16:09
nahitan11-Sep-09 16:09 
QuestionRe: How to decide if GPRS service is down in a C++ application (UDP socket) Pin
Moak12-Sep-09 3:54
Moak12-Sep-09 3:54 
AnswerRe: How to decide if GPRS service is down in a C++ application (UDP socket) Pin
nahitan12-Sep-09 18:16
nahitan12-Sep-09 18:16 
GeneralRe: How to decide if GPRS service is down in a C++ application (UDP socket) Pin
Moak12-Sep-09 22:28
Moak12-Sep-09 22:28 
QuestionProblem with Tooltips for CTabCtrl [modified] Pin
Bob Blean11-Sep-09 14:43
Bob Blean11-Sep-09 14:43 
QuestionHow to use a list ctrl to select an item Pin
Chiman111-Sep-09 10:19
Chiman111-Sep-09 10:19 
AnswerRe: How to use a list ctrl to select an item Pin
David Crow11-Sep-09 14:25
David Crow11-Sep-09 14:25 
AnswerRe: How to use a list ctrl to select an item Pin
«_Superman_»11-Sep-09 20:22
professional«_Superman_»11-Sep-09 20:22 
QuestionTransparent Bitmaps Pin
kylur11-Sep-09 8:48
kylur11-Sep-09 8:48 
I'm developing an application that allows the user to create a bitmap from portions of "n" other source bitmaps. For example, starting with three bitmaps (A, B, and C), the user could select the top third of A, the middle third of B and the bottom third of C and create destination bitmap D.

What I'd like to do is create a window that shows one of bitmap A, B, C.... (and has a dialog bar allowing selection of which one). A, B, and C are fully formed, that is, all pixels are defined. Bitmap D is undefined, that is, all pixels are (by default) white. I'd like to display D as a translucent bitmap on top of the selected source bitmap. It the user left-click+moves the mouse over the pair of bitmaps the pixels on A are copied up into D.

Once all desired pixels of A are copied upto D, the user would change A to B, D would now be displayed on top of B and the user could copied pixels from B upto D. And so on for all source bitmaps.

The undefined parts of D (ie the white pixels) I'd like to show as a "gray film", and the cursor would then be an "eraser" ie remove the "film" and allows the underlying bitmap to shine through.

In theory this is all fairly easy. BUT, I'm stymied on the simple part of how do I create and display the translucent bitmap D?

Attempts so far are:
1. create aDC_ with aBitmap_
2. create dDC_ with dBitmap_
3. create memDC_ with memBitmap_
4. memDC_->BitBlt(..., aDC_..., SRCCOPY)
5. memDC_->BitBlt(..., dDC_, ..., ?) <=== this is the translucent bitmap
6. pDC->BitBlt(..., memDC_..., SRCCOPY);

The question is how do a setup the DC_'s to get the translucency to work?

Any help is much appreciated!
Regards,
Kylur.
AnswerRe: Transparent Bitmaps Pin
Chris Losinger11-Sep-09 9:03
professionalChris Losinger11-Sep-09 9:03 
GeneralRe: Transparent Bitmaps Pin
kilt14-Sep-09 2:19
kilt14-Sep-09 2:19 
GeneralRe: Transparent Bitmaps Pin
kylur14-Sep-09 2:36
kylur14-Sep-09 2:36 
GeneralRe: Transparent Bitmaps Pin
Chris Losinger14-Sep-09 4:05
professionalChris Losinger14-Sep-09 4:05 
QuestionI need a library file or some program which is similar to bigint() class library in the C++. Pin
nowrocktheworld11-Sep-09 8:32
nowrocktheworld11-Sep-09 8:32 
AnswerRe: I need a library file or some program which is similar to bigint() class library in the C++. Pin
Saurabh.Garg11-Sep-09 22:03
Saurabh.Garg11-Sep-09 22:03 
Question[C++ Error] exception(15): E2141 Declaration syntax error Pin
gordon305611-Sep-09 6:25
gordon305611-Sep-09 6:25 
AnswerRe: [C++ Error] exception(15): E2141 Declaration syntax error Pin
UKM_Student11-Sep-09 6:29
UKM_Student11-Sep-09 6:29 
GeneralRe: [C++ Error] exception(15): E2141 Declaration syntax error Pin
gordon305611-Sep-09 7:52
gordon305611-Sep-09 7:52 

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.