• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

How to play an animated gif on a dialog?

I want to put an animated gif on a modal dialog. I'm using Vusial C++ 6.0, Windows 95/98/NT.
How can I do that?
0
daitt
Asked:
daitt
  • 2
1 Solution
 
ShaunWildeCommented:
use the MS web_browser control and then navigate to it - you can then put the .gif in your resources under the HTML section or you can keep it on the disk or even on the web
0
 
daittAuthor Commented:
I use Navigate method to open an HTM file on the file system. But I don't want to have extra file. How can I navigate to a resource item? How can I store the gif file under the HTML session?
0
 
ShaunWildeCommented:
okay add the gif to your .rc2 file - I do this because viewing gifs in VisualStudio when they are under the HTML section causes them to crash

YOUR.GIF             HTML    DISCARDABLE     "your.gif"

then you can navigate to it using

I am assuming you are using the CWebBrowser2 wrapper generated by MFC

pWebBrowser->Navigate("res://.\\yourapp.exe/your.gif");

0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now