Displaying jpeg image in c++ through win32 API

How to dispay jpeg image in c++ through win32 API
I've been surfing and scouring on the internet but nothing shows me correct path to get started
I can display bitmap but i can't be able to display jpeg or png or whatever it is.

This is the code snippet

1
2
3
  hStatic = CreateWindowEx (WS_EX_STATICEDGE, "STATIC", NULL, WS_CHILD | WS_EX_TRANSPARENT | WS_VISIBLE | SS_BITMAP, 0, 0, 100, 50, hWnd, 0, NULL, NULL);
			HBITMAP hImage  = (HBITMAP)LoadImage(NULL, "D:\\logo.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
            SendMessage(hStatic, STM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hImage);


Any help would be very useful.
Thanks
Topic archived. No new replies allowed.