Re: How do I display GIF file in a windows dialog?
From: Russ Freeman (r_at_fatbird.com)
Date: 05/01/04
- Next message: John Carson: "Re: Why is calling GetDC() illegal in a message handler?"
- Previous message: ytw: "CDC::DrawText() drawing problem"
- In reply to: Sam Morgan: "How do I display GIF file in a windows dialog?"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 1 May 2004 02:18:13 +0100
"Sam Morgan" <anonymous@discussions.microsoft.com> wrote in message
news:81606D0D-3BCC-4EB8-8898-172127B2C635@microsoft.com...
> Hi,
>
> I am new to the GUI design and need help with the following:
>
> I am using Visual Studio 7.0, and have a standard windows
> dialog created with the VS tools. I need to display a GIF picture
> on the dialog.
>
> Currently I am using the following code to load a BMP file into
> the static control (hwndSystemTestImage):
>
> HANDLE hPic = NULL;
>
> hPic = LoadImage(hInstance, MAKEINTRESOURCE (ID_GREEN_CHECK_PICTURE),
IMAGE_BITMAP, 0,0,LR_DEFAULTCOLOR | LR_SHARED);
>
> lRet = SendMessage(hwndSystemTestImage,(UINT)
STM_SETIMAGE,IMAGE_BITMAP,(LPARAM) hPic);
>
>
> However, the problem is that this only works for BMP images. I need to be
able to show GIF and animated GIFs on my dialog.
>
> Is there any way i can display GIFs?
You could use QHTM (link below) and use plain old HTML to display the GIF,
or PNG, or MNG animation...
-- russ. http://www.gipsysoft.com/articles/winspector/ - FREE Spy++ replacement. http://www.gipsysoft.com/qhtm/ - FREE HTML display in a small and light DLL http://www.gipsysoft.com/ZoomPlus/ - Programmers Zoom Utility on Steroids
- Next message: John Carson: "Re: Why is calling GetDC() illegal in a message handler?"
- Previous message: ytw: "CDC::DrawText() drawing problem"
- In reply to: Sam Morgan: "How do I display GIF file in a windows dialog?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|