This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Display an animated gif in a custom dialog
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 26, 2010
07:16 PM
Display an animated gif in a custom dialog
Hello there. At some point of my installation I am launching an application and I would like to show an animated gif to tell the user that the installation is doing something. I tried what was explained here:
http://community.flexerasoftware.com/showthread.php?s=&threadid=118813
but that does not seem to work for me. What kind of control could be the one identified by IDC_ANIMATE in the example given?
Thanks in advance.
jvleon
http://community.flexerasoftware.com/showthread.php?s=&threadid=118813
but that does not seem to work for me. What kind of control could be the one identified by IDC_ANIMATE in the example given?
Thanks in advance.
jvleon
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 03, 2010
06:25 AM
Animation Control is not present in InstallShiled products as it probably was present in Dev Studio so, the only way by me, is to create it with CreateWindowEx function.
Function prototype:
Creating dialog with full messages support:
Creating animation control inside the dialog's message loop:
And after that you should go on with the standard Win32 API code to fill the control and to make it work...
Function prototype:
prototype HWND User32.CreateWindowExA(long,pointer,pointer,long,int,int,int,int,HWND,pointer,pointer,pointer);
Creating dialog with full messages support:
nResult = DefineDialog ( szDialogName, 0, "", RES_DIALOG_ID, "", 0, HWND_INSTALL, DLG_MSG_ALL|DLG_CENTERED);
szClassName = "SysAnimate32";
szCtrlName = "";
Creating animation control inside the dialog's message loop:
case DLG_INIT:
hwndDlg= CmdGetHwndDlg (szDialogName);
hwnd = CreateWindowExA(0,&szClassName,&szCtrlName, WS_TABSTOP|WS_GROUP|WS_CHILD,170,50,200,80,hwndDlg,NULL,NULL,NULL);
ShowWindow(hwnd,SW_SHOW);
And after that you should go on with the standard Win32 API code to fill the control and to make it work...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 10, 2010
11:34 AM
Thank you so much for taking the time to respond. I thought nobody had read my message. It gives me a clue for where to look for.
Regards.
jvleon
Regards.
jvleon
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)