Click here to Skip to main content
15,909,741 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Layered window ! Pin
Adno23-May-07 13:11
Adno23-May-07 13:11 
GeneralRe: Layered window ! Pin
Mark Salsbery23-May-07 13:18
Mark Salsbery23-May-07 13:18 
GeneralRe: Layered window ! Pin
Adno23-May-07 13:31
Adno23-May-07 13:31 
GeneralRe: Layered window ! Pin
Adno23-May-07 13:39
Adno23-May-07 13:39 
GeneralRe: Layered window ! Pin
Mark Salsbery23-May-07 14:04
Mark Salsbery23-May-07 14:04 
GeneralRe: Layered window ! Pin
Mark Salsbery23-May-07 14:03
Mark Salsbery23-May-07 14:03 
GeneralRe: Layered window ! Pin
Adno23-May-07 14:29
Adno23-May-07 14:29 
GeneralRe: Layered window ! Pin
Mark Salsbery23-May-07 15:04
Mark Salsbery23-May-07 15:04 
Have you tried using CImage or the GdiPlus::Bitmap class to load the png?

Then you should be able to use the associated HBITMAP, selected into the dcMem and use
UpdateLayeredWindow() like this:

blend.BlendOp = AC_SRC_OVER;
blend.BlendFlags = 0;
blend.SourceConstantAlpha = 255;
blend.AlphaFormat = AC_SRC_ALPHA;
UpdateLayeredWindow(hwnd, NULL, NULL, NULL, dcMem, NULL, 0, &blend, LWA_ALPHA);



"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: Layered window ! Pin
Mark Salsbery23-May-07 12:44
Mark Salsbery23-May-07 12:44 
GeneralRe: Layered window ! Pin
Adno23-May-07 12:48
Adno23-May-07 12:48 
QuestionAbout ActiveDirectory and SIDs ? Pin
Akin Ocal23-May-07 9:54
Akin Ocal23-May-07 9:54 
Questioncalling com dll from C++ Pin
pnpfriend23-May-07 9:39
pnpfriend23-May-07 9:39 
AnswerRe: calling com dll from C++ Pin
led mike23-May-07 10:23
led mike23-May-07 10:23 
GeneralRe: calling com dll from C++ Pin
pnpfriend24-May-07 6:51
pnpfriend24-May-07 6:51 
GeneralRe: calling com dll from C++ Pin
led mike24-May-07 6:59
led mike24-May-07 6:59 
GeneralRe: calling com dll from C++ Pin
pnpfriend24-May-07 11:17
pnpfriend24-May-07 11:17 
GeneralRe: calling com dll from C++ Pin
led mike25-May-07 5:00
led mike25-May-07 5:00 
GeneralRe: calling com dll from C++ Pin
pnpfriend31-May-07 4:09
pnpfriend31-May-07 4:09 
QuestionsplitterWnd in SDI MFC Pin
gurucplusplus23-May-07 9:18
gurucplusplus23-May-07 9:18 
AnswerRe: splitterWnd in SDI MFC Pin
Nelek23-May-07 19:58
protectorNelek23-May-07 19:58 
GeneralRe: splitterWnd in SDI MFC Pin
gurucplusplus24-May-07 5:44
gurucplusplus24-May-07 5:44 
AnswerRe: splitterWnd in SDI MFC Pin
jhwurmbach23-May-07 22:35
jhwurmbach23-May-07 22:35 
GeneralRe: splitterWnd in SDI MFC Pin
gurucplusplus24-May-07 5:47
gurucplusplus24-May-07 5:47 
GeneralRe: splitterWnd in SDI MFC Pin
jhwurmbach25-May-07 1:10
jhwurmbach25-May-07 1:10 
QuestionMove some functions to a new cpp file [modified] Pin
Johpoke23-May-07 9:13
Johpoke23-May-07 9:13 

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.