Click to See Complete Forum and Search --> : Dragging a borderless Form....


Qwick1E
July 26th, 2005, 12:38 AM
I have my Form borders set to "none", because I am using a bitmap for my
background. How do I drag the Form so the user can move the Form?

SouthernCodeMonkey
July 26th, 2005, 01:12 AM
Check for WM_LBUTTONDOWN, then change the message and wparam to make windows believe that the user is clicking on the caption (even though you don't have one). Set the message to WM_NCLBUTTONDOWN and the wparam to HTCAPTION.

Regards.