Want to move the window window, not as troublesome like it is imagined ^ _ ^,
Write the following code in the mousedown event of the control with the mousedown event:
Releasecapture;
SendMessage (handle, wm_nclbuttondown, htcaption, 0);
Everything is OK, now you can press the mouse to drag ,,,,
The above is the implementation method in Delphi, the other languages (because the API called).