Difference between GetClientRect() & GetWindowRect()

Sir,
Please tell me the difference between GetClientRect() & GetWindowRect() function
The GetClientRect retrives the size of the client arrea, that does not include the border of the windows and the status bar and the bar above the window(with the minimize,close buttons) in reference to the WindowRect.
The GetWindowRect returns the size of the whole window, including the things mentioned above, in reference to the whole screen size.
Check
GetClientRect
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633503(v=vs.85).aspx
GetWindowRect
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633519(v=vs.85).aspx

Sure think andywestken :)
Last edited on
@manjut19

This question has already been asked enough times: googling "GetClientRect GetWindowRect difference" or "GetClientRect versus GetWindowRect" gets this as the first hit:

What is the difference between GetClientRect and GetWindowRect in WinApi?
http://stackoverflow.com/questions/7561049/what-is-the-difference-between-getclientrect-and-getwindowrect-in-winapi

@nedo

Putting links inside [code][/code] tags makes them unnavigable :-(
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633503(v=vs.85).aspx

Whereas naked urls allow us to click on them to jump to the page you're referring to :-)
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633503(v=vs.85).aspx

Andy

PS Edit:
Edit: [output][/output] and [quote][/quote] are fine, if you "insist" on a colo(u)red background!
...
Last edited on
@andywestken i know that they are not clickable ... i guess it's a bad habbit from other forums that have an url tag :))
I will keep that in mind though :D
You could edit your post above so people who come across it in the future can follow your links? (swap to output or quote...)

Andy
Topic archived. No new replies allowed.