Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MDITILE enum in Interop User32 #2839

Merged
merged 1 commit into from Feb 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -0,0 +1,20 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;

internal static partial class Interop
{
internal static partial class User32
{
[Flags]
public enum MDITILE : uint
gpetrou marked this conversation as resolved.
Show resolved Hide resolved
{
VERTICAL = 0x0000,
HORIZONTAL = 0x0001,
SKIPDISABLED = 0x0002,
ZORDER = 0x0004
}
}
}
Expand Up @@ -97,9 +97,6 @@ public static uint MAKELCID(uint lgid, uint sort)
public const int MEMBERID_NIL = (-1),
ERROR_INSUFFICIENT_BUFFER = 122, //https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx
MDIS_ALLCHILDSTYLES = 0x0001,
MDITILE_VERTICAL = 0x0000,
MDITILE_HORIZONTAL = 0x0001,
MDITILE_SKIPDISABLED = 0x0002,
MCN_VIEWCHANGE = (0 - 750), // MCN_SELECT -4 - give state of calendar view
MCN_SELCHANGE = ((0 - 750) + 1),
MCN_GETDAYSTATE = ((0 - 750) + 3),
Expand Down
Expand Up @@ -170,10 +170,10 @@ public void LayoutMdi(MdiLayout value)
User32.SendMessageW(this, User32.WM.MDICASCADE);
break;
case MdiLayout.TileVertical:
User32.SendMessageW(this, User32.WM.MDITILE, (IntPtr)NativeMethods.MDITILE_VERTICAL);
User32.SendMessageW(this, User32.WM.MDITILE, (IntPtr)User32.MDITILE.VERTICAL);
break;
case MdiLayout.TileHorizontal:
User32.SendMessageW(this, User32.WM.MDITILE, (IntPtr)NativeMethods.MDITILE_HORIZONTAL);
User32.SendMessageW(this, User32.WM.MDITILE, (IntPtr)User32.MDITILE.HORIZONTAL);
break;
case MdiLayout.ArrangeIcons:
User32.SendMessageW(this, User32.WM.MDIICONARRANGE);
Expand Down