Print Page | Close Window

CAnimateCtrl-avi color problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=15632
Printed Date: 27 February 2025 at 8:57am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CAnimateCtrl-avi color problem
Posted By: Kenneth
Subject: CAnimateCtrl-avi color problem
Date Posted: 15 November 2009 at 6:43pm
I have a .avi file that is loaded into a CAnimateCtrl and embedded into a Codejock command bar.  When displayed on systems with 32 bit color display selected, everything works ok.  However when the display is set to a 16 bit medium color display, the background of the avi display is white instead of its normal black background.  I tried using the same .avi file in the Codejock sample (CommonControls) and get the same result.
 
The strange thing is if I double click on the .avi file in the Microsoft explorer,  it is displayed by the QuickTime player correctly.  The QuickTime movie inspector option shows the .avi to be 25x25 with 256 colors.  Also, if I run this on a Windows Me system set to 16 bit color mode, it displays on that system ok.  I have included the .avi file below. 
 
Any ideas what could be causing this?
 
http://forum.codejock.com/uploads/20091115_183839_avi.zip - uploads/20091115_183839_avi.zip



Replies:
Posted By: Kenneth
Date Posted: 21 November 2009 at 2:01pm

Seems problems like this has been around for some time.  The solution was to override WM_CTLCOLOR and return the correct background color for the animation.  I got the clue in the following:

http://codeguru.earthweb.com/forum/showthread.php?t=358191 - http://codeguru.earthweb.com/forum/showthread.php?t=358191
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net