|
板凳
楼主 |
发表于 2012-12-18 13:22:11
|
只看该作者
- //********************************************************************************************
- //键盘和鼠标 等 枚举
- #region
- internal enum HookType //枚举,钩子的类型
- {
- //MsgFilter = -1,
- //JournalRecord = 0,
- //JournalPlayback = 1,
- Keyboard = 2,
- GetMessage = 3,
- CallWndProc = 4,
- //CBT = 5,
- SysMsgFilter = 6,
- Mouse = 7,
- Hardware = 8,
- //Debug = 9,
- //Shell = 10,
- //ForegroundIdle = 11,
- CallWndProcRet = 12,
- KeyboardLL = 13,
- //MouseLL = 14,
- };
- public enum wMsG : int
- {
- WM_NULL = 0x0000,
- WM_CREATE = 0x0001,
- WM_DESTROY = 0x0002,
- WM_MOVE = 0x0003,
- WM_SIZE = 0x0005,
- WM_ACTIVATE = 0x0006,
- WA_INACTIVE = 0,
- WA_ACTIVE = 1,
- WA_CLICKACTIVE = 2,
- WM_SETFOCUS = 0x0007,
- WM_KILLFOCUS = 0x0008,
- WM_ENABLE = 0x000A,
- WM_SETREDRAW = 0x000B,
- WM_SETTEXT = 0x000C,
- WM_GETTEXT = 0x000D,
- WM_GETTEXTLENGTH = 0x000E,
- WM_PAINT = 0x000F,
- WM_CLOSE = 0x0010,
- WM_QUERYENDSESSION = 0x0011,
- WM_QUERYOPEN = 0x0013,
- WM_ENDSESSION = 0x0016,
- WM_QUIT = 0x0012,
- WM_ERASEBKGND = 0x0014,
- WM_SYSCOLORCHANGE = 0x0015,
- WM_SHOWWINDOW = 0x0018,
- WM_WININICHANGE = 0x001A,
- WM_DEVMODECHANGE = 0x001B,
- WM_ACTIVATEAPP = 0x001C,
- WM_FONTCHANGE = 0x001D,
- WM_TIMECHANGE = 0x001E,
- WM_CANCELMODE = 0x001F,
- WM_SETCURSOR = 0x0020,
- WM_MOUSEACTIVATE = 0x0021,
- WM_CHILDACTIVATE = 0x0022,
- WM_QUEUESYNC = 0x0023,
- WM_GETMINMAXINFO = 0x0024,
- WM_USER = 0x0400,
- WM_KEYFIRST = 0x0100,
- WM_KEYDOWN = 0x0100,
- WM_KEYUP = 0x0101,
- WM_CHAR = 0x0102,
- WM_DEADCHAR = 0x0103,
- WM_SYSKEYDOWN = 0x0104,
- WM_SYSKEYUP = 0x0105,
- WM_SYSCHAR = 0x0106,
- WM_SYSDEADCHAR = 0x0107,
- WM_MOUSEFIRST = 0x0200,
- WM_MOUSEMOVE = 0x0200,
- // 移动鼠标
- WM_LBUTTONDOWN = 0x0201,
- //按下鼠标左键
- WM_LBUTTONUP = 0x0202,
- //释放鼠标左键
- WM_LBUTTONDBLCLK = 0x0203,
- //双击鼠标左键
- WM_RBUTTONDOWN = 0x0204,
- //按下鼠标右键
- WM_RBUTTONUP = 0x0205,
- //释放鼠标右键
- WM_RBUTTONDBLCLK = 0x0206,
- //双击鼠标右键
- WM_MBUTTONDOWN = 0x0207,
- //按下鼠标中键
- WM_MBUTTONUP = 0x0208,
- //释放鼠标中键
- WM_MBUTTONDBLCLK = 0x0209,
- //双击鼠标中键
- WM_MOUSEWHEEL = 0x020A,
- }
复制代码 枚举
|
|