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

Steve

-----Original Message-----
From: Robert May [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 10, 2005 4:34 PM
To: Lloyd, Steve
Cc: perl-win32-gui-users@lists.sourceforge.net
Subject: Draggable 'window' [Was: MDIFrame and background Image]


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.

Regards,
Rob.

This email, and any files previous email messages included with it, may contain 
confidential and/or privileged material. If you are not the intended recipient 
please contact the sender and delete all copies.



Reply via email to