ClientRectangle (user32)
Last changed: -63.86.124.4

.
Summary
TODO - a short description

C# Signature:

[DllImport("user32.dll", SetLastError=true)]
static extern TODO ClientRectangle(TODO);

VB Signature:

Declare Function ClientRectangle Lib "user32.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

C# Sample

[DllImport("user32.dll", SetLastError = true)]

[return: MarshalAs(UnmanagedType.Bool)]

static extern bool GetWindowRect(IntPtr hWnd, ref RECT lpRect);

[StructLayout(LayoutKind.Sequential)]

private struct RECT

{

    public int Left;
    public int Top;
    public int Right;
    public int Bottom;

}

RECT rct = new RECT();

GetWindowRect(hwnd, ref rct);

string sampleText = "Window Properties: " rct.Left "; Top: " rct.Top "; Right: " rct.Right "; Bottom: " rct.Bottom "; Width: " (rct.Right - rct.Left) "; Height: " + (rct.Bottom - rct.Top);

Documentation