> From: Moore, Paul 
> The problem is that GetWindowRect() returns screen co-ordinates. The
> documentation for SetWindowPos says that it requires *client*
> coordinates. Now, it looks like it actually requires screen 
> coordinates for top-level windows (centring the main window
> on the screen works!), but client coordinates for child windows.
[...]
> Assuming I haven't missed something (has no-one been using Left/Top
> calls on client windows for anything?), I'll put together a patch and
> post it...

Patch as promised... (Apply over my previous patch, otherwise the line
numbers are probably wrong).

Paul.

PATCH1

Reply via email to