Desktop Functions: Smart Device Functions:
|
ClientRectangle (user32)
C# Signature:
[DllImport("user32.dll", SetLastError=true)] 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:Sample Code: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; } 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); Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|