public class WindowsMessage { public const int WM_NULL = 0x0000; // public const int WM_CREATE = 0x0001; //应用程序创建一个窗口 public const int WM_DESTROY = 0x0002; //一个窗口被销毁 public const int WM_MOVE = 0x0003; //移动一个窗口 public const int WM_SIZE = 0x0005; //改变一…