Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>getclientrect()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetClientRect()
Return the client co-ordinates of a window
------------------------------------------------------------------------------

Syntax
GetClientRect( <hWnd> )   -->   aRect

Arguments
<hWnd> is the handle of the window whose co-ordinates are
wanted.

Returns
An array  { <nLeft>, <nTop>, <nRight>, <nBottom> } giving the
co-ordinates of the window's client area.  Note the order of
these co-ordinates may not be what you expect.

Description
This function returns the co-ordinates of a window's client
area (the area an application can write to), relative to the
window's upper-left corner.

The <nLeft> and <nTop> values are always zero (0).

Example
// Get the width of the window
aRect = GetClientRect( hWnd )
nWidth = aRect[3]


See Also: DrawText() InvalidateRect()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson