Re: How do I display GIF file in a windows dialog?

From: Russ Freeman (r_at_fatbird.com)
Date: 05/01/04


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


Relevant Pages

  • Re: HTML safe colors
    ... will be mapped to the nearest supported color. ... combinations of browser/display adapter tried to display the colour by ... 256 colour palette and if there are more than one of them on a page then the ... The first gif would display correctly as each of its colours (well most of ...
    (comp.infosystems.www.authoring.html)
  • Re: Binary I/O in Javascript
    ... >>> producing a GIF file through an OBJECT element. ... an ActiveX display or plotting object. ... I did an ActiveX signature control that is used for both ...
    (comp.lang.javascript)
  • Re: Nominating a web page to display GIFs
    ... That blank page is not a real page, it's just the browser displaying your ... I want it to display in the blank web page of my ... | can somehow ceate a hyperlink string for each icon that marries the blank ...
    (microsoft.public.frontpage.programming)
  • Re: OT-Slightly CAD and html
    ... Cad image and then rotate it. ... He is saying use an "animated GIF". ... would have no control over what 3D views they wanted to display. ... A reasonable image in a raster format would have been ...
    (rec.woodworking)
  • Re: Problem with Images in IE
    ... Let's talk about the second question first: ... and all you need to do is to clear your Temporary Internet Files ... truly - who find the animated gifs on web pages to be annoying. ... If you save an animated gif to your hard disk and then click on the ...
    (microsoft.public.windowsxp.newusers)

Quantcast