How can I stop a window with the WM_CAPTION style from being moved? I tried intercepting WM_MOVING and adjusting the rect and then returned true but to no avail.
How can I stop a window with the WM_CAPTION style from being moved? I tried intercepting WM_MOVING and adjusting the rect and then returned true but to no avail.
That is how you do it, so you must be doing something wrong. Since I'm no mindreader, some code would be nice...
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Oops, I forgot I posted this.. Sorry.. I have fixed my problem. . . turns out my coordinates are some how wrong. I'm setting it using the coords I get from GetWindowRect but this seems to be wrong ... I thought it gave screen coords?