1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System;
- using System.Runtime.InteropServices;
- namespace Microsoft.Win32
- {
- /// <summary>
- /// 窗口位置结构定义
- /// </summary>
- public static partial class NativeMethods
- {
- /// <summary>
- /// 窗口位置结构
- /// </summary>
- [StructLayout(LayoutKind.Sequential)]
- public struct WINDOWPOS
- {
- /// <summary>
- /// A handle to the window.
- /// </summary>
- public IntPtr hwnd;
- /// <summary>
- /// The position of the window in Z order (front-to-back position). This member can be a handle to the window behind which this window is placed, or can be one of the special values listed with the SetWindowPos function.
- /// </summary>
- public IntPtr hwndInsertAfter;
- /// <summary>
- /// The position of the left edge of the window.
- /// </summary>
- public int x;
- /// <summary>
- /// The position of the top edge of the window.
- /// </summary>
- public int y;
- /// <summary>
- /// The window width, in pixels.
- /// </summary>
- public int cx;
- /// <summary>
- /// The window height, in pixels.
- /// </summary>
- public int cy;
- /// <summary>
- /// The window position. This member can be one or more of the following values. 参见 SWP
- /// </summary>
- public uint flags;
- }
- }
- }
|