I'm trying to get the hang of Win32 animation controls, which, as I understand, are used to display .avi files in a dialog box. I've used Resedit to create a dialog box and place an animation control in it, and my program runs fine, but now I don't know how to get the animation into the control.
So, Resedit has created a resource file which looks like this:
My question is - where do I define the name/path of the .avi file that I want to put in the control? Is it between the two quote marks at the beginning of the CONTROL?Code:#include <windows.h> #include <commctrl.h> #include <richedit.h> #include "resource.h" LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL IDD_MAIN DIALOG 0, 0, 394, 283 STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_CAPTION | WS_VISIBLE | WS_POPUP | WS_SYSMENU CAPTION "Dialog" FONT 8, "Ms Shell Dlg" BEGIN CONTROL "", IDD_ANIMATION, ANIMATE_CLASS, WS_BORDER, 10, 6, 373, 266 END
Thanks for your help!!