Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "GetWindowRect" in [All]

user32

.

    static extern bool GetWindowRect(System.IntPtr hWnd, out RECT lpRect);

.

        GetWindowRect(hWnd, out to);

.

    bool GetWindowRect(int hWnd, RECT^ lpRect);

.

        GetWindowRect(hWnd, to);

.
Summary
GetWindowPos is an old Win32 method, you should use GetWindowRect or GetWindowPlacement
.

Use GetWindowRect Win32 method for position information.

.
Summary
.

static extern bool GetWindowRect(IntPtr hwnd, out RECT lpRect);

.

Private Shared Function GetWindowRect(ByVal hWnd As HandleRef, ByRef lpRect As RECT) As Boolean

.

static extern bool GetWindowRect(HandleRef hWnd, out RECT lpRect);

.

     if(!GetWindowRect(new HandleRef(this, this.Handle), out rct ))

.
Documentation
[GetWindowRect] on MSDN
.

GetWindowRect(hWnd, out rct);

.

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

.

        GetWindowRect(id, ref Rect);

.

GetWindowRect(hWnd, out rct);

.

        var windowRec = GetWindowRect(windowHandler);


 
Access PInvoke.net directly from VS: