Click here to Skip to main content
15,904,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
Victor Nijegorodov14-Nov-22 10:52
Victor Nijegorodov14-Nov-22 10:52 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O14-Nov-22 11:29
BigSteve-O14-Nov-22 11:29 
QuestionRe: MFC. How to display a bitmap or a .png file Pin
CPallini15-Nov-22 1:58
mveCPallini15-Nov-22 1:58 
AnswerRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O16-Nov-22 13:45
BigSteve-O16-Nov-22 13:45 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
Victor Nijegorodov16-Nov-22 20:22
Victor Nijegorodov16-Nov-22 20:22 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
Victor Nijegorodov16-Nov-22 20:36
Victor Nijegorodov16-Nov-22 20:36 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
CPallini17-Nov-22 3:02
mveCPallini17-Nov-22 3:02 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O17-Nov-22 11:31
BigSteve-O17-Nov-22 11:31 
QuestionRe: MFC. How to display a bitmap or a .png file Pin
CPallini17-Nov-22 19:57
mveCPallini17-Nov-22 19:57 
AnswerRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O18-Nov-22 12:36
BigSteve-O18-Nov-22 12:36 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
Randor 19-Nov-22 9:55
professional Randor 19-Nov-22 9:55 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O19-Nov-22 11:41
BigSteve-O19-Nov-22 11:41 
QuestionRe: MFC. How to display a bitmap or a .png file Pin
Randor 19-Nov-22 13:39
professional Randor 19-Nov-22 13:39 
AnswerRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O20-Nov-22 7:21
BigSteve-O20-Nov-22 7:21 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
Victor Nijegorodov20-Nov-22 8:04
Victor Nijegorodov20-Nov-22 8:04 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
CPallini20-Nov-22 22:10
mveCPallini20-Nov-22 22:10 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O21-Nov-22 4:56
BigSteve-O21-Nov-22 4:56 
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.

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.