CompuServe Thread

#Palette handle

3 messages in this thread
#98896From: SteveApr 27, 1994 10:43 AM
Brian: Thank you very much for the advice on palettes. I am attempting to get the palette for a flic that is being loaded into the animation window. I am using the handle property of the tool and calling SendMessagebyNum(control.handle,VBM_GETPALETTE,0,0) to do this. Unfortunately, this is not working. Is there any workaround. Thanx for the time. Adlai
#98918From: Brian Rudolph [Adesk]Apr 27, 1994 2:54 PM
<< I am attempting to get the palette for a flic that is being loaded into the animation window.>> When you are asking for the handle of the window, are you asking for the window you created from your app.? Remember, the player window is really two windows. First there is the child window, the one you create from your application. Then there is a second borderless windows that is carefully laid on top of the child, only its not a child window, its a parent window of the AAPLAY.DLL. This is why sometime controls won't work, because it really isn't owned by the application that is using the DLL.
#98919From: Brian Rudolph [Adesk]Apr 27, 1994 3:05 PM
Here's more information on handles…. There are ways to get the window handle for the animation window. If you are using the DLL directly, there is a setting, AA_ANIMWND, that will return the handle to the animation window. You can get it using: (HWND)aaGetParm(hAnim, AA_ANIMWND); In VB, I think there is a read-only property, that returns the animation handle, and you can use that to the the window handle. There might even be a read-only property to return the animation window handle. Check the VBPLAY.VBX help file.