some doc on why not using GetClientRect for getting the position of the

client rect on the screen


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1382 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2012-08-06 03:10:33 +00:00
parent 19c5ab0140
commit c1492ab1ef

View File

@ -522,6 +522,8 @@ RECT fghGetClientArea( const SFG_Window *window, BOOL wantPosOutside )
/* /*
* call GetWindowRect() * call GetWindowRect()
* (this returns the pixel coordinates of the outside of the window) * (this returns the pixel coordinates of the outside of the window)
* cannot use GetClientRect as it seems to return a rect relative to
* the top-left point of the client area (.top and .left are thus always 0)
*/ */
GetWindowRect( window->Window.Handle, &windowRect ); GetWindowRect( window->Window.Handle, &windowRect );