Thread: Moving Form
View Single Post
Old Nov 14th, 2005, 3:15 PM   #6
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Quote:
Originally Posted by ivan
you must code it by yourself... nobody will do it for you.
What the heck has happened to this forum? I don't see him asking for you to code it anywhere... just for some help.

Paradox: you'll need to capture the WM_MOUSEDOWN, WM_MOUSEMOVE and WM_MOUSEUP events, and then find out how far the mouse moves by, well... I can't quite remember, but I'm pretty sure it was easy enough . Anyway, basically, what you do is set a flag to true in WM_MOUSEDOWN and false in WM_MOUSEUP, and then measure the distance travelled and use some weird function to move the window. I can't quite remember much beyond that, having abandoned Windows C++ programming in favour of C#, but Google should get you the rest of the way.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote