
Dragging Without a Title Bar?
Quote:
>I have a form with an Image control that takes up the forms entire space I
>would like to be able to drag the Image control and form simultaneously
>without using the (ugly) title bar. Is there anyway this could be done?
Hey, I've been outa touch with VB for a year (enjoying a life of Toolbook
programming only), but the technique I used to use, which was pretty neat, is
to use Message Blaster to intercept the WM_NCHITTEST (Non-client hit test)
message, which lets you tell Windows that the mouse is over the caption bar
even if its not, then if the user clicks and drags, the window gets moved like
if they clicked and dragged on the caption bar.
How to do this is demonstrated in "tbox100.zip" which I uploaded to
ftp.cica.indiana.edu some time last year. Check it out.
Tim.
---------------------------------------------------------------------------
Tim Barham
---------------------------------------------------------------------------