CompuServe Thread

#load FLC problem

3 messages in this thread
#174122From: LAM Chi-fungJun 7, 1995 8:40 AM
Hello, I am now using MSVC 1.0 to play FLC in my Windows program (AAPLAY.DLL). I find that if I load a 2 frames animation (in my dialog box, animation is 180 x 180) and display the last frame on the screen (by SetParm, the screen has another 640 x 480 bmp, which has same color table with the animation), the program is o.k. If I load an animation has more than 2 frames, also same color table with the background bmp, the whole screen color change!!!! After detail research (codeview/debug etc) I find that if I load the 2 frame animation, the AAPLAY.DLL send WM_PAINT message first and then WM_PALETTECHANGED later, for the > 2 frames animation, the AAPLAY.DLL send WM_PALETTECHANGED first and WM_PAINT later, which cause a lot of trouble!!! Even the animation and the background use the same 256 color table, it cause a lot of trouble (the color palette is not Windows palette, but a custom one). Can anyone tell me why this happen and how to solve this ? Thanks. Regds LAM Chi-fung InterNet : cflam@hk.super.net
#174133From: Nik Grant [adesk]Jun 7, 1995 9:03 AM
Our expert Brian is a training this week, but if you can wait should be able to address your question when he gets back. If someone else can help in the meantime, please feel free to jump in!
#174188From: LAM Chi-fungJun 7, 1995 1:26 PM
Hello Nik, I solve the problem myself :> The problem is due to the SetParm call. I set the current position to the last frame cause problem. Regds LAM Chi-fung