Click here to Skip to main content
15,884,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMFC. How to display a bitmap or a .png file Pin
BigSteve-O14-Nov-22 8:44
BigSteve-O14-Nov-22 8:44 
QuestionRe: MFC. How to display a bitmap or a .png file Pin
CPallini14-Nov-22 9:25
mveCPallini14-Nov-22 9:25 
AnswerRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O14-Nov-22 9:57
BigSteve-O14-Nov-22 9:57 
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 
BigSteve-O wrote:
It looks like loadBitmap returns NULL. I have no idea as to why though.

According to Docs in CBitmap Class | Microsoft Learn :
Quote:
If the bitmap identified by lpszResourceName does not exist or if there is insufficient memory to load the bitmap, the function returns 0.

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 

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.