Click here to Skip to main content
15,797,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMFC. How to display a bitmap or a .png file Pin
BigSteve-O14-Nov-22 9:44
BigSteve-O14-Nov-22 9:44 
QuestionRe: MFC. How to display a bitmap or a .png file Pin
CPallini14-Nov-22 10:25
mveCPallini14-Nov-22 10:25 
AnswerRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O14-Nov-22 10:57
BigSteve-O14-Nov-22 10:57 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
Victor Nijegorodov14-Nov-22 11:52
Victor Nijegorodov14-Nov-22 11:52 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O14-Nov-22 12:29
BigSteve-O14-Nov-22 12:29 
QuestionRe: MFC. How to display a bitmap or a .png file Pin
CPallini15-Nov-22 2:58
mveCPallini15-Nov-22 2:58 
AnswerRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O16-Nov-22 14:45
BigSteve-O16-Nov-22 14:45 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
Victor Nijegorodov16-Nov-22 21:22
Victor Nijegorodov16-Nov-22 21: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 21:36
Victor Nijegorodov16-Nov-22 21:36 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
CPallini17-Nov-22 4:02
mveCPallini17-Nov-22 4:02 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O17-Nov-22 12:31
BigSteve-O17-Nov-22 12:31 
QuestionRe: MFC. How to display a bitmap or a .png file Pin
CPallini17-Nov-22 20:57
mveCPallini17-Nov-22 20:57 
AnswerRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O18-Nov-22 13:36
BigSteve-O18-Nov-22 13:36 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
Randor 19-Nov-22 10:55
professional Randor 19-Nov-22 10:55 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O19-Nov-22 12:41
BigSteve-O19-Nov-22 12:41 
QuestionRe: MFC. How to display a bitmap or a .png file Pin
Randor 19-Nov-22 14:39
professional Randor 19-Nov-22 14:39 
AnswerRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O20-Nov-22 8:21
BigSteve-O20-Nov-22 8:21 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
Victor Nijegorodov20-Nov-22 9:04
Victor Nijegorodov20-Nov-22 9:04 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
CPallini20-Nov-22 23:10
mveCPallini20-Nov-22 23:10 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O21-Nov-22 5:56
BigSteve-O21-Nov-22 5:56 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
CPallini21-Nov-22 5:59
mveCPallini21-Nov-22 5:59 
AnswerRe: MFC. How to display a bitmap or a .png file Pin
Graham Breach14-Nov-22 11:57
Graham Breach14-Nov-22 11:57 
GeneralRe: MFC. How to display a bitmap or a .png file Pin
BigSteve-O14-Nov-22 12:53
BigSteve-O14-Nov-22 12:53 
AnswerRe: MFC. How to display a bitmap or a .png file Pin
Richard MacCutchan14-Nov-22 22:44
mveRichard MacCutchan14-Nov-22 22:44 
AnswerRe: MFC. How to display a bitmap or a .png file Pin
charlieg15-Nov-22 1:23
charlieg15-Nov-22 1: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.