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

WINDOWPLACEMENT (Structures)
 
.
Summary
The WINDOWPLACEMENT structure contains information about the placement of a window on the screen.

C# Definition:

[StructLayout(LayoutKind.Sequential)]
public struct WINDOWPLACEMENT
{
     public int length;
     public int flags;
     public int showCmd;
     public POINT ptMinPosition;
     public POINT ptMaxPosition;
     public RECT rcNormalPosition;
     public static WINDOWPLACEMENT Default
     {
      get
      {
           WINDOWPLACEMENT result = new WINDOWPLACEMENT();
           result.length = Marshal.SizeOf( result );
           return result;
      }
     }    
}

VB Definition:

<StructLayout(LayoutKind.Sequential)> _
Public Structure WINDOWPLACEMENT
     Public length As Integer
     Public flags As Integer
     Public showCmd As Integer
     Public minPosition As POINT
     Public maxPosition As POINT
     Public normalPosition As RECT
End Structure

User-Defined Field Types:

POINT, RECT

Notes:

Use with GetWindowPlacement and SetWindowPlacement

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions