I have a Modeless dialog which is showing a animated progress bar by playing an avi file(soundless). Actually whenever i am exporting any file i have to display this progress bar as a part of modeless dialog. The problem which i am facing is, just after poping this dialog the avi file is not playing and when i am draging the dialog by a bit, it start playing.
I tried to get rid of this problem by moving dialog programatticly. I am doing all my programming in win32.
Here is the part of the code where i am creating the animation.
void DoAnimation(HWND hwndAnim, int nAction)
{
switch (nAction) {
case PLAYIT:
// Play the clip continuously starting with the
// first frame.
Animate_Play(hwndAnim, 0, -1, -1);
break;
case STOPIT:
Animate_Stop(hwndAnim);
break;
case CLOSEIT:
Animate_Close(hwndAnim);
break;
default:
break;
}
return;
}
I have attached the avi file. Quick responce are most welcome....
Last edited by dverma05; March 24th, 2010 at 08:42 AM.
Re: Animated Progress bar not Playing avi file....
I will explain further....
See I have an application where we are creating an Explorer Window and showing various folders like private, public, shared. Now each folder contains some files (pdf,jpg,tiff). I can perform cut, copy, delete and export operation on these files. While exporting these files we are displaying a progress bar untill its downloading that particular file to selected location. Since files can be large in size we need to display this progress bar with a message that download process is going on.
Now the real problem comes here....
just after starting this progress bar that avi file is not moving untill we drag that progress bar dialog by a bit....
I have some other controls on that dialog which is one "OK" (ID : IDC_OK)button, one "Cancel" (ID: IDC_CANCEL )button, one Progress bar control (ID: IDC_PROGRESS )and One Animation Bar Control(ID: IDC_PROGRESS_ANIMATE).
I am calling function StartProgress as follows:
CProgressDlg dlg(hWnd,szBuffer,bIsHess);
m_hWnd = CreateDialogParam(g_hInst,
MAKEINTRESOURCE(IDD_DLG_STATUS),
m_hWndParent, (DLGPROC)ProgressDialogProc, (LPARAM)this);
//g_hInst : Global instance variable
//IDD_DLG_STATUS : Progress dialog id where we have that animation control and other controls.
//m_hWndParent : handle to parent window
//ProgressDialogProc : Pointer to the dialog box procedure.
if (m_hWnd)
{
LOG(CFSLogger::eTRACE,
CFSString("Value returned by CreatedDialogParam() is TRUE"));
Re: Animated Progress bar not Playing avi file....
Its a running project all the codes has been already written. I have been asked for to fix this defect.
I am not much more familier with this project. Any way i have to resolve this issue...
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.