CompuServe Messages

#load FLC problem

    07-Jun-95 08:40:10
Sb: #load FLC problem
Fm: LAM Chi-fung 100314,1035
To: All, Sysop (X)
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