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

C / C++ / MFC

 
QuestionVC++ Doubt Pin
sachinjoseph21-Apr-08 19:00
sachinjoseph21-Apr-08 19:00 
GeneralRe: VC++ Doubt Pin
Hamid_RT21-Apr-08 19:44
Hamid_RT21-Apr-08 19:44 
GeneralSimple Way of Display Images Needed Using Win32 Pin
bobber20521-Apr-08 18:32
bobber20521-Apr-08 18:32 
GeneralRe: Simple Way of Display Images Needed Using Win32 Pin
_AnsHUMAN_ 21-Apr-08 18:41
_AnsHUMAN_ 21-Apr-08 18:41 
GeneralRe: Simple Way of Display Images Needed Using Win32 [modified] Pin
bobber20521-Apr-08 19:02
bobber20521-Apr-08 19:02 
GeneralRe: Simple Way of Display Images Needed Using Win32 Pin
Hamid_RT21-Apr-08 19:45
Hamid_RT21-Apr-08 19:45 
GeneralRe: Simple Way of Display Images Needed Using Win32 Pin
Rajkumar R21-Apr-08 19:59
Rajkumar R21-Apr-08 19:59 
GeneralRe: Simple Way of Display Images Needed Using Win32 Pin
Mark Salsbery21-Apr-08 21:43
Mark Salsbery21-Apr-08 21:43 
GDI+ will do it in 3 lines, excluding the code needed for
initialization, which only needs to be executed once per
process.

Something like this (shows example initialization code):
#include <gdiplus.h>
...

ULONG dwToken;
Gdiplus::GdiplusStartupInput input;
Gdiplus::GdiplusStartupOutput output;
Gdiplus::Status status = Gdiplus::GdiplusStartup(&dwToken, &input, &output);
if(status == Gdiplus::Ok)
{
    Gdiplus::Bitmap srcBitmap(L"c:\\some.jpg", FALSE);
    Gdiplus::Graphics wndGraphics(someHWND);
    wndGraphics.DrawImage(&srcBitmap, 0, 0);

    Gdiplus::GdiplusShutdown(dwToken);
}

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Simple Way of Display Images Needed Using Win32 [modified] Pin
bobber20522-Apr-08 14:44
bobber20522-Apr-08 14:44 
GeneralRe: Simple Way of Display Images Needed Using Win32 Pin
Mark Salsbery22-Apr-08 20:56
Mark Salsbery22-Apr-08 20:56 
Questionplease tell me Pin
liuyajuan21-Apr-08 16:27
liuyajuan21-Apr-08 16:27 
GeneralRe: please tell me Pin
_AnsHUMAN_ 21-Apr-08 18:04
_AnsHUMAN_ 21-Apr-08 18:04 
GeneralRe: please tell me Pin
Hamid_RT21-Apr-08 19:49
Hamid_RT21-Apr-08 19:49 
QuestionOnInitDialog not called on some PC Pin
Rongqi21-Apr-08 12:35
Rongqi21-Apr-08 12:35 
AnswerRe: OnInitDialog not called on some PC Pin
Shog921-Apr-08 13:08
sitebuilderShog921-Apr-08 13:08 
GeneralRe: OnInitDialog not called on some PC Pin
Rongqi21-Apr-08 13:19
Rongqi21-Apr-08 13:19 
GeneralRe: OnInitDialog not called on some PC Pin
Shog921-Apr-08 15:46
sitebuilderShog921-Apr-08 15:46 
GeneralRe: OnInitDialog not called on some PC Pin
Rongqi22-Apr-08 5:51
Rongqi22-Apr-08 5:51 
GeneralRe: OnInitDialog not called on some PC Pin
Shog922-Apr-08 7:16
sitebuilderShog922-Apr-08 7:16 
GeneralC++ program Pin
Oluwaseyi Bamigbade21-Apr-08 10:25
Oluwaseyi Bamigbade21-Apr-08 10:25 
GeneralRe: C++ program Pin
David Crow21-Apr-08 10:32
David Crow21-Apr-08 10:32 
QuestionRe: C++ program Pin
CPallini21-Apr-08 12:03
mveCPallini21-Apr-08 12:03 
GeneralRe: C++ program Pin
Hamid_RT21-Apr-08 19:59
Hamid_RT21-Apr-08 19:59 
GeneralRe: C++ program Pin
CPallini21-Apr-08 21:22
mveCPallini21-Apr-08 21:22 
GeneralRe: C++ program Pin
ThatsAlok30-Jun-09 23:33
ThatsAlok30-Jun-09 23:33 

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.