GetWindowInfo(...) has gone up insane!

Started by
10 comments, last by Reegan 15 years, 5 months ago
Quote:Original post by Reegan
rcClient.left is always 0 same goes for rcClient.top (or rather, it should always be 0)
Why? It doesn't say that anywhere in the documentation that I'm aware of. It's that reason that I always get the client area size by subtracting the left and top sides of the client area.

Just because GetClientRect() returns coordinates based at (0, 0) doesn't mean that all Win32 functions should.
Advertisement
hmmmm, you are right, to me that is really weird coming from using the GetClientRect() function.

and it doesnt say anywhere in the documentation (that i can see) that the rcClient.left / rcClient.top is measured from the edge of the screen coordinates up to the edges of the client area.

hmmm this is going to make for some pretty 'hefty' code lines >.<
sometimes i hate OOP..

Thanks, for the lesson on WINDOWINFO's rcClient

~Reegan

This topic is closed to new replies.

Advertisement