Click here to Skip to main content
15,915,804 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Saving File as JPEG - Encoding problems Pin
Luc Pattyn11-Oct-11 22:33
sitebuilderLuc Pattyn11-Oct-11 22:33 
GeneralRe: Saving File as JPEG - Encoding problems Pin
Naniw11-Oct-11 1:10
Naniw11-Oct-11 1:10 
AnswerRe: Saving File as JPEG - Encoding problems Pin
Chris Losinger11-Oct-11 3:35
professionalChris Losinger11-Oct-11 3:35 
QuestionRe: Saving File as JPEG - Encoding problems Pin
David Crow11-Oct-11 4:07
David Crow11-Oct-11 4:07 
QuestionSetting a bmp as a window background Pin
jkirkerx10-Oct-11 13:40
professionaljkirkerx10-Oct-11 13:40 
AnswerRe: Setting a bmp as a window background Pin
TheGreatAndPowerfulOz10-Oct-11 14:45
TheGreatAndPowerfulOz10-Oct-11 14:45 
GeneralRe: Setting a bmp as a window background Pin
jkirkerx10-Oct-11 16:01
professionaljkirkerx10-Oct-11 16:01 
GeneralRe: Setting a bmp as a window background Pin
jkirkerx10-Oct-11 16:14
professionaljkirkerx10-Oct-11 16:14 
OK, I get it,I mad the WM_ERASEBKGND return 1, doesn't seem to matter yet what I set it to, and fixed the code I posted. I messed it up from trial and error, and left off at error.

This is the correct code

C#
//////////////////////////////////////////////////////////////////////////////////////////
    //Setup the Windows Background First
    bmp_BGInstallation = LoadBitmap(hIIS_Instance, MAKEINTRESOURCE(IDB_BG_INSTALL_PANE_BMP));
    mem_DCInstallation = CreateCompatibleDC(hdc);

    SelectObject(mem_DCInstallation, bmp_BGInstallation);
    BitBlt(hdc, 0, 0, 504, 331, mem_DCInstallation, 0, 0, SRCCOPY);

    // Release the Bitmap Image
    DeleteDC(mem_DCInstallation);
    DeleteObject(bmp_BGInstallation);
    //////////////////////////////////////////////////////////////////////////////////////////


Thanks for pointing out the WM event, I remember reading it somewhere earlier, but forgot about it.

Say, 1 more question, if I create a larger bitmap of the same image, would windows automatically size it down, so I can resize the window larger, without losing image quality?
GeneralRe: Setting a bmp as a window background Pin
Richard MacCutchan10-Oct-11 22:15
mveRichard MacCutchan10-Oct-11 22:15 
GeneralRe: Setting a bmp as a window background Pin
jkirkerx11-Oct-11 7:01
professionaljkirkerx11-Oct-11 7:01 
GeneralRe: Setting a bmp as a window background Pin
Richard MacCutchan11-Oct-11 7:43
mveRichard MacCutchan11-Oct-11 7:43 
GeneralRe: Setting a bmp as a window background Pin
jkirkerx11-Oct-11 8:41
professionaljkirkerx11-Oct-11 8:41 
GeneralRe: Setting a bmp as a window background Pin
Richard MacCutchan11-Oct-11 10:56
mveRichard MacCutchan11-Oct-11 10:56 
GeneralRe: Setting a bmp as a window background Pin
CPallini10-Oct-11 22:28
mveCPallini10-Oct-11 22:28 
GeneralRe: Setting a bmp as a window background Pin
jkirkerx11-Oct-11 7:02
professionaljkirkerx11-Oct-11 7:02 
QuestionCDC::GetDeviceCaps, how to know if AlphaBlend is supported or not? Pin
Code-o-mat10-Oct-11 9:36
Code-o-mat10-Oct-11 9:36 
AnswerRe: CDC::GetDeviceCaps, how to know if AlphaBlend is supported or not? Pin
Richard MacCutchan10-Oct-11 10:26
mveRichard MacCutchan10-Oct-11 10:26 
GeneralRe: CDC::GetDeviceCaps, how to know if AlphaBlend is supported or not? Pin
Code-o-mat10-Oct-11 10:30
Code-o-mat10-Oct-11 10:30 
GeneralRe: CDC::GetDeviceCaps, how to know if AlphaBlend is supported or not? Pin
Richard MacCutchan10-Oct-11 10:34
mveRichard MacCutchan10-Oct-11 10:34 
GeneralRe: CDC::GetDeviceCaps, how to know if AlphaBlend is supported or not? Pin
Code-o-mat10-Oct-11 22:06
Code-o-mat10-Oct-11 22:06 
GeneralRe: CDC::GetDeviceCaps, how to know if AlphaBlend is supported or not? Pin
Code-o-mat10-Oct-11 23:15
Code-o-mat10-Oct-11 23:15 
AnswerRe: CDC::GetDeviceCaps, how to know if AlphaBlend is supported or not? Pin
Randor 10-Oct-11 12:26
professional Randor 10-Oct-11 12:26 
GeneralRe: CDC::GetDeviceCaps, how to know if AlphaBlend is supported or not? Pin
Code-o-mat10-Oct-11 22:03
Code-o-mat10-Oct-11 22:03 
GeneralRe: CDC::GetDeviceCaps, how to know if AlphaBlend is supported or not? Pin
Randor 11-Oct-11 17:01
professional Randor 11-Oct-11 17:01 
GeneralRe: CDC::GetDeviceCaps, how to know if AlphaBlend is supported or not? Pin
Code-o-mat10-Oct-11 23:09
Code-o-mat10-Oct-11 23:09 

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.