Lloyd, Steve wrote:
From: Robert May [mailto:[EMAIL PROTECTED] Lloyd, Steve wrote:

Is there a way using Win32::GUI to create a dragable child window that

can be dragged and dropped onto another window like winspy does?

Steve

Are you referring to the 'Find' window from Windows Spy++?

If so, then that's not a draggable window at all: the application changes the cursor, and captures the mouse (see SetCapture()) so that it

gets mouse move events for the mouse outside it's window borders. It then hit-tests on each mouse move to find the handle to any window under

the mouse, gets the window co-ordinates (GetWindowRect() on the handle found), and then draws the rectangle around the window by drawing into the 'DISPLAY' DC (See CreateDC).

Of course, it may do it entirely differently, but that's how I would do
it.

> Thanks Rob,
> I will give it a try in Perl and Win32::GUI.
>
> Steve

That would be interesting code to share if you get it working :-)

Rob.

Reply via email to