TileWindows (user32)
Last changed: -5.103.153.81

.
Summary

C# Signature:

The first version is for use if you want to pass null (IntPtr.Zero) to both lpRect and lpKids.

[DllImport("user32.dll")]
static extern int TileWindows(IntPtr hwndParent, int wHow, IntPtr lpRect, int cKids, IntPtr lpKids);

This one is for non-null lpKids, but null lpRect.

[DllImport("user32.dll")]
static extern int TileWindows(IntPtr hwndParent, int wHow, IntPtr lpRect, int cKids, [MarshalAs(UnmanagedType.LPArray)]IntPtr[] lpKids);

You would need a different version again to pass in a real RECT to lpRect, but I've not tried that one myself.

Here are the constants:

const int MDITILE_VERTICAL = 0;

const int MDITILE_HORIZONTAL = 1;

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation
TileWindows on MSDN