GetMainWindowPosition

Posted by Deqitosv on Thu 14 Jul 2005 03:54 PM — 3 posts, 14,168 views.

USA #0
I did a search for this already, and was hoping maybe someone else had found this problem and fixed it.

I'm attempting to get the window size for both the main window and the current world, easy enough with the provided functions.

However, I've noticed when I do a GetMainWindowPosition, it is exactly correct to the pixel... Until I maximize the window, then it is entirely wrong.

The same goes with GetWorldWindowPosition, as long as the world isn't maximized, the numbers are correct.

Is anyone else experiencing this, or am I just doing something wrong?

Thanks!
USA #1
Still unable to figure out why it keeps the window sizes of the restored window rather than the maximized one when I run these functions....
Australia Forum Administrator #2
These functions return the values that Windows supplies. I suspect that it remembers the "real" window position for when you unmaximize it, and that is the value that is returned by MUSHclient.