Click here to Skip to main content
15,917,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to clear view's content? Pin
Angel Kid6-May-02 9:03
Angel Kid6-May-02 9:03 
AnswerRe: how to clear view's content? Pin
Matt Gullett6-May-02 10:17
Matt Gullett6-May-02 10:17 
GeneralVC7 can't find source files Pin
Jim A. Johnson6-May-02 8:12
Jim A. Johnson6-May-02 8:12 
GeneralRe: VC7 can't find source files Pin
Tom Archer6-May-02 12:55
Tom Archer6-May-02 12:55 
GeneralDrawing transparent bitmap ... Pin
Hadi Rezaee6-May-02 8:05
Hadi Rezaee6-May-02 8:05 
GeneralRe: Drawing transparent bitmap ... Pin
Shog96-May-02 8:28
sitebuilderShog96-May-02 8:28 
GeneralRe: Drawing transparent bitmap ... Pin
Hadi Rezaee6-May-02 9:11
Hadi Rezaee6-May-02 9:11 
GeneralRe: Drawing transparent bitmap ... Pin
Paul M Watt6-May-02 8:29
mentorPaul M Watt6-May-02 8:29 
What do you mean you cannot see the transparent bitmap? Do you mean that you cannot see your bitmap at all, or the areas that should be transparent are not.

The LR_LOADTRANSPARENT flag only works with 8-bit images and will convert the first pixel found in the image to the default color for a window. So if you are not painting your bitmap to a window that has the background color set to the default color then this technique will not work.

What you may want to do is create a monochromatic bitmap match to your bitmap, that acts as a transparency mask, then you can use MaskBlt to paint the transparent portions of your bitmap.


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: Drawing transparent bitmap ... Pin
Hadi Rezaee6-May-02 9:17
Hadi Rezaee6-May-02 9:17 
GeneralException handling under XP Pin
Parish6-May-02 8:04
Parish6-May-02 8:04 
GeneralRe: Exception handling under XP Pin
Matt Gullett6-May-02 10:13
Matt Gullett6-May-02 10:13 
GeneralRe: Exception handling under XP Pin
Parish8-May-02 5:27
Parish8-May-02 5:27 
GeneralMultiple Dialogs Pin
tordyvel6-May-02 7:33
tordyvel6-May-02 7:33 
GeneralRe: Multiple Dialogs Pin
KingsGambit6-May-02 7:53
KingsGambit6-May-02 7:53 
GeneralRe: Multiple Dialogs Pin
Paul M Watt6-May-02 8:01
mentorPaul M Watt6-May-02 8:01 
GeneralRe: Multiple Dialogs Pin
Tom Archer6-May-02 12:40
Tom Archer6-May-02 12:40 
GeneralPresentation question Pin
HenrikO6-May-02 7:03
HenrikO6-May-02 7:03 
GeneralRe: Presentation question Pin
Rama Krishna Vavilala6-May-02 7:09
Rama Krishna Vavilala6-May-02 7:09 
GeneralUsing MFC on Windows XP Pin
6-May-02 6:55
suss6-May-02 6:55 
GeneralRe: Using MFC on Windows XP Pin
Andrew Peace6-May-02 11:09
Andrew Peace6-May-02 11:09 
GeneralRe: Using MFC on Windows XP Pin
7-May-02 4:22
suss7-May-02 4:22 
QuestionOpen a MSWord app into my window ? Pin
6-May-02 6:48
suss6-May-02 6:48 
AnswerRe: Open a MSWord app into my window ? Pin
6-May-02 6:49
suss6-May-02 6:49 
AnswerRe: Open a MSWord app into my window ? Pin
6-May-02 6:50
suss6-May-02 6:50 
AnswerRe: Open a MSWord app into my window ? Pin
KingsGambit6-May-02 8:01
KingsGambit6-May-02 8:01 

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.