CompuServe Thread

VBX window handles

2 messages in this thread
#117242From: SteveAug 9, 1994 11:47 AM
When using the animator VBX in VB, I am unsure which windows are created. Also, which windows are child and parent windows to both my VB app and the DLL. I am trying to draw on top of the window while a FLC is playing and to do this, I need the correct hWnd and hDC. The handle property from the VBX (control.handle) seems to be the handle from VB for the animation window. When using API functions such as TextOut(), no text was displayed. How can I get the right handle and hdc to draw on top of the .FLC? Adlaise Smith Micro Interactive 212/366-1391 76216,3341
#117505From: Brian Rudolph [Adesk]Aug 10, 1994 11:41 AM
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 it can't be controlled because it really isn't owned by the application that is using the DLL. 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. -Brian