以前整理的Win32 API,可以直接在C#中直接调用,在做WinForm时还是很有帮助的。以前用在一个多窗口界面中,当轮询窗口时,调用API会提高很多效率。
源码下载 https://files.cnblogs.com/lordeo/win32api.rar
整理的Win32 API,可以直接在C#中直接调用,在做WinForm时还是很有帮助的。
源码包含三个文件
Win32API.cs,
- using System;
- using System.Drawing;
- using System.Runtime.InteropServices;
- using Lordal.Window.Form.Lib.General;
- using Lordal.Window.Form.Lib.Win32;
-
- namespace Lordeo.Framework
- {
-
-
-
- public class Win32API
- {
- #region .ctor()
-
- private Win32API()
- {
- }
- #endregion
-
- #region Constans values
- public const string TOOLBARCLASSNAME = "ToolbarWindow32";
- public const string REBARCLASSNAME = "ReBarWindow32";
- public const string PROGRESSBARCLASSNAME = "msctls_progress32";
- public const string SCROLLBAR = "SCROLLBAR";
- #endregion
-
- #region CallBacks
- public delegate IntPtr HookProc(int nCode, IntPtr wParam, IntPtr lParam);
- #endregion
-
- #region Kernel32.dll functions
- [DllImport("kernel32.dll", ExactSpelling=true, CharSet=CharSet.Auto)]
- public static extern int GetCurrentThreadId();
- #endregion
-
- #region Gdi32.dll functions
- [DllImport("gdi32.dll")]
- static public extern bool StretchBlt(IntPtr hDCDest, int XOriginDest, int YOriginDest, int WidthDest, int HeightDest,
- IntPtr hDCSrc, int XOriginScr, int YOriginSrc, int WidthScr, int HeightScr, uint Rop);
- [DllImport("gdi32.dll")]
- static public extern IntPtr CreateCompatibleDC(IntPtr hDC);
- [DllImport("gdi32.dll")]
- static public extern IntPtr CreateCompatibleBitmap(IntPtr hDC, int Width, int Heigth);
- [DllImport("gdi32.dll")]
- static public extern IntPtr SelectObject(IntPtr hDC, IntPtr hObject);
- [DllImport("gdi32.dll")]
- static public extern bool BitBlt(IntPtr hDCDest, int XOriginDest, int YOriginDest, int WidthDest, int HeightDest,
- IntPtr hDCSrc, int XOriginScr, int YOriginSrc, uint Rop);
- [DllImport("gdi32.dll")]
- static public extern IntPtr DeleteDC(IntPtr hDC);
- [DllImport("gdi32.dll")]
- static public extern bool PatBlt(IntPtr hDC, int XLeft, int YLeft, int Width, int Height, uint Rop);
- [DllImport("gdi32.dll")]
- static public extern bool DeleteObject(IntPtr hObject);
- [DllImport("gdi32.dll")]
- static public extern uint GetPixel(IntPtr hDC, int XPos, int YPos);
- [DllImport("gdi32.dll")]
- static public extern int SetMapMode(IntPtr hDC, int fnMapMode);
- [DllImport("gdi32.dll")]
- static public extern int GetObjectType(IntPtr handle);
- [DllImport("gdi32")]
- public static extern IntPtr CreateDIBSection(IntPtr hdc, ref BITMAPINFO_FLAT bmi,
- int iUsage, ref int ppvBits, IntPtr hSection, int dwOffset);
- [DllImport("gdi32")]
- public static extern int GetDIBits(IntPtr hDC, IntPtr hbm, int StartScan, int ScanLines, int lpBits, BITMAPINFOHEADER bmi, int usage);
- [DllImport("gdi32")]
- public static extern int GetDIBits(IntPtr hdc, IntPtr hbm, int StartScan, int ScanLines, int lpBits, ref BITMAPINFO_FLAT bmi, int usage);
- [DllImport("gdi32")]
- public static extern IntPtr GetPaletteEntries(IntPtr hpal, int iStartIndex, int nEntries, byte[] lppe);
- [DllImport("gdi32")]
- public static extern IntPtr GetSystemPaletteEntries(IntPtr hdc, int iStartIndex, int nEntries, byte[] lppe);
- [DllImport("gdi32")]
- public static extern uint SetDCBrushColor(IntPtr hdc, uint crColor);
- [DllImport("gdi32")]
- public static extern IntPtr CreateSolidBrush(uint crColor);
- [DllImport("gdi32")]
- public static extern int SetBkMode(IntPtr hDC, BackgroundMode mode);
- [DllImport("gdi32")]
- public static extern int SetViewportOrgEx(IntPtr hdc, int x, int y, int param);
- [DllImport("gdi32")]
- public static extern uint SetTextColor(IntPtr hDC, uint colorRef);
- [DllImport("gdi32")]
- public static extern int SetStretchBltMode(IntPtr hDC, int StrechMode);
- #endregion
-
- #region Uxtheme.dll functions
- [DllImport("uxtheme.dll")]
- static public extern int SetWindowTheme(IntPtr hWnd, string AppID, string ClassID);
- #endregion
-
- #region User32.dll functions
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern IntPtr GetDC(IntPtr hWnd);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern int ReleaseDC(IntPtr hWnd, IntPtr hDC);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- static public extern IntPtr GetDesktopWindow();
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- static public extern bool ShowWindow(IntPtr hWnd, short State);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- static public extern bool UpdateWindow(IntPtr hWnd);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- static public extern bool SetForegroundWindow(IntPtr hWnd);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- static public extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int Width, int Height, uint flags);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- static public extern bool OpenClipboard(IntPtr hWndNewOwner);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- static public extern bool CloseClipboard();
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- static public extern bool EmptyClipboard();
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- static public extern IntPtr SetClipboardData( uint Format, IntPtr hData);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- static public extern bool GetMenuItemRect(IntPtr hWnd, IntPtr hMenu, uint Item, ref RECT rc);
- [DllImport("user32.dll", ExactSpelling=true, CharSet=CharSet.Auto)]
- public static extern IntPtr GetParent(IntPtr hWnd);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern int SendMessage(IntPtr hWnd, int msg, int wParam, int lParam);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, IntPtr lParam);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern void SendMessage(IntPtr hWnd, int msg, int wParam, ref RECT lParam);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern int SendMessage(IntPtr hWnd, int msg, int wParam, ref POINT lParam);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern void SendMessage(IntPtr hWnd, int msg, int wParam, ref TBBUTTON lParam);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern void SendMessage(IntPtr hWnd, int msg, int wParam, ref TBBUTTONINFO lParam);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern int SendMessage(IntPtr hWnd, int msg, int wParam, ref REBARBANDINFO lParam);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern void SendMessage(IntPtr hWnd, int msg, int wParam, ref TVITEM lParam);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern void SendMessage(IntPtr hWnd, int msg, int wParam, ref LVITEM lParam);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern void SendMessage(IntPtr hWnd, int msg, int wParam, ref HDITEM lParam);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern void SendMessage(IntPtr hWnd, int msg, int wParam, ref HD_HITTESTINFO hti);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern IntPtr PostMessage(IntPtr hWnd, int msg, int wParam, int lParam);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern IntPtr SetWindowsHookEx(int hookid, HookProc pfnhook, IntPtr hinst, int threadid);
- [DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
- public static extern bool UnhookWindowsHookEx(IntPtr hhook);
- [DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
- public static extern IntPtr CallNextHookEx(IntPtr hhook, int code, IntPtr wparam, IntPtr lparam);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern IntPtr SetFocus(IntPtr hWnd);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public extern static int DrawText(IntPtr hdc, string lpString, int nCount, ref RECT lpRect, int uFormat);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public extern static IntPtr SetParent(IntPtr hChild, IntPtr hParent);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public extern static IntPtr GetDlgItem(IntPtr hDlg, int nControlID);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public extern static int GetClientRect(IntPtr hWnd, ref RECT rc);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public extern static int InvalidateRect(IntPtr hWnd, IntPtr rect, int bErase);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern bool WaitMessage();
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern bool PeekMessage(ref MSG msg, int hWnd, uint wFilterMin, uint wFilterMax, uint wFlag);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern bool GetMessage(ref MSG msg, int hWnd, uint wFilterMin, uint wFilterMax);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern bool TranslateMessage(ref MSG msg);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern bool DispatchMessage(ref MSG msg);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern IntPtr LoadCursor(IntPtr hInstance, uint cursor);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern IntPtr SetCursor(IntPtr hCursor);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern IntPtr GetFocus();
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern bool ReleaseCapture();
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern IntPtr BeginPaint(IntPtr hWnd, ref PAINTSTRUCT ps);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern bool EndPaint(IntPtr hWnd, ref PAINTSTRUCT ps);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern bool UpdateLayeredWindow(IntPtr hwnd, IntPtr hdcDst, ref POINT pptDst, ref SIZE psize, IntPtr hdcSrc, ref POINT pprSrc, Int32 crKey, ref BLENDFUNCTION pblend, Int32 dwFlags);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern bool GetWindowRect(IntPtr hWnd, ref RECT rect);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern bool ClientToScreen(IntPtr hWnd, ref POINT pt);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern bool TrackMouseEvent(ref TRACKMOUSEEVENTS tme);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern bool SetWindowRgn(IntPtr hWnd, IntPtr hRgn, bool redraw);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern ushort GetKeyState(int virtKey);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern bool MoveWindow(IntPtr hWnd, int x, int y, int width, int height, bool repaint);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern int GetClassName(IntPtr hWnd, out STRINGBUFFER ClassName, int nMaxCount);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern IntPtr GetDCEx(IntPtr hWnd, IntPtr hRegion, uint flags);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern IntPtr GetWindowDC(IntPtr hWnd);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern int FillRect(IntPtr hDC, ref RECT rect, IntPtr hBrush);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern int GetWindowPlacement(IntPtr hWnd, ref WINDOWPLACEMENT wp);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern int SetWindowText(IntPtr hWnd, string text);
- [DllImport("User32.dll", CharSet=CharSet.Auto)]
- public static extern int GetWindowText(IntPtr hWnd, out STRINGBUFFER text, int maxCount);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- static public extern int SendMessage(IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- static public extern IntPtr SetClipboardViewer(IntPtr hWndNewViewer);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- static public extern int ChangeClipboardChain(IntPtr hWndRemove, IntPtr hWndNewNext);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- static public extern int GetSystemMetrics(int nIndex);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- static public extern int SetScrollInfo(IntPtr hwnd, int bar, ref SCROLLINFO si, int fRedraw);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern int ShowScrollBar(IntPtr hWnd, int bar, int show);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern int EnableScrollBar(IntPtr hWnd, uint flags, uint arrows);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern int BringWindowToTop(IntPtr hWnd);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern int GetScrollInfo(IntPtr hwnd, int bar, ref SCROLLINFO si);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- static public extern int ScrollWindowEx(IntPtr hWnd, int dx, int dy,
- ref RECT rcScroll, ref RECT rcClip, IntPtr UpdateRegion, ref RECT rcInvalidated, uint flags);
- [DllImport("user32.dll", CharSet=CharSet.Auto)]
- public static extern int IsWindow(IntPtr hWnd);
- [DllImport("user32",CharSet=CharSet.Auto)]
- public static extern int GetKeyboardState(byte[] pbKeyState);
- [DllImport("user32")]
- public static extern int ToAscii(int uVirtKey,
- int uScanCode,
- byte[] lpbKeyState,
- byte[] lpwTransKey,
- int fuState);
- #endregion
-
- #region Common Controls functions
- [DllImport("comctl32.dll")]
- public static extern bool InitCommonControlsEx(INITCOMMONCONTROLSEX icc);
- [DllImport("comctl32.dll")]
- public static extern bool InitCommonControls();
- [DllImport("comctl32.dll", EntryPoint="DllGetVersion")]
- public extern static int GetCommonControlDLLVersion(ref DLLVERSIONINFO dvi);
- [DllImport("comctl32.dll")]
- public static extern IntPtr ImageList_Create(int width, int height, uint flags, int count, int grow);
- [DllImport("comctl32.dll")]
- public static extern bool ImageList_Destroy(IntPtr handle);
- [DllImport("comctl32.dll")]
- public static extern int ImageList_Add(IntPtr imageHandle, IntPtr hBitmap, IntPtr hMask);
- [DllImport("comctl32.dll")]
- public static extern bool ImageList_Remove(IntPtr imageHandle, int index);
- [DllImport("comctl32.dll")]
- public static extern bool ImageList_BeginDrag(IntPtr imageHandle, int imageIndex, int xHotSpot, int yHotSpot);
- [DllImport("comctl32.dll")]
- public static extern bool ImageList_DragEnter(IntPtr hWndLock, int x, int y);
- [DllImport("comctl32.dll")]
- public static extern bool ImageList_DragMove(int x, int y);
- [DllImport("comctl32.dll")]
- public static extern bool ImageList_DragLeave(IntPtr hWndLock);
- [DllImport("comctl32.dll")]
- public static extern void ImageList_EndDrag();
- #endregion
-
- #region Win32 Macro-Like helpers
- public static int GET_X_LPARAM(int lParam)
- {
- return (lParam & 0xffff);
- }
-
-
- public static int GET_Y_LPARAM(int lParam)
- {
- return (lParam >> 16);
- }
-
- public static Point GetPointFromLPARAM(int lParam)
- {
- return new Point(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam));
- }
-
- public static int LOW_ORDER(int param)
- {
- return (param & 0xffff);
- }
-
- public static int HIGH_ORDER(int param)
- {
- return (param >> 16);
- }
-
- #endregion
-
- }
-
- }
Enums.cs,
- using System;
- using System.Runtime.InteropServices;
- using System.Drawing;
- using Lordal.Window.Form.Lib.General;
- using Lordal.Window.Form.Lib.Win32;
-
-
- namespace Lordeo.Framework
- {
-
-
-
-
- #region Peek Message Flags
- public enum PeekMessageFlags
- {
- PM_NOREMOVE = 0,
- PM_REMOVE = 1,
- PM_NOYIELD = 2
- }
- #endregion
-
- #region Windows Messages
- public enum WinMsg
- {
- WM_NULL = 0x0000,
- WM_CREATE = 0x0001,
- WM_DESTROY = 0x0002,
- WM_MOVE = 0x0003,
- WM_SIZE = 0x0005,
- WM_ACTIVATE = 0x0006,
- 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_QUIT = 0x0012,
- WM_QUERYOPEN = 0x0013,
- WM_ERASEBKGND = 0x0014,
- WM_SYSCOLORCHANGE = 0x0015,
- WM_ENDSESSION = 0x0016,
- WM_SHOWWINDOW = 0x0018,
- WM_CTLCOLOR = 0x0019,
- WM_WININICHANGE = 0x001A,
- WM_SETTINGCHANGE = 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_PAINTICON = 0x0026,
- WM_ICONERASEBKGND = 0x0027,
- WM_NEXTDLGCTL = 0x0028,
- WM_SPOOLERSTATUS = 0x002A,
- WM_DRAWITEM = 0x002B,
- WM_MEASUREITEM = 0x002C,
- WM_DELETEITEM = 0x002D,
- WM_VKEYTOITEM = 0x002E,
- WM_CHARTOITEM = 0x002F,
- WM_SETFONT = 0x0030,
- WM_GETFONT = 0x0031,
- WM_SETHOTKEY = 0x0032,
- WM_GETHOTKEY = 0x0033,
- WM_QUERYDRAGICON = 0x0037,
- WM_COMPAREITEM = 0x0039,
- WM_GETOBJECT = 0x003D,
- WM_COMPACTING = 0x0041,
- WM_COMMNOTIFY = 0x0044 ,
- WM_WINDOWPOSCHANGING = 0x0046,
- WM_WINDOWPOSCHANGED = 0x0047,
- WM_POWER = 0x0048,
- WM_COPYDATA = 0x004A,
- WM_CANCELJOURNAL = 0x004B,
- WM_NOTIFY = 0x004E,
- WM_INPUTLANGCHANGEREQUEST = 0x0050,
- WM_INPUTLANGCHANGE = 0x0051,
- WM_TCARD = 0x0052,
- WM_HELP = 0x0053,
- WM_USERCHANGED = 0x0054,
- WM_NOTIFYFORMAT = 0x0055,
- WM_CONTEXTMENU = 0x007B,
- WM_STYLECHANGING = 0x007C,
- WM_STYLECHANGED = 0x007D,
- WM_DISPLAYCHANGE = 0x007E,
- WM_GETICON = 0x007F,
- WM_SETICON = 0x0080,
- WM_NCCREATE = 0x0081,
- WM_NCDESTROY = 0x0082,
- WM_NCCALCSIZE = 0x0083,
- WM_NCHITTEST = 0x0084,
- WM_NCPAINT = 0x0085,
- WM_NCACTIVATE = 0x0086,
- WM_GETDLGCODE = 0x0087,
- WM_SYNCPAINT = 0x0088,
- WM_NCMOUSEMOVE = 0x00A0,
- WM_NCLBUTTONDOWN = 0x00A1,
- WM_NCLBUTTONUP = 0x00A2,
- WM_NCLBUTTONDBLCLK = 0x00A3,
- WM_NCRBUTTONDOWN = 0x00A4,
- WM_NCRBUTTONUP = 0x00A5,
- WM_NCRBUTTONDBLCLK = 0x00A6,
- WM_NCMBUTTONDOWN = 0x00A7,
- WM_NCMBUTTONUP = 0x00A8,
- WM_NCMBUTTONDBLCLK = 0x00A9,
- 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_KEYLAST = 0x0108,
- WM_IME_STARTCOMPOSITION = 0x010D,
- WM_IME_ENDCOMPOSITION = 0x010E,
- WM_IME_COMPOSITION = 0x010F,
- WM_IME_KEYLAST = 0x010F,
- WM_INITDIALOG = 0x0110,
- WM_COMMAND = 0x0111,
- WM_SYSCOMMAND = 0x0112,
- WM_TIMER = 0x0113,
- WM_HSCROLL = 0x0114,
- WM_VSCROLL = 0x0115,
- WM_INITMENU = 0x0116,
- WM_INITMENUPOPUP = 0x0117,
- WM_MENUSELECT = 0x011F,
- WM_MENUCHAR = 0x0120,
- WM_ENTERIDLE = 0x0121,
- WM_MENURBUTTONUP = 0x0122,
- WM_MENUDRAG = 0x0123,
- WM_MENUGETOBJECT = 0x0124,
- WM_UNINITMENUPOPUP = 0x0125,
- WM_MENUCOMMAND = 0x0126,
- WM_CTLCOLORWinMsgBOX = 0x0132,
- WM_CTLCOLOREDIT = 0x0133,
- WM_CTLCOLORLISTBOX = 0x0134,
- WM_CTLCOLORBTN = 0x0135,
- WM_CTLCOLORDLG = 0x0136,
- WM_CTLCOLORSCROLLBAR = 0x0137,
- WM_CTLCOLORSTATIC = 0x0138,
- WM_MOUSEMOVE = 0x0200,
- WM_LBUTTONDOWN = 0x0201,
- WM_LBUTTONUP =
|
请发表评论