Winamp Style Windows

asimsohailsaeed
10-16-2002, 12:28 AM
Im looking for some code that gives a form the ability to stick to on another like the winamp windows. And also dock to the screen edges. I found a thread in this forum but it was closed. Can anyone help me?

ChiefRedBull
10-16-2002, 04:02 AM
Window docking is not easy. You need to subclass the window
to retrieve various messages (WM_ENTERSIZEMOVE, WM_MOVING
and WM_EXITSIZEMOVE i think). These messages pass
RECT structures into your window procedure which you can
manipulate depending on the distance from any edge (screen
edge or another form edge).
Writing a full level docking system is often quite complex, but
I've got a demo in the works (don't hold your breath though.. ;))
I did find an example on www.freevbcode.com I think recently..

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum