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

NCCALCSIZE_PARAMS (Structures)
 
.
Summary
The NCCALCSIZE_PARAMS structure contains information that an application can use while processing the WM_NCCALCSIZE message to calculate the size, position, and valid contents of the client area of a window.

C# Definition:

[StructLayout(LayoutKind.Sequential)]
struct NCCALCSIZE_PARAMS
{
   [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
   RECT[] rgrc;
   WINDOWPOS lppos;
}

VB Definition:

<StructLayout(LayoutKind.Sequential)>
Structure NCCALCSIZE_PARAMS
   <MarshalAs(UnmanagedType.ByValArray, SizeConst:=3)>
   Public rgrc As RECT()
   Public lppos As WINDOWPOS
End Structure

User-Defined Field Types:

None.

Notes:

rgrc

    Type: RECT[3]

    An array of rectangles. The meaning of the array of rectangles changes during the processing of the WM_NCCALCSIZE message.

    When the window procedure receives the WM_NCCALCSIZE message, the first rectangle contains the new coordinates of a window that has been moved or resized, that is, it is the proposed new window coordinates. The second contains the coordinates of the window before it was moved or resized. The third contains the coordinates of the window's client area before the window was moved or resized. If the window is a child window, the coordinates are relative to the client area of the parent window. If the window is a top-level window, the coordinates are relative to the screen origin.

    When the window procedure returns, the first rectangle contains the coordinates of the new client rectangle resulting from the move or resize. The second rectangle contains the valid destination rectangle, and the third rectangle contains the valid source rectangle. The last two rectangles are used in conjunction with the return value of the WM_NCCALCSIZE message to determine the area of the window to be preserved.

lppos

    Type: PWINDOWPOS

    A pointer to a WINDOWPOS structure that contains the size and position values specified in the operation that moved or resized the window.

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
Edit This Page
Find References
Show Printable Version
Revisions