T
Terry Olsen
Here's another odd request. I want to embed the winamp window in my app. I
have a panel that I want Winamp to be locked to. Using a couple of API
calls, I can set the panel as the parent of the main Winamp window like so:
WinampHndl = FindWindowEx(Nothing, Nothing, "BaseWindow_RootWnd", "Player
Window")
x = SetParent(WinampHndl, Panel1.Handle)
I try using the MoveWindow call like this:
MoveWindow(WinampHndl, Panel1.Left, Panel1.Top, Panel1.Width, 275, True)
Or
MoveWindow(WinampHndl, 0, 0, Panel1.Width, 275, True)
It sets the width & height correctly, but doesn't move the window at all. It
remains at the lower-right corner of the panel. I can drag the winamp window
within the panel to the correct position, then when I move my main app
window around, Winamp stays in the correct place.
I'd like have it "docked" to "fill" the panel. Anyone got any advice?
have a panel that I want Winamp to be locked to. Using a couple of API
calls, I can set the panel as the parent of the main Winamp window like so:
WinampHndl = FindWindowEx(Nothing, Nothing, "BaseWindow_RootWnd", "Player
Window")
x = SetParent(WinampHndl, Panel1.Handle)
I try using the MoveWindow call like this:
MoveWindow(WinampHndl, Panel1.Left, Panel1.Top, Panel1.Width, 275, True)
Or
MoveWindow(WinampHndl, 0, 0, Panel1.Width, 275, True)
It sets the width & height correctly, but doesn't move the window at all. It
remains at the lower-right corner of the panel. I can drag the winamp window
within the panel to the correct position, then when I move my main app
window around, Winamp stays in the correct place.
I'd like have it "docked" to "fill" the panel. Anyone got any advice?