Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Themed CAnimateCtrl Collapse All
Subject Author Date
Borremans Pierre Apr 28, 2010 - 1:02 AM

We use a CAnimateCtrl in a CExtResizableDialog. The CAnimateCtrl plays an avi. When we show the window we see the first image but the animation doesn’t start. How to play the animation and haw to have a themed canimatectrl ?

Technical Support May 6, 2010 - 1:36 PM

We are sorry for the delay with this reply. The solution we advised you in this forum threads worked on Windows 2000 and Windows XP and we used this approach in our project. But it looks like this solution is no longer working on Windows XP SP3, Windows Vista and Windows 7. This means we need to play an AVI file directly using appropriate AVI file processing APIs. The following article describes how to do this and provides sample project download:

Here is our Prof-UIS based remix of the sample project meant in the article above:

Technical Support Apr 28, 2010 - 10:25 AM

The following articles demonstrate how to use a custom background in the animation control.

This means you can create a bitmap based GDI brush. The bitmap should contain themed by the Prof-UIS background (g_PaintManager->PaintDockerBkgnd( true, aBitmapDC, pWndAnimateCtrl );).

Borremans Pierre Apr 29, 2010 - 2:18 AM

I try the two links but the background is grey ou black. In our application we use the CExtPaintManagerOffice2003 not a bitmap How to have a transparent background ?

Borremans Pierre Apr 28, 2010 - 8:12 AM

Or how to play a avi file in a cextresizabledialog ?