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

C / C++ / MFC

 
GeneralRe: linking lib files in Visual C++.NET Pin
Anders Molin9-Feb-02 11:00
professionalAnders Molin9-Feb-02 11:00 
GeneralTransparent bitmap (win32) Pin
Brian van der Beek9-Feb-02 0:42
Brian van der Beek9-Feb-02 0:42 
GeneralRe: Transparent bitmap (win32) Pin
Christian Graus9-Feb-02 0:48
protectorChristian Graus9-Feb-02 0:48 
GeneralRe: Transparent bitmap (win32) Pin
Brian van der Beek9-Feb-02 8:46
Brian van der Beek9-Feb-02 8:46 
GeneralRe: Transparent bitmap (win32) Pin
Christian Graus9-Feb-02 8:57
protectorChristian Graus9-Feb-02 8:57 
GeneralRe: Transparent bitmap (win32) Pin
Brian van der Beek9-Feb-02 11:48
Brian van der Beek9-Feb-02 11:48 
GeneralRe: Transparent bitmap (win32) Pin
Christian Graus9-Feb-02 17:29
protectorChristian Graus9-Feb-02 17:29 
GeneralRe: Transparent bitmap (win32) Pin
Brian van der Beek10-Feb-02 1:33
Brian van der Beek10-Feb-02 1:33 
I figured that out. But what I cannot figure out is how to actually modify the image in my dialog box. I tried to figure out the code but I just do not understand how this HDC stuff works (I don't have a good book and msdn isn't really helpfull). I tried something like this (transparent color = white):

HBITMAP hbmImg = (HBITMAP)LoadImage(g_hinst, MAKEINTRESOURCE(IDB_LOGO), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR | LR_DEFAULTSIZE );
if( hbmImg )
{
BITMAP bmInfo;
memset( &bmInfo, 0, sizeof BITMAP );
GetObject(hbmImg, sizeof BITMAP, &bmInfo);

HDC hdc = CreateCompatibleDC(NULL);
SelectObject(hdc, hbmImg);

TransparentBltU(hdc, 0,0, bmInfo.bmWidth,
bmInfo.bmHeight,hdc,0,0, bmInfo.bmWidth,
bmInfo.bmHeight, RGB(255,255,255));

}
Generalif(localPath[i] == "\\") Pin
Rickard Andersson209-Feb-02 0:20
Rickard Andersson209-Feb-02 0:20 
GeneralRe: if(localPath[i] == "\\") Pin
Christian Graus9-Feb-02 0:26
protectorChristian Graus9-Feb-02 0:26 
GeneralRe: if(localPath[i] == "\\") Pin
Rickard Andersson209-Feb-02 1:17
Rickard Andersson209-Feb-02 1:17 
GeneralRe: if(localPath[i] == "\\") Pin
Christian Graus9-Feb-02 1:28
protectorChristian Graus9-Feb-02 1:28 
GeneralRe: if(localPath[i] == "\\") Pin
Rickard Andersson209-Feb-02 2:08
Rickard Andersson209-Feb-02 2:08 
GeneralRe: if(localPath[i] == "\\") Pin
Rickard Andersson209-Feb-02 2:15
Rickard Andersson209-Feb-02 2:15 
GeneralRe: if(localPath[i] == "\\") Pin
Christian Graus9-Feb-02 2:33
protectorChristian Graus9-Feb-02 2:33 
GeneralRe: if(localPath[i] == "\\") Pin
Christian Graus9-Feb-02 2:45
protectorChristian Graus9-Feb-02 2:45 
GeneralRe: if(localPath[i] == "\\") Pin
Ernest Laurentin9-Feb-02 3:59
Ernest Laurentin9-Feb-02 3:59 
GeneralRe: if(localPath[i] == "\\") Pin
moliate9-Feb-02 1:54
moliate9-Feb-02 1:54 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Rickard Andersson209-Feb-02 5:59
Rickard Andersson209-Feb-02 5:59 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Nish Nishant9-Feb-02 7:09
sitebuilderNish Nishant9-Feb-02 7:09 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Michael Dunn9-Feb-02 7:34
sitebuilderMichael Dunn9-Feb-02 7:34 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Nish Nishant9-Feb-02 7:41
sitebuilderNish Nishant9-Feb-02 7:41 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Michael Dunn9-Feb-02 7:53
sitebuilderMichael Dunn9-Feb-02 7:53 
GeneralRe: HEEEEEEEEEEELP!!!!!! Pin
Nish Nishant9-Feb-02 7:57
sitebuilderNish Nishant9-Feb-02 7:57 
GeneralQuertyPerformanceCounter Pin
alex.barylski8-Feb-02 23:21
alex.barylski8-Feb-02 23:21 

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.