Click here to Skip to main content
15,898,036 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to stop run of a program after a message display Pin
mrby12319-May-10 9:15
mrby12319-May-10 9:15 
AnswerRe: how to stop run of a program after a message display Pin
Aescleal19-May-10 12:53
Aescleal19-May-10 12:53 
AnswerRe: how to stop run of a program after a message display Pin
KarstenK19-May-10 21:10
mveKarstenK19-May-10 21:10 
QuestionNeed to change the main icon of an SDI app with the new ribbon interface (with a transparent icon) Pin
sashoalm19-May-10 3:45
sashoalm19-May-10 3:45 
AnswerRe: Need to change the main icon of an SDI app with the new ribbon interface (with a transparent icon) Pin
Code-o-mat19-May-10 3:51
Code-o-mat19-May-10 3:51 
GeneralRe: Need to change the main icon of an SDI app with the new ribbon interface (with a transparent icon) Pin
sashoalm19-May-10 4:03
sashoalm19-May-10 4:03 
GeneralRe: Need to change the main icon of an SDI app with the new ribbon interface (with a transparent icon) Pin
Code-o-mat19-May-10 4:05
Code-o-mat19-May-10 4:05 
GeneralRe: Need to change the main icon of an SDI app with the new ribbon interface (with a transparent icon) Pin
sashoalm19-May-10 4:28
sashoalm19-May-10 4:28 
Questionhow do I create a process dump file in WinXP and Win7? Pin
Dave Calkins19-May-10 3:28
Dave Calkins19-May-10 3:28 
AnswerRe: how do I create a process dump file in WinXP and Win7? Pin
Code-o-mat19-May-10 3:47
Code-o-mat19-May-10 3:47 
GeneralRe: how do I create a process dump file in WinXP and Win7? Pin
Dave Calkins19-May-10 4:38
Dave Calkins19-May-10 4:38 
QuestionWinInet Pin
Rajmohan SK19-May-10 1:30
Rajmohan SK19-May-10 1:30 
AnswerRe: WinInet Pin
«_Superman_»19-May-10 11:03
professional«_Superman_»19-May-10 11:03 
QuestionRe: WinInet Pin
Rajmohan SK19-May-10 18:29
Rajmohan SK19-May-10 18:29 
QuestionPNG Image Pin
AbhiHcl18-May-10 23:59
AbhiHcl18-May-10 23:59 
AnswerRe: PNG Image Pin
sashoalm19-May-10 0:31
sashoalm19-May-10 0:31 
AnswerRe: PNG Image Pin
EmoBemo19-May-10 3:26
EmoBemo19-May-10 3:26 
If you are using the MFC Feature Pack you can use the CPngImage class. You can simply Load PNG image from the resource and use it as CBitmap because CPngImage inherits it. Other way is to use the CImage class which is part of ATL but it can load PNG only from file. As far as I remember CImage::LoadFromResource can load only bitmaps. IMHO CPngImage is more convenient when you just need HBITMAP of the PNG and CImage is more convenient when you are going to blit it on some HDC. But if you need to load from resource CPngImage is your class.
Questionimage color depth Pin
john563218-May-10 23:21
john563218-May-10 23:21 
AnswerRe: image color depth Pin
Code-o-mat19-May-10 4:03
Code-o-mat19-May-10 4:03 
GeneralRe: image color depth Pin
john563219-May-10 4:18
john563219-May-10 4:18 
GeneralRe: image color depth Pin
Code-o-mat19-May-10 4:24
Code-o-mat19-May-10 4:24 
GeneralRe: image color depth Pin
john563219-May-10 19:59
john563219-May-10 19:59 
GeneralRe: image color depth Pin
Code-o-mat19-May-10 22:05
Code-o-mat19-May-10 22:05 
QuestionAVCODEC_OPEN and AVCODEC_ENCODE_VIDEO fails... Pin
gmallax18-May-10 22:28
gmallax18-May-10 22:28 
AnswerRe: AVCODEC_OPEN and AVCODEC_ENCODE_VIDEO fails... Pin
EmoBemo19-May-10 0:46
EmoBemo19-May-10 0:46 

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.