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 "GetWindowPlacement" in [All]

user32

.
Summary
.

/// Before calling GetWindowPlacement, set the length member to sizeof(WINDOWPLACEMENT). GetWindowPlacement fails if lpwndpl-> length is not set correctly.

.

internal static extern bool GetWindowPlacement(IntPtr hWnd, ref WINDOWPLACEMENT lpwndpl);

.

Private Shared Function GetWindowPlacement(ByVal hWnd As IntPtr, ByRef lpwndpl As WINDOWPLACEMENT) As Boolean

.

Public Declare Function GetWindowPlacement Lib "user32" _

.

    static extern bool GetWindowPlacement(IntPtr hWnd, ref WINDOWPLACEMENT lpwndpl);

.

       GetWindowPlacement(this.Handle, ref placement);

.

    Private Declare Function GetWindowPlacement Lib "user32" (ByVal hwnd As IntPtr, ByRef lpwndpl As WINDOWPLACEMENT) As Integer

.

        intRet = GetWindowPlacement(Me.Handle.ToInt32, wpTemp)

.
Documentation
[GetWindowPlacement] on MSDN
.
Summary
GetWindowPos is an old Win32 method, you should use GetWindowRect or GetWindowPlacement
.

Use GetWindowPlacement Win32 method for a more detailed set of info such as Z-Order.

Structures

.

     /// The length of the structure, in bytes. Before calling the GetWindowPlacement or SetWindowPlacement functions, set this member to sizeof(WINDOWPLACEMENT).

.

     /// GetWindowPlacement and SetWindowPlacement fail if this member is not set correctly.

.

Use with GetWindowPlacement and SetWindowPlacement


 
Access PInvoke.net directly from VS: