86 lines
2.6 KiB
C#
86 lines
2.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AudioWallpaper.Tools {
|
|
public static class WindowPositionConstants {
|
|
/// <summary>
|
|
/// 如果调用线程和拥有窗口的线程附加到不同的输入队列,则系统会将请求发布到拥有窗口的线程。
|
|
/// </summary>
|
|
public static readonly uint SWP_ASYNCWINDOWPOS = 0x4000;
|
|
|
|
/// <summary>
|
|
/// 阻止生成 WM_SYNCPAINT 消息。
|
|
/// </summary>
|
|
public static readonly uint SWP_DEFERERASE = 0x2000;
|
|
|
|
/// <summary>
|
|
/// 在窗口的类说明中围绕窗口绘制框架。
|
|
/// </summary>
|
|
public static readonly uint SWP_DRAWFRAME = 0x0020;
|
|
|
|
/// <summary>
|
|
/// 使用 SetWindowLong 函数应用新框架样式集,并向窗口发送 WM_NCCALCSIZE 消息。
|
|
/// </summary>
|
|
public static readonly uint SWP_FRAMECHANGED = 0x0020;
|
|
|
|
/// <summary>
|
|
/// 隐藏窗口。
|
|
/// </summary>
|
|
public static readonly uint SWP_HIDEWINDOW = 0x0080;
|
|
|
|
/// <summary>
|
|
/// 不激活窗口。
|
|
/// </summary>
|
|
public static readonly uint SWP_NOACTIVATE = 0x0010;
|
|
|
|
/// <summary>
|
|
/// 丢弃工作区的整个内容。
|
|
/// </summary>
|
|
public static readonly uint SWP_NOCOPYBITS = 0x0100;
|
|
|
|
/// <summary>
|
|
/// 保留当前位置 (忽略 X 和 Y 参数)。
|
|
/// </summary>
|
|
public static readonly uint SWP_NOMOVE = 0x0002;
|
|
|
|
/// <summary>
|
|
/// 不更改所有者窗口在 Z 顺序中的位置。
|
|
/// </summary>
|
|
public static readonly uint SWP_NOOWNERZORDER = 0x0200;
|
|
|
|
/// <summary>
|
|
/// 不重绘更改。
|
|
/// </summary>
|
|
public static readonly uint SWP_NOREDRAW = 0x0008;
|
|
|
|
/// <summary>
|
|
/// 与 SWP_NOOWNERZORDER 标志相同。
|
|
/// </summary>
|
|
public static readonly uint SWP_NOREPOSITION = 0x0200;
|
|
|
|
/// <summary>
|
|
/// 阻止窗口接收 WM_WINDOWPOSCHANGING 消息。
|
|
/// </summary>
|
|
public static readonly uint SWP_NOSENDCHANGING = 0x0400;
|
|
|
|
/// <summary>
|
|
/// 保留当前大小 (忽略 cx 和 cy 参数)。
|
|
/// </summary>
|
|
public static readonly uint SWP_NOSIZE = 0x0001;
|
|
|
|
/// <summary>
|
|
/// 保留当前 Z 顺序 (忽略 hWndInsertAfter 参数)。
|
|
/// </summary>
|
|
public static readonly uint SWP_NOZORDER = 0x0004;
|
|
|
|
/// <summary>
|
|
/// 显示窗口。
|
|
/// </summary>
|
|
public static readonly uint SWP_SHOWWINDOW = 0x0040;
|
|
}
|
|
|
|
}
|