Click here to Skip to main content
15,669,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
CPallini21-Nov-22 4:59
mveCPallini21-Nov-22 4:59 
AnswerRe: MFC. How to display a bitmap or a .png file Pin
Graham Breach14-Nov-22 10:57
Graham Breach14-Nov-22 10:57 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O14-Nov-22 11:53
BigSteve-O14-Nov-22 11:53 
AnswerRe: MFC. How to display a bitmap or a .png file Pin
Richard MacCutchan14-Nov-22 21:44
mveRichard MacCutchan14-Nov-22 21:44 
AnswerRe: MFC. How to display a bitmap or a .png file Pin
charlieg15-Nov-22 0:23
charlieg15-Nov-22 0:23 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O15-Nov-22 13:15
BigSteve-O15-Nov-22 13:15 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
charlieg17-Nov-22 11:44
charlieg17-Nov-22 11:44 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
charlieg18-Nov-22 8:44
charlieg18-Nov-22 8:44 
Okay, you have an error in your code:

// Copy the bits from the memory DC into the current dc
pDC->BitBlt(20, 10, 436, 364, &MemDCLady, 0, 0, SRCCOPY);

is the culprit. Recall that you've set your coordinate system to low English which fixes the bassackwardness of drawing.
If you trace your board generation, you will see that your Y values go from 0 to negative values. Looking at the above line,
you are drawing off the top of your view window. Change the 364 to -364 and you'll see your image.

Of course, *I've* never done that Smile | :)
Charlie Gilley

“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

Has never been more appropriate.

GeneralRe: MFC. How to display a bitmap or a .png file Pin
charlieg18-Nov-22 9:38
charlieg18-Nov-22 9:38 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
Richard MacCutchan15-Nov-22 21:25
mveRichard MacCutchan15-Nov-22 21:25 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
charlieg16-Nov-22 5:17
charlieg16-Nov-22 5:17 
AnswerRe: MFC. How to display a bitmap or a .png file Pin
charlieg22-Nov-22 16:15
charlieg22-Nov-22 16:15 
QuestionDisplay balance Pin
Muhd Hakim9-Nov-22 5:40
Muhd Hakim9-Nov-22 5:40 
AnswerRe: Display balance Pin
jeron19-Nov-22 6:06
jeron19-Nov-22 6:06 
AnswerRe: Display balance Pin
Richard MacCutchan9-Nov-22 6:22
mveRichard MacCutchan9-Nov-22 6:22 
AnswerRe: Display balance Pin
Craig Robbins9-Nov-22 7:49
Craig Robbins9-Nov-22 7:49 
AnswerRe: Display balance Pin
Sam Hobbs9-Nov-22 11:25
Sam Hobbs9-Nov-22 11:25 
AnswerRe: Display balance Pin
Gerry Schmitz9-Nov-22 19:17
mveGerry Schmitz9-Nov-22 19:17 
AnswerRe: Display balance Pin
CPallini12-Nov-22 10:39
mveCPallini12-Nov-22 10:39 
QuestionMaking VC++ 6 DLL to work on VB6 App with no UNICODE issue Pin
whiteboat27-Oct-22 19:50
whiteboat27-Oct-22 19:50 
AnswerRe: Making VC++ 6 DLL to work on VB6 App with no UNICODE issue Pin
Victor Nijegorodov27-Oct-22 20:41
Victor Nijegorodov27-Oct-22 20:41 
GeneralRe: Making VC++ 6 DLL to work on VB6 App with no UNICODE issue Pin
whiteboat27-Oct-22 21:21
whiteboat27-Oct-22 21:21 
AnswerRe: Making VC++ 6 DLL to work on VB6 App with no UNICODE issue Pin
Jeremy Falcon15-Dec-22 11:53
professionalJeremy Falcon15-Dec-22 11:53 
QuestionProgram set Pin
debby forbes21-Oct-22 17:38
debby forbes21-Oct-22 17:38 
AnswerRe: Program set Pin
Richard MacCutchan21-Oct-22 21:39
mveRichard MacCutchan21-Oct-22 21:39 

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.