{"id":64,"date":"2015-06-16T20:33:21","date_gmt":"2015-06-16T12:33:21","guid":{"rendered":"https:\/\/blog.freesilo.com\/?p=64"},"modified":"2015-06-16T20:33:21","modified_gmt":"2015-06-16T12:33:21","slug":"c-sendmessage%e7%94%a8%e6%b3%95","status":"publish","type":"post","link":"https:\/\/freesilo.com\/?p=64","title":{"rendered":"C# SendMessage\u7528\u6cd5"},"content":{"rendered":"<p>\u51fd\u6570\u529f\u80fd\uff1a\u8be5\u51fd\u6570\u5c06\u6307\u5b9a\u7684\u6d88\u606f\u53d1\u9001\u5230\u4e00\u4e2a\u6216\u591a\u4e2a\u7a97\u53e3\u3002\u6b64\u51fd\u6570\u4e3a\u6307\u5b9a\u7684\u7a97\u53e3\u8c03\u7528\u7a97\u53e3\u7a0b\u5e8f\uff0c\u76f4\u5230\u7a97\u53e3\u7a0b\u5e8f\u5904\u7406\u5b8c\u6d88\u606f\u518d\u8fd4\u56de\u3002\u8be5\u51fd\u6570\u662f\u5e94\u7528\u7a0b\u5e8f\u548c\u5e94\u7528\u7a0b\u5e8f\u4e4b\u95f4\u8fdb\u884c\u6d88\u606f\u4f20\u9012\u7684\u4e3b\u8981\u624b\u6bb5\u4e4b\u4e00\u3002<br \/>\n\u51fd\u6570\u539f\u578b\uff1aLRESULT SendMessage\uff08HWND hWnd\uff0cUINT Msg\uff0cWPARAM wParam\uff0cLPARAM IParam\uff09\uff1b<\/p>\n<p>\u53c2\u6570\uff1a<\/p>\n<p>hWnd\uff1a\u5176\u7a97\u53e3\u7a0b\u5e8f\u5c06\u63a5\u6536\u6d88\u606f\u7684\u7a97\u53e3\u7684\u53e5\u67c4\u3002\u5982\u679c\u6b64\u53c2\u6570\u4e3aHWND_BROADCAST\uff0c\u5219\u6d88\u606f\u5c06\u88ab\u53d1\u9001\u5230\u7cfb\u7edf\u4e2d\u6240\u6709\u9876\u5c42\u7a97\u53e3\uff0c\u5305\u62ec\u65e0\u6548\u6216\u4e0d\u53ef\u89c1\u7684\u975e\u81ea\u8eab\u62e5\u6709\u7684\u7a97\u53e3\u3001\u88ab\u8986\u76d6\u7684\u7a97\u53e3\u548c\u5f39\u51fa\u5f0f\u7a97\u53e3\uff0c\u4f46\u6d88\u606f\u4e0d\u88ab\u53d1\u9001\u5230\u5b50\u7a97\u53e3\u3002<\/p>\n<p>Msg\uff1a\u6307\u5b9a\u88ab\u53d1\u9001\u7684\u6d88\u606f\u3002<\/p>\n<p>wParam\uff1a\u6307\u5b9a\u9644\u52a0\u7684\u6d88\u606f\u6307\u5b9a\u4fe1\u606f\u3002<\/p>\n<p>IParam\uff1a\u6307\u5b9a\u9644\u52a0\u7684\u6d88\u606f\u6307\u5b9a\u4fe1\u606f\u3002<\/p>\n<p>\u8fd4\u56de\u503c\uff1a\u8fd4\u56de\u503c\u6307\u5b9a\u6d88\u606f\u5904\u7406\u7684\u7ed3\u679c\uff0c\u4f9d\u8d56\u4e8e\u6240\u53d1\u9001\u7684\u6d88\u606f\u3002<\/p>\n<p>\u5907\u6ce8\uff1a\u9700\u8981\u7528HWND_BROADCAST\u901a\u4fe1\u7684\u5e94\u7528\u7a0b\u5e8f\u5e94\u5f53\u4f7f\u7528\u51fd\u6570RegisterWindowMessage\u6765\u4e3a\u5e94\u7528\u7a0b\u5e8f\u95f4\u7684\u901a\u4fe1\u53d6\u5f97\u4e00\u4e2a\u552f\u4e00\u7684\u6d88\u606f\u3002<\/p>\n<p>\u5982\u679c\u6307\u5b9a\u7684\u7a97\u53e3\u662f\u7531\u8c03\u7528\u7ebf\u7a0b\u521b\u5efa\u7684\uff0c\u5219\u7a97\u53e3\u7a0b\u5e8f\u7acb\u5373\u4f5c\u4e3a\u5b50\u7a0b\u5e8f\u8c03\u7528\u3002\u5982\u679c\u6307\u5b9a\u7684\u7a97\u53e3\u662f\u7531\u4e0d\u540c\u7ebf\u7a0b\u521b\u5efa\u7684\uff0c\u5219\u7cfb\u7edf\u5207\u6362\u5230\u8be5\u7ebf\u7a0b\u5e76\u8c03\u7528\u6070\u5f53\u7684\u7a97\u53e3\u7a0b\u5e8f\u3002\u7ebf\u7a0b\u95f4\u7684\u6d88\u606f\u53ea\u6709\u5728\u7ebf\u7a0b\u6267\u884c\u6d88\u606f\u68c0\u7d22\u4ee3\u7801\u65f6\u624d\u88ab\u5904\u7406\u3002\u53d1\u9001\u7ebf\u7a0b\u88ab\u963b\u585e\u76f4\u5230\u63a5\u6536\u7ebf\u7a0b\u5904\u7406\u5b8c\u6d88\u606f\u4e3a\u6b62\u3002<\/p>\n<p>C#\u4e2d\u4f7f\u7528\u8be5\u51fd\u6570\u9996\u5148\u5bfc\u5165\u547d\u540d\u7a7a\u95f4\uff1a<br \/>\nusing System.Runtime.InteropServices;<\/p>\n<p>\u7136\u540e\u5199API\u5f15\u7528\u90e8\u5206\u7684\u4ee3\u7801\uff0c\u653e\u5165 class \u5185\u90e8<br \/>\n[DllImport(&#8220;user32.dll&#8221;, EntryPoint = &#8220;SendMessage&#8221;)]<br \/>\nprivate static extern int SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);<\/p>\n<p>\u8fd9\u4e2a\u51fd\u6570\u6709\u56db\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u662f\u7a97\u53e3\u53e5\u67c4\uff0c\u7a97\u53e3\u53ef\u4ee5\u662f\u4efb\u4f55\u7c7b\u578b\u7684\u5c4f\u5e55\u5bf9\u8c61\uff1b\u7b2c\u4e8c\u4e2a\u662f\u7528\u4e8e\u533a\u522b\u5176\u4ed6\u6d88\u606f\u7684\u5e38\u91cf\u503c\uff1b\u7b2c\u4e09\u4e2a\u901a\u5e38\u662f\u4e00\u4e2a\u4e0e\u6d88\u606f\u6709\u5173\u7684\u5e38\u91cf\u503c\uff0c\u4e5f\u53ef\u80fd\u662f\u7a97\u53e3\u6216\u63a7\u4ef6\u7684\u53e5\u67c4\uff0c\u7b2c\u4e09\u4e2a\u53c2\u6570\u662f\u53ef\u9009\u53c2\u6570\uff0c\u6709\u7684\u6d88\u606f\u8981\uff0c\u6709\u7684\u4e0d\u9700\u8981\uff0c\u6bd4\u5982\u5355\u51fb\u5c31\u4e0d\u9700\u8981\u8fd9\u4e2a\u53c2\u6570\uff0c<br \/>\n\u522b\u7684\u6d88\u606f\uff0c\u6bd4\u5982\u9f20\u6807\u79fb\u52a8\u7684\u53ef\u80fd\u9700\u8981\u5728\u8fd9\u91cc\u52a0\u4e0a\u4e00\u4e9b\u9f20\u6807\u7684\u53c2\u6570\uff1b\u7b2c\u56db\u4e2a\u901a\u5e38\u662f\u4e00\u4e2a\u6307\u5411\u5185\u5b58\u4e2d\u6570\u636e\u7684\u6307\u9488\u3002\u5728C#\u4e2d\u6d88\u606f\u9700\u8981\u5b9a\u4e49\u6210windows\u7cfb\u7edf\u4e2d\u7684\u539f\u59cb\u768416\u8fdb\u5236\u6570\u5b57\uff0c\u6bd4\u5982 const int WM_Lbutton = 0x201; \/\/\u5b9a\u4e49\u4e86\u9f20\u6807\u7684\u5de6\u952e\u70b9\u51fb\u6d88\u606f\u3002\u8be6\u7ec6\u503c\u5728\u6700\u540e\u3002<\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<div>\n<div><a title=\"\u590d\u5236\u4ee3\u7801\"><img decoding=\"async\" src=\"http:\/\/common.cnblogs.com\/images\/copycode.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/div>\n<pre>const int BM_CLICK = 0xF5;\nIntPtr maindHwnd = FindWindow(null, \"QQ\u7528\u6237\u767b\u5f55\"); \/\/\u83b7\u5f97QQ\u767b\u9646\u6846\u7684\u53e5\u67c4\nif (maindHwnd != IntPtr.Zero)\n{\n    IntPtr childHwnd = FindWindowEx(maindHwnd, IntPtr.Zero, null, \"\u767b\u5f55\");   \/\/\u83b7\u5f97\u6309\u94ae\u7684\u53e5\u67c4\n    if (childHwnd != IntPtr.Zero)\n    {\n        SendMessage(childHwnd, BM_CLICK, 0, 0);     \/\/\u53d1\u9001\u70b9\u51fb\u6309\u94ae\u7684\u6d88\u606f\n    }\n    else\n    {\n        MessageBox.Show(\"\u6ca1\u6709\u627e\u5230\u5b50\u7a97\u53e3\");\n    }\n}\nelse\n{\n    MessageBox.Show(\"\u6ca1\u6709\u627e\u5230\u7a97\u53e3\");\n}<\/pre>\n<div><a title=\"\u590d\u5236\u4ee3\u7801\"><img decoding=\"async\" src=\"http:\/\/common.cnblogs.com\/images\/copycode.gif\" alt=\"\u590d\u5236\u4ee3\u7801\" \/><\/a><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>wMsg\u53c2\u6570\u5e38\u91cf\u503c\uff1a<\/p>\n<p>\/\/\u521b\u5efa\u4e00\u4e2a\u7a97\u53e3<br \/>\nconst int WM_CREATE = 0x01;<br \/>\n\/\/\u5f53\u4e00\u4e2a\u7a97\u53e3\u88ab\u7834\u574f\u65f6\u53d1\u9001<br \/>\nconst int WM_DESTROY = 0x02;<br \/>\n\/\/\u79fb\u52a8\u4e00\u4e2a\u7a97\u53e3<br \/>\nconst int WM_MOVE = 0x03;<br \/>\n\/\/\u6539\u53d8\u4e00\u4e2a\u7a97\u53e3\u7684\u5927\u5c0f<br \/>\nconst int WM_SIZE = 0x05;<br \/>\n\/\/\u4e00\u4e2a\u7a97\u53e3\u88ab\u6fc0\u6d3b\u6216\u5931\u53bb\u6fc0\u6d3b\u72b6\u6001<br \/>\nconst int WM_ACTIVATE = 0x06;<br \/>\n\/\/\u4e00\u4e2a\u7a97\u53e3\u83b7\u5f97\u7126\u70b9<br \/>\nconst int WM_SETFOCUS = 0x07;<br \/>\n\/\/\u4e00\u4e2a\u7a97\u53e3\u5931\u53bb\u7126\u70b9<br \/>\nconst int WM_KILLFOCUS = 0x08;<br \/>\n\/\/\u4e00\u4e2a\u7a97\u53e3\u6539\u53d8\u6210Enable\u72b6\u6001<br \/>\nconst int WM_ENABLE = 0x0A;<br \/>\n\/\/\u8bbe\u7f6e\u7a97\u53e3\u662f\u5426\u80fd\u91cd\u753b<br \/>\nconst int WM_SETREDRAW = 0x0B;<br \/>\n\/\/\u5e94\u7528\u7a0b\u5e8f\u53d1\u9001\u6b64\u6d88\u606f\u6765\u8bbe\u7f6e\u4e00\u4e2a\u7a97\u53e3\u7684\u6587\u672c<br \/>\nconst int WM_SETTEXT = 0x0C;<br \/>\n\/\/\u5e94\u7528\u7a0b\u5e8f\u53d1\u9001\u6b64\u6d88\u606f\u6765\u590d\u5236\u5bf9\u5e94\u7a97\u53e3\u7684\u6587\u672c\u5230\u7f13\u51b2\u533a<br \/>\nconst int WM_GETTEXT = 0x0D;<br \/>\n\/\/\u5f97\u5230\u4e0e\u4e00\u4e2a\u7a97\u53e3\u6709\u5173\u7684\u6587\u672c\u7684\u957f\u5ea6\uff08\u4e0d\u5305\u542b\u7a7a\u5b57\u7b26\uff09<br \/>\nconst int WM_GETTEXTLENGTH = 0x0E;<br \/>\n\/\/\u8981\u6c42\u4e00\u4e2a\u7a97\u53e3\u91cd\u753b\u81ea\u5df1<br \/>\nconst int WM_PAINT = 0x0F;<br \/>\n\/\/\u5f53\u4e00\u4e2a\u7a97\u53e3\u6216\u5e94\u7528\u7a0b\u5e8f\u8981\u5173\u95ed\u65f6\u53d1\u9001\u4e00\u4e2a\u4fe1\u53f7<br \/>\nconst int WM_CLOSE = 0x10;<br \/>\n\/\/\u5f53\u7528\u6237\u9009\u62e9\u7ed3\u675f\u5bf9\u8bdd\u6846\u6216\u7a0b\u5e8f\u81ea\u5df1\u8c03\u7528ExitWindows\u51fd\u6570<br \/>\nconst int WM_QUERYENDSESSION = 0x11;<br \/>\n\/\/\u7528\u6765\u7ed3\u675f\u7a0b\u5e8f\u8fd0\u884c<br \/>\nconst int WM_QUIT = 0x12;<br \/>\n\/\/\u5f53\u7528\u6237\u7a97\u53e3\u6062\u590d\u4ee5\u524d\u7684\u5927\u5c0f\u4f4d\u7f6e\u65f6\uff0c\u628a\u6b64\u6d88\u606f\u53d1\u9001\u7ed9\u67d0\u4e2a\u56fe\u6807<br \/>\nconst int WM_QUERYOPEN = 0x13;<br \/>\n\/\/\u5f53\u7a97\u53e3\u80cc\u666f\u5fc5\u987b\u88ab\u64e6\u9664\u65f6\uff08\u4f8b\u5728\u7a97\u53e3\u6539\u53d8\u5927\u5c0f\u65f6\uff09<br \/>\nconst int WM_ERASEBKGND = 0x14;<br \/>\n\/\/\u5f53\u7cfb\u7edf\u989c\u8272\u6539\u53d8\u65f6\uff0c\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u6240\u6709\u9876\u7ea7\u7a97\u53e3<br \/>\nconst int WM_SYSCOLORCHANGE = 0x15;<br \/>\n\/\/\u5f53\u7cfb\u7edf\u8fdb\u7a0b\u53d1\u51faWM_QUERYENDSESSION\u6d88\u606f\u540e\uff0c\u6b64\u6d88\u606f\u53d1\u9001\u7ed9\u5e94\u7528\u7a0b\u5e8f\uff0c\u901a\u77e5\u5b83\u5bf9\u8bdd\u662f\u5426\u7ed3\u675f<br \/>\nconst int WM_ENDSESSION = 0x16;<br \/>\n\/\/\u5f53\u9690\u85cf\u6216\u663e\u793a\u7a97\u53e3\u662f\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u8fd9\u4e2a\u7a97\u53e3<br \/>\nconst int WM_SHOWWINDOW = 0x18;<br \/>\n\/\/\u53d1\u6b64\u6d88\u606f\u7ed9\u5e94\u7528\u7a0b\u5e8f\u54ea\u4e2a\u7a97\u53e3\u662f\u6fc0\u6d3b\u7684\uff0c\u54ea\u4e2a\u662f\u975e\u6fc0\u6d3b\u7684<br \/>\nconst int WM_ACTIVATEAPP = 0x1C;<br \/>\n\/\/\u5f53\u7cfb\u7edf\u7684\u5b57\u4f53\u8d44\u6e90\u5e93\u53d8\u5316\u65f6\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u6240\u6709\u9876\u7ea7\u7a97\u53e3<br \/>\nconst int WM_FONTCHANGE = 0x1D;<br \/>\n\/\/\u5f53\u7cfb\u7edf\u7684\u65f6\u95f4\u53d8\u5316\u65f6\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u6240\u6709\u9876\u7ea7\u7a97\u53e3<br \/>\nconst int WM_TIMECHANGE = 0x1E;<br \/>\n\/\/\u53d1\u9001\u6b64\u6d88\u606f\u6765\u53d6\u6d88\u67d0\u79cd\u6b63\u5728\u8fdb\u884c\u7684\u6478\u6001\uff08\u64cd\u4f5c\uff09<br \/>\nconst int WM_CANCELMODE = 0x1F;<br \/>\n\/\/\u5982\u679c\u9f20\u6807\u5f15\u8d77\u5149\u6807\u5728\u67d0\u4e2a\u7a97\u53e3\u4e2d\u79fb\u52a8\u4e14\u9f20\u6807\u8f93\u5165\u6ca1\u6709\u88ab\u6355\u83b7\u65f6\uff0c\u5c31\u53d1\u6d88\u606f\u7ed9\u67d0\u4e2a\u7a97\u53e3<br \/>\nconst int WM_SETCURSOR = 0x20;<br \/>\n\/\/\u5f53\u5149\u6807\u5728\u67d0\u4e2a\u975e\u6fc0\u6d3b\u7684\u7a97\u53e3\u4e2d\u800c\u7528\u6237\u6b63\u6309\u7740\u9f20\u6807\u7684\u67d0\u4e2a\u952e\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\/\/\u5f53\u524d\u7a97\u53e3<br \/>\nconst int WM_MOUSEACTIVATE = 0x21;<br \/>\n\/\/\u53d1\u9001\u6b64\u6d88\u606f\u7ed9MDI\u5b50\u7a97\u53e3\/\/\u5f53\u7528\u6237\u70b9\u51fb\u6b64\u7a97\u53e3\u7684\u6807\u9898\u680f\uff0c\u6216\/\/\u5f53\u7a97\u53e3\u88ab\u6fc0\u6d3b\uff0c\u79fb\u52a8\uff0c\u6539\u53d8\u5927\u5c0f<br \/>\nconst int WM_CHILDACTIVATE = 0x22;<br \/>\n\/\/\u6b64\u6d88\u606f\u7531\u57fa\u4e8e\u8ba1\u7b97\u673a\u7684\u8bad\u7ec3\u7a0b\u5e8f\u53d1\u9001\uff0c\u901a\u8fc7WH_JOURNALPALYBACK\u7684hook\u7a0b\u5e8f\u5206\u79bb\u51fa\u7528\u6237\u8f93\u5165\u6d88\u606f<br \/>\nconst int WM_QUEUESYNC = 0x23;<br \/>\n\/\/\u6b64\u6d88\u606f\u53d1\u9001\u7ed9\u7a97\u53e3\u5f53\u5b83\u5c06\u8981\u6539\u53d8\u5927\u5c0f\u6216\u4f4d\u7f6e<br \/>\nconst int WM_GETMINMAXINFO = 0x24;<br \/>\n\/\/\u53d1\u9001\u7ed9\u6700\u5c0f\u5316\u7a97\u53e3\u5f53\u5b83\u56fe\u6807\u5c06\u8981\u88ab\u91cd\u753b<br \/>\nconst int WM_PAINTICON = 0x26;<br \/>\n\/\/\u6b64\u6d88\u606f\u53d1\u9001\u7ed9\u67d0\u4e2a\u6700\u5c0f\u5316\u7a97\u53e3\uff0c\u4ec5\/\/\u5f53\u5b83\u5728\u753b\u56fe\u6807\u524d\u5b83\u7684\u80cc\u666f\u5fc5\u987b\u88ab\u91cd\u753b<br \/>\nconst int WM_ICONERASEBKGND = 0x27;<br \/>\n\/\/\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u4e00\u4e2a\u5bf9\u8bdd\u6846\u7a0b\u5e8f\u53bb\u66f4\u6539\u7126\u70b9\u4f4d\u7f6e<br \/>\nconst int WM_NEXTDLGCTL = 0x28;<br \/>\n\/\/\u6bcf\u5f53\u6253\u5370\u7ba1\u7406\u5217\u961f\u589e\u52a0\u6216\u51cf\u5c11\u4e00\u6761\u4f5c\u4e1a\u65f6\u53d1\u51fa\u6b64\u6d88\u606f<br \/>\nconst int WM_SPOOLERSTATUS = 0x2A;<br \/>\n\/\/\u5f53button\uff0ccombobox\uff0clistbox\uff0cmenu\u7684\u53ef\u89c6\u5916\u89c2\u6539\u53d8\u65f6\u53d1\u9001<br \/>\nconst int WM_DRAWITEM = 0x2B;<br \/>\n\/\/\u5f53button, combo box, list box, list view control, or menu item \u88ab\u521b\u5efa\u65f6<br \/>\nconst int WM_MEASUREITEM = 0x2C;<br \/>\n\/\/\u6b64\u6d88\u606f\u6709\u4e00\u4e2aLBS_WANTKEYBOARDINPUT\u98ce\u683c\u7684\u53d1\u51fa\u7ed9\u5b83\u7684\u6240\u6709\u8005\u6765\u54cd\u5e94WM_KEYDOWN\u6d88\u606f<br \/>\nconst int WM_VKEYTOITEM = 0x2E;<br \/>\n\/\/\u6b64\u6d88\u606f\u7531\u4e00\u4e2aLBS_WANTKEYBOARDINPUT\u98ce\u683c\u7684\u5217\u8868\u6846\u53d1\u9001\u7ed9\u4ed6\u7684\u6240\u6709\u8005\u6765\u54cd\u5e94WM_CHAR\u6d88\u606f<br \/>\nconst int WM_CHARTOITEM = 0x2F;<br \/>\n\/\/\u5f53\u7ed8\u5236\u6587\u672c\u65f6\u7a0b\u5e8f\u53d1\u9001\u6b64\u6d88\u606f\u5f97\u5230\u63a7\u4ef6\u8981\u7528\u7684\u989c\u8272<br \/>\nconst int WM_SETFONT = 0x30;<br \/>\n\/\/\u5e94\u7528\u7a0b\u5e8f\u53d1\u9001\u6b64\u6d88\u606f\u5f97\u5230\u5f53\u524d\u63a7\u4ef6\u7ed8\u5236\u6587\u672c\u7684\u5b57\u4f53<br \/>\nconst int WM_GETFONT = 0x31;<br \/>\n\/\/\u5e94\u7528\u7a0b\u5e8f\u53d1\u9001\u6b64\u6d88\u606f\u8ba9\u4e00\u4e2a\u7a97\u53e3\u4e0e\u4e00\u4e2a\u70ed\u952e\u76f8\u5173\u8fde<br \/>\nconst int WM_SETHOTKEY = 0x32;<br \/>\n\/\/\u5e94\u7528\u7a0b\u5e8f\u53d1\u9001\u6b64\u6d88\u606f\u6765\u5224\u65ad\u70ed\u952e\u4e0e\u67d0\u4e2a\u7a97\u53e3\u662f\u5426\u6709\u5173\u8054<br \/>\nconst int WM_GETHOTKEY = 0x33;<br \/>\n\/\/\u6b64\u6d88\u606f\u53d1\u9001\u7ed9\u6700\u5c0f\u5316\u7a97\u53e3\uff0c\u5f53\u6b64\u7a97\u53e3\u5c06\u8981\u88ab\u62d6\u653e\u800c\u5b83\u7684\u7c7b\u4e2d\u6ca1\u6709\u5b9a\u4e49\u56fe\u6807\uff0c\u5e94\u7528\u7a0b\u5e8f\u80fd\u8fd4\u56de\u4e00\u4e2a\u56fe\u6807\u6216\u5149\u6807\u7684\u53e5\u67c4\uff0c\u5f53\u7528\u6237\u62d6\u653e\u56fe\u6807\u65f6\u7cfb\u7edf\u663e\u793a\u8fd9\u4e2a\u56fe\u6807\u6216\u5149\u6807<br \/>\nconst int WM_QUERYDRAGICON = 0x37;<br \/>\n\/\/\u53d1\u9001\u6b64\u6d88\u606f\u6765\u5224\u5b9acombobox\u6216listbox\u65b0\u589e\u52a0\u7684\u9879\u7684\u76f8\u5bf9\u4f4d\u7f6e<br \/>\nconst int WM_COMPAREITEM = 0x39;<br \/>\n\/\/\u663e\u793a\u5185\u5b58\u5df2\u7ecf\u5f88\u5c11\u4e86<br \/>\nconst int WM_COMPACTING = 0x41;<br \/>\n\/\/\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u90a3\u4e2a\u7a97\u53e3\u7684\u5927\u5c0f\u548c\u4f4d\u7f6e\u5c06\u8981\u88ab\u6539\u53d8\u65f6\uff0c\u6765\u8c03\u7528setwindowpos\u51fd\u6570\u6216\u5176\u5b83\u7a97\u53e3\u7ba1\u7406\u51fd\u6570<br \/>\nconst int WM_WINDOWPOSCHANGING = 0x46;<br \/>\n\/\/\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u90a3\u4e2a\u7a97\u53e3\u7684\u5927\u5c0f\u548c\u4f4d\u7f6e\u5df2\u7ecf\u88ab\u6539\u53d8\u65f6\uff0c\u6765\u8c03\u7528setwindowpos\u51fd\u6570\u6216\u5176\u5b83\u7a97\u53e3\u7ba1\u7406\u51fd\u6570<br \/>\nconst int WM_WINDOWPOSCHANGED = 0x47;<br \/>\n\/\/\u5f53\u7cfb\u7edf\u5c06\u8981\u8fdb\u5165\u6682\u505c\u72b6\u6001\u65f6\u53d1\u9001\u6b64\u6d88\u606f<br \/>\nconst int WM_POWER = 0x48;<br \/>\n\/\/\u5f53\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u4f20\u9012\u6570\u636e\u7ed9\u53e6\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u65f6\u53d1\u9001\u6b64\u6d88\u606f<br \/>\nconst int WM_COPYDATA = 0x4A;<br \/>\n\/\/\u5f53\u67d0\u4e2a\u7528\u6237\u53d6\u6d88\u7a0b\u5e8f\u65e5\u5fd7\u6fc0\u6d3b\u72b6\u6001\uff0c\u63d0\u4ea4\u6b64\u6d88\u606f\u7ed9\u7a0b\u5e8f<br \/>\nconst int WM_CANCELJOURNA = 0x4B;<br \/>\n\/\/\u5f53\u67d0\u4e2a\u63a7\u4ef6\u7684\u67d0\u4e2a\u4e8b\u4ef6\u5df2\u7ecf\u53d1\u751f\u6216\u8fd9\u4e2a\u63a7\u4ef6\u9700\u8981\u5f97\u5230\u4e00\u4e9b\u4fe1\u606f\u65f6\uff0c\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u5b83\u7684\u7236\u7a97\u53e3<br \/>\nconst int WM_NOTIFY = 0x4E;<br \/>\n\/\/\u5f53\u7528\u6237\u9009\u62e9\u67d0\u79cd\u8f93\u5165\u8bed\u8a00\uff0c\u6216\u8f93\u5165\u8bed\u8a00\u7684\u70ed\u952e\u6539\u53d8<br \/>\nconst int WM_INPUTLANGCHANGEREQUEST = 0x50;<br \/>\n\/\/\u5f53\u5e73\u53f0\u73b0\u573a\u5df2\u7ecf\u88ab\u6539\u53d8\u540e\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u53d7\u5f71\u54cd\u7684\u6700\u9876\u7ea7\u7a97\u53e3<br \/>\nconst int WM_INPUTLANGCHANGE = 0x51;<br \/>\n\/\/\u5f53\u7a0b\u5e8f\u5df2\u7ecf\u521d\u59cb\u5316windows\u5e2e\u52a9\u4f8b\u7a0b\u65f6\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u5e94\u7528\u7a0b\u5e8f<br \/>\nconst int WM_TCARD = 0x52;<br \/>\n\/\/\u6b64\u6d88\u606f\u663e\u793a\u7528\u6237\u6309\u4e0b\u4e86F1\uff0c\u5982\u679c\u67d0\u4e2a\u83dc\u5355\u662f\u6fc0\u6d3b\u7684\uff0c\u5c31\u53d1\u9001\u6b64\u6d88\u606f\u4e2a\u6b64\u7a97\u53e3\u5173\u8054\u7684\u83dc\u5355\uff0c\u5426\u5219\u5c31\u53d1\u9001\u7ed9\u6709\u7126\u70b9\u7684\u7a97\u53e3\uff0c\u5982\u679c\/\/\u5f53\u524d\u90fd\u6ca1\u6709\u7126\u70b9\uff0c\u5c31\u628a\u6b64\u6d88\u606f\u53d1\u9001\u7ed9\/\/\u5f53\u524d\u6fc0\u6d3b\u7684\u7a97\u53e3<br \/>\nconst int WM_HELP = 0x53;<br \/>\n\/\/\u5f53\u7528\u6237\u5df2\u7ecf\u767b\u5165\u6216\u9000\u51fa\u540e\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u6240\u6709\u7684\u7a97\u53e3\uff0c\/\/\u5f53\u7528\u6237\u767b\u5165\u6216\u9000\u51fa\u65f6\u7cfb\u7edf\u66f4\u65b0\u7528\u6237\u7684\u5177\u4f53\u8bbe\u7f6e\u4fe1\u606f\uff0c\u5728\u7528\u6237\u66f4\u65b0\u8bbe\u7f6e\u65f6\u7cfb\u7edf\u9a6c\u4e0a\u53d1\u9001\u6b64\u6d88\u606f<br \/>\nconst int WM_USERCHANGED = 0x54;<br \/>\n\/\/\u516c\u7528\u63a7\u4ef6\uff0c\u81ea\u5b9a\u4e49\u63a7\u4ef6\u548c\u4ed6\u4eec\u7684\u7236\u7a97\u53e3\u901a\u8fc7\u6b64\u6d88\u606f\u6765\u5224\u65ad\u63a7\u4ef6\u662f\u4f7f\u7528ANSI\u8fd8\u662fUNICODE\u7ed3\u6784<br \/>\nconst int WM_NOTIFYFORMAT = 0x55;<br \/>\n\/\/\u5f53\u7528\u6237\u67d0\u4e2a\u7a97\u53e3\u4e2d\u70b9\u51fb\u4e86\u4e00\u4e0b\u53f3\u952e\u5c31\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u8fd9\u4e2a\u7a97\u53e3<br \/>\n\/\/const int WM_CONTEXTMENU = ??;<br \/>\n\/\/\u5f53\u8c03\u7528SETWINDOWLONG\u51fd\u6570\u5c06\u8981\u6539\u53d8\u4e00\u4e2a\u6216\u591a\u4e2a \u7a97\u53e3\u7684\u98ce\u683c\u65f6\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u90a3\u4e2a\u7a97\u53e3<br \/>\nconst int WM_STYLECHANGING = 0x7C;<br \/>\n\/\/\u5f53\u8c03\u7528SETWINDOWLONG\u51fd\u6570\u4e00\u4e2a\u6216\u591a\u4e2a \u7a97\u53e3\u7684\u98ce\u683c\u540e\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u90a3\u4e2a\u7a97\u53e3<br \/>\nconst int WM_STYLECHANGED = 0x7D;<br \/>\n\/\/\u5f53\u663e\u793a\u5668\u7684\u5206\u8fa8\u7387\u6539\u53d8\u540e\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u6240\u6709\u7684\u7a97\u53e3<br \/>\nconst int WM_DISPLAYCHANGE = 0x7E;<br \/>\n\/\/\u6b64\u6d88\u606f\u53d1\u9001\u7ed9\u67d0\u4e2a\u7a97\u53e3\u6765\u8fd4\u56de\u4e0e\u67d0\u4e2a\u7a97\u53e3\u6709\u5173\u8fde\u7684\u5927\u56fe\u6807\u6216\u5c0f\u56fe\u6807\u7684\u53e5\u67c4<br \/>\nconst int WM_GETICON = 0x7F;<br \/>\n\/\/\u7a0b\u5e8f\u53d1\u9001\u6b64\u6d88\u606f\u8ba9\u4e00\u4e2a\u65b0\u7684\u5927\u56fe\u6807\u6216\u5c0f\u56fe\u6807\u4e0e\u67d0\u4e2a\u7a97\u53e3\u5173\u8054<br \/>\nconst int WM_SETICON = 0x80;<br \/>\n\/\/\u5f53\u67d0\u4e2a\u7a97\u53e3\u7b2c\u4e00\u6b21\u88ab\u521b\u5efa\u65f6\uff0c\u6b64\u6d88\u606f\u5728WM_CREATE\u6d88\u606f\u53d1\u9001\u524d\u53d1\u9001<br \/>\nconst int WM_NCCREATE = 0x81;<br \/>\n\/\/\u6b64\u6d88\u606f\u901a\u77e5\u67d0\u4e2a\u7a97\u53e3\uff0c\u975e\u5ba2\u6237\u533a\u6b63\u5728\u9500\u6bc1<br \/>\nconst int WM_NCDESTROY = 0x82;<br \/>\n\/\/\u5f53\u67d0\u4e2a\u7a97\u53e3\u7684\u5ba2\u6237\u533a\u57df\u5fc5\u987b\u88ab\u6838\u7b97\u65f6\u53d1\u9001\u6b64\u6d88\u606f<br \/>\nconst int WM_NCCALCSIZE = 0x83;<br \/>\n\/\/\u79fb\u52a8\u9f20\u6807\uff0c\u6309\u4f4f\u6216\u91ca\u653e\u9f20\u6807\u65f6\u53d1\u751f<br \/>\nconst int WM_NCHITTEST = 0x84;<br \/>\n\/\/\u7a0b\u5e8f\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u67d0\u4e2a\u7a97\u53e3\u5f53\u5b83\uff08\u7a97\u53e3\uff09\u7684\u6846\u67b6\u5fc5\u987b\u88ab\u7ed8\u5236\u65f6<br \/>\nconst int WM_NCPAINT = 0x85;<br \/>\n\/\/\u6b64\u6d88\u606f\u53d1\u9001\u7ed9\u67d0\u4e2a\u7a97\u53e3\u4ec5\u5f53\u5b83\u7684\u975e\u5ba2\u6237\u533a\u9700\u8981\u88ab\u6539\u53d8\u6765\u663e\u793a\u662f\u6fc0\u6d3b\u8fd8\u662f\u975e\u6fc0\u6d3b\u72b6\u6001<br \/>\nconst int WM_NCACTIVATE = 0x86;<br \/>\n\/\/\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u67d0\u4e2a\u4e0e\u5bf9\u8bdd\u6846\u7a0b\u5e8f\u5173\u8054\u7684\u63a7\u4ef6\uff0cwiddows\u63a7\u5236\u65b9\u4f4d\u952e\u548cTAB\u952e\u4f7f\u8f93\u5165\u8fdb\u5165\u6b64\u63a7\u4ef6\u901a\u8fc7\u5e94<br \/>\nconst int WM_GETDLGCODE = 0x87;<br \/>\n\/\/\u5f53\u5149\u6807\u5728\u4e00\u4e2a\u7a97\u53e3\u7684\u975e\u5ba2\u6237\u533a\u5185\u79fb\u52a8\u65f6\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u8fd9\u4e2a\u7a97\u53e3 \u975e\u5ba2\u6237\u533a\u4e3a\uff1a\u7a97\u4f53\u7684\u6807\u9898\u680f\u53ca\u7a97 \u7684\u8fb9\u6846\u4f53<br \/>\nconst int WM_NCMOUSEMOVE = 0xA0;<br \/>\n\/\/\u5f53\u5149\u6807\u5728\u4e00\u4e2a\u7a97\u53e3\u7684\u975e\u5ba2\u6237\u533a\u540c\u65f6\u6309\u4e0b\u9f20\u6807\u5de6\u952e\u65f6\u63d0\u4ea4\u6b64\u6d88\u606f<br \/>\nconst int WM_NCLBUTTONDOWN = 0xA1;<br \/>\n\/\/\u5f53\u7528\u6237\u91ca\u653e\u9f20\u6807\u5de6\u952e\u540c\u65f6\u5149\u6807\u67d0\u4e2a\u7a97\u53e3\u5728\u975e\u5ba2\u6237\u533a\u5341\u53d1\u9001\u6b64\u6d88\u606f<br \/>\nconst int WM_NCLBUTTONUP = 0xA2;<br \/>\n\/\/\u5f53\u7528\u6237\u53cc\u51fb\u9f20\u6807\u5de6\u952e\u540c\u65f6\u5149\u6807\u67d0\u4e2a\u7a97\u53e3\u5728\u975e\u5ba2\u6237\u533a\u5341\u53d1\u9001\u6b64\u6d88\u606f<br \/>\nconst int WM_NCLBUTTONDBLCLK = 0xA3;<br \/>\n\/\/\u5f53\u7528\u6237\u6309\u4e0b\u9f20\u6807\u53f3\u952e\u540c\u65f6\u5149\u6807\u53c8\u5728\u7a97\u53e3\u7684\u975e\u5ba2\u6237\u533a\u65f6\u53d1\u9001\u6b64\u6d88\u606f<br \/>\nconst int WM_NCRBUTTONDOWN = 0xA4;<br \/>\n\/\/\u5f53\u7528\u6237\u91ca\u653e\u9f20\u6807\u53f3\u952e\u540c\u65f6\u5149\u6807\u53c8\u5728\u7a97\u53e3\u7684\u975e\u5ba2\u6237\u533a\u65f6\u53d1\u9001\u6b64\u6d88\u606f<br \/>\nconst int WM_NCRBUTTONUP = 0xA5;<br \/>\n\/\/\u5f53\u7528\u6237\u53cc\u51fb\u9f20\u6807\u53f3\u952e\u540c\u65f6\u5149\u6807\u67d0\u4e2a\u7a97\u53e3\u5728\u975e\u5ba2\u6237\u533a\u5341\u53d1\u9001\u6b64\u6d88\u606f<br \/>\nconst int WM_NCRBUTTONDBLCLK = 0xA6;<br \/>\n\/\/\u5f53\u7528\u6237\u6309\u4e0b\u9f20\u6807\u4e2d\u952e\u540c\u65f6\u5149\u6807\u53c8\u5728\u7a97\u53e3\u7684\u975e\u5ba2\u6237\u533a\u65f6\u53d1\u9001\u6b64\u6d88\u606f<br \/>\nconst int WM_NCMBUTTONDOWN = 0xA7;<br \/>\n\/\/\u5f53\u7528\u6237\u91ca\u653e\u9f20\u6807\u4e2d\u952e\u540c\u65f6\u5149\u6807\u53c8\u5728\u7a97\u53e3\u7684\u975e\u5ba2\u6237\u533a\u65f6\u53d1\u9001\u6b64\u6d88\u606f<br \/>\nconst int WM_NCMBUTTONUP = 0xA8;<br \/>\n\/\/\u5f53\u7528\u6237\u53cc\u51fb\u9f20\u6807\u4e2d\u952e\u540c\u65f6\u5149\u6807\u53c8\u5728\u7a97\u53e3\u7684\u975e\u5ba2\u6237\u533a\u65f6\u53d1\u9001\u6b64\u6d88\u606f<br \/>\nconst int WM_NCMBUTTONDBLCLK = 0xA9;<br \/>\n\/\/WM_KEYDOWN \u6309\u4e0b\u4e00\u4e2a\u952e<br \/>\nconst int WM_KEYDOWN = 0x0100;<br \/>\n\/\/\u91ca\u653e\u4e00\u4e2a\u952e<br \/>\nconst int WM_KEYUP = 0x0101;<br \/>\n\/\/\u6309\u4e0b\u67d0\u952e\uff0c\u5e76\u5df2\u53d1\u51faWM_KEYDOWN\uff0c WM_KEYUP\u6d88\u606f<br \/>\nconst int WM_CHAR = 0x102;<br \/>\n\/\/\u5f53\u7528translatemessage\u51fd\u6570\u7ffb\u8bd1WM_KEYUP\u6d88\u606f\u65f6\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u62e5\u6709\u7126\u70b9\u7684\u7a97\u53e3<br \/>\nconst int WM_DEADCHAR = 0x103;<br \/>\n\/\/\u5f53\u7528\u6237\u6309\u4f4fALT\u952e\u540c\u65f6\u6309\u4e0b\u5176\u5b83\u952e\u65f6\u63d0\u4ea4\u6b64\u6d88\u606f\u7ed9\u62e5\u6709\u7126\u70b9\u7684\u7a97\u53e3<br \/>\nconst int WM_SYSKEYDOWN = 0x104;<br \/>\n\/\/\u5f53\u7528\u6237\u91ca\u653e\u4e00\u4e2a\u952e\u540c\u65f6ALT \u952e\u8fd8\u6309\u7740\u65f6\u63d0\u4ea4\u6b64\u6d88\u606f\u7ed9\u62e5\u6709\u7126\u70b9\u7684\u7a97\u53e3<br \/>\nconst int WM_SYSKEYUP = 0x105;<br \/>\n\/\/\u5f53WM_SYSKEYDOWN\u6d88\u606f\u88abTRANSLATEMESSAGE\u51fd\u6570\u7ffb\u8bd1\u540e\u63d0\u4ea4\u6b64\u6d88\u606f\u7ed9\u62e5\u6709\u7126\u70b9\u7684\u7a97\u53e3<br \/>\nconst int WM_SYSCHAR = 0x106;<br \/>\n\/\/\u5f53WM_SYSKEYDOWN\u6d88\u606f\u88abTRANSLATEMESSAGE\u51fd\u6570\u7ffb\u8bd1\u540e\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u62e5\u6709\u7126\u70b9\u7684\u7a97\u53e3<br \/>\nconst int WM_SYSDEADCHAR = 0x107;<br \/>\n\/\/\u5728\u4e00\u4e2a\u5bf9\u8bdd\u6846\u7a0b\u5e8f\u88ab\u663e\u793a\u524d\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u5b83\uff0c\u901a\u5e38\u7528\u6b64\u6d88\u606f\u521d\u59cb\u5316\u63a7\u4ef6\u548c\u6267\u884c\u5176\u5b83\u4efb\u52a1<br \/>\nconst int WM_INITDIALOG = 0x110;<br \/>\n\/\/\u5f53\u7528\u6237\u9009\u62e9\u4e00\u6761\u83dc\u5355\u547d\u4ee4\u9879\u6216\u5f53\u67d0\u4e2a\u63a7\u4ef6\u53d1\u9001\u4e00\u6761\u6d88\u606f\u7ed9\u5b83\u7684\u7236\u7a97\u53e3\uff0c\u4e00\u4e2a\u5feb\u6377\u952e\u88ab\u7ffb\u8bd1<br \/>\nconst int WM_COMMAND = 0x111;<br \/>\n\/\/\u5f53\u7528\u6237\u9009\u62e9\u7a97\u53e3\u83dc\u5355\u7684\u4e00\u6761\u547d\u4ee4\u6216\/\/\u5f53\u7528\u6237\u9009\u62e9\u6700\u5927\u5316\u6216\u6700\u5c0f\u5316\u65f6\u90a3\u4e2a\u7a97\u53e3\u4f1a\u6536\u5230\u6b64\u6d88\u606f<br \/>\nconst int WM_SYSCOMMAND = 0x112;<br \/>\n\/\/\u53d1\u751f\u4e86\u5b9a\u65f6\u5668\u4e8b\u4ef6<br \/>\nconst int WM_TIMER = 0x113;<br \/>\n\/\/\u5f53\u4e00\u4e2a\u7a97\u53e3\u6807\u51c6\u6c34\u5e73\u6eda\u52a8\u6761\u4ea7\u751f\u4e00\u4e2a\u6eda\u52a8\u4e8b\u4ef6\u65f6\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u90a3\u4e2a\u7a97\u53e3\uff0c\u4e5f\u53d1\u9001\u7ed9\u62e5\u6709\u5b83\u7684\u63a7\u4ef6<br \/>\nconst int WM_HSCROLL = 0x114;<br \/>\n\/\/\u5f53\u4e00\u4e2a\u7a97\u53e3\u6807\u51c6\u5782\u76f4\u6eda\u52a8\u6761\u4ea7\u751f\u4e00\u4e2a\u6eda\u52a8\u4e8b\u4ef6\u65f6\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u90a3\u4e2a\u7a97\u53e3\u4e5f\uff0c\u53d1\u9001\u7ed9\u62e5\u6709\u5b83\u7684\u63a7\u4ef6<br \/>\nconst int WM_VSCROLL = 0x115;<br \/>\n\/\/\u5f53\u4e00\u4e2a\u83dc\u5355\u5c06\u8981\u88ab\u6fc0\u6d3b\u65f6\u53d1\u9001\u6b64\u6d88\u606f\uff0c\u5b83\u53d1\u751f\u5728\u7528\u6237\u83dc\u5355\u6761\u4e2d\u7684\u67d0\u9879\u6216\u6309\u4e0b\u67d0\u4e2a\u83dc\u5355\u952e\uff0c\u5b83\u5141\u8bb8\u7a0b\u5e8f\u5728\u663e\u793a\u524d\u66f4\u6539\u83dc\u5355<br \/>\nconst int WM_INITMENU = 0x116;<br \/>\n\/\/\u5f53\u4e00\u4e2a\u4e0b\u62c9\u83dc\u5355\u6216\u5b50\u83dc\u5355\u5c06\u8981\u88ab\u6fc0\u6d3b\u65f6\u53d1\u9001\u6b64\u6d88\u606f\uff0c\u5b83\u5141\u8bb8\u7a0b\u5e8f\u5728\u5b83\u663e\u793a\u524d\u66f4\u6539\u83dc\u5355\uff0c\u800c\u4e0d\u8981\u6539\u53d8\u5168\u90e8<br \/>\nconst int WM_INITMENUPOPUP = 0x117;<br \/>\n\/\/\u5f53\u7528\u6237\u9009\u62e9\u4e00\u6761\u83dc\u5355\u9879\u65f6\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u83dc\u5355\u7684\u6240\u6709\u8005\uff08\u4e00\u822c\u662f\u7a97\u53e3\uff09<br \/>\nconst int WM_MENUSELECT = 0x11F;<br \/>\n\/\/\u5f53\u83dc\u5355\u5df2\u88ab\u6fc0\u6d3b\u7528\u6237\u6309\u4e0b\u4e86\u67d0\u4e2a\u952e\uff08\u4e0d\u540c\u4e8e\u52a0\u901f\u952e\uff09\uff0c\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u83dc\u5355\u7684\u6240\u6709\u8005<br \/>\nconst int WM_MENUCHAR = 0x120;<br \/>\n\/\/\u5f53\u4e00\u4e2a\u6a21\u6001\u5bf9\u8bdd\u6846\u6216\u83dc\u5355\u8fdb\u5165\u7a7a\u8f7d\u72b6\u6001\u65f6\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u5b83\u7684\u6240\u6709\u8005\uff0c\u4e00\u4e2a\u6a21\u6001\u5bf9\u8bdd\u6846\u6216\u83dc\u5355\u8fdb\u5165\u7a7a\u8f7d\u72b6\u6001\u5c31\u662f\u5728\u5904\u7406\u5b8c\u4e00\u6761\u6216\u51e0\u6761\u5148\u524d\u7684\u6d88\u606f\u540e\u6ca1\u6709\u6d88\u606f\u5b83\u7684\u5217\u961f\u4e2d\u7b49\u5f85<br \/>\nconst int WM_ENTERIDLE = 0x121;<br \/>\n\/\/\u5728windows\u7ed8\u5236\u6d88\u606f\u6846\u524d\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u6d88\u606f\u6846\u7684\u6240\u6709\u8005\u7a97\u53e3\uff0c\u901a\u8fc7\u54cd\u5e94\u8fd9\u6761\u6d88\u606f\uff0c\u6240\u6709\u8005\u7a97\u53e3\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u7ed9\u5b9a\u7684\u76f8\u5173\u663e\u793a\u8bbe\u5907\u7684\u53e5\u67c4\u6765\u8bbe\u7f6e\u6d88\u606f\u6846\u7684\u6587\u672c\u548c\u80cc\u666f\u989c\u8272<br \/>\nconst int WM_CTLCOLORMSGBOX = 0x132;<br \/>\n\/\/\u5f53\u4e00\u4e2a\u7f16\u8f91\u578b\u63a7\u4ef6\u5c06\u8981\u88ab\u7ed8\u5236\u65f6\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u5b83\u7684\u7236\u7a97\u53e3\u901a\u8fc7\u54cd\u5e94\u8fd9\u6761\u6d88\u606f\uff0c\u6240\u6709\u8005\u7a97\u53e3\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u7ed9\u5b9a\u7684\u76f8\u5173\u663e\u793a\u8bbe\u5907\u7684\u53e5\u67c4\u6765\u8bbe\u7f6e\u7f16\u8f91\u6846\u7684\u6587\u672c\u548c\u80cc\u666f\u989c\u8272<br \/>\nconst int WM_CTLCOLOREDIT = 0x133;<\/p>\n<p>\/\/\u5f53\u4e00\u4e2a\u5217\u8868\u6846\u63a7\u4ef6\u5c06\u8981\u88ab\u7ed8\u5236\u524d\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u5b83\u7684\u7236\u7a97\u53e3\u901a\u8fc7\u54cd\u5e94\u8fd9\u6761\u6d88\u606f\uff0c\u6240\u6709\u8005\u7a97\u53e3\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u7ed9\u5b9a\u7684\u76f8\u5173\u663e\u793a\u8bbe\u5907\u7684\u53e5\u67c4\u6765\u8bbe\u7f6e\u5217\u8868\u6846\u7684\u6587\u672c\u548c\u80cc\u666f\u989c\u8272<br \/>\nconst int WM_CTLCOLORLISTBOX = 0x134;<br \/>\n\/\/\u5f53\u4e00\u4e2a\u6309\u94ae\u63a7\u4ef6\u5c06\u8981\u88ab\u7ed8\u5236\u65f6\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u5b83\u7684\u7236\u7a97\u53e3\u901a\u8fc7\u54cd\u5e94\u8fd9\u6761\u6d88\u606f\uff0c\u6240\u6709\u8005\u7a97\u53e3\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u7ed9\u5b9a\u7684\u76f8\u5173\u663e\u793a\u8bbe\u5907\u7684\u53e5\u67c4\u6765\u8bbe\u7f6e\u6309\u7ebd\u7684\u6587\u672c\u548c\u80cc\u666f\u989c\u8272<br \/>\nconst int WM_CTLCOLORBTN = 0x135;<br \/>\n\/\/\u5f53\u4e00\u4e2a\u5bf9\u8bdd\u6846\u63a7\u4ef6\u5c06\u8981\u88ab\u7ed8\u5236\u524d\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u5b83\u7684\u7236\u7a97\u53e3\u901a\u8fc7\u54cd\u5e94\u8fd9\u6761\u6d88\u606f\uff0c\u6240\u6709\u8005\u7a97\u53e3\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u7ed9\u5b9a\u7684\u76f8\u5173\u663e\u793a\u8bbe\u5907\u7684\u53e5\u67c4\u6765\u8bbe\u7f6e\u5bf9\u8bdd\u6846\u7684\u6587\u672c\u80cc\u666f\u989c\u8272<br \/>\nconst int WM_CTLCOLORDLG = 0x136;<br \/>\n\/\/\u5f53\u4e00\u4e2a\u6eda\u52a8\u6761\u63a7\u4ef6\u5c06\u8981\u88ab\u7ed8\u5236\u65f6\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u5b83\u7684\u7236\u7a97\u53e3\u901a\u8fc7\u54cd\u5e94\u8fd9\u6761\u6d88\u606f\uff0c\u6240\u6709\u8005\u7a97\u53e3\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u7ed9\u5b9a\u7684\u76f8\u5173\u663e\u793a\u8bbe\u5907\u7684\u53e5\u67c4\u6765\u8bbe\u7f6e\u6eda\u52a8\u6761\u7684\u80cc\u666f\u989c\u8272<br \/>\nconst int WM_CTLCOLORSCROLLBAR = 0x137;<br \/>\n\/\/\u5f53\u4e00\u4e2a\u9759\u6001\u63a7\u4ef6\u5c06\u8981\u88ab\u7ed8\u5236\u65f6\u53d1\u9001\u6b64\u6d88\u606f\u7ed9\u5b83\u7684\u7236\u7a97\u53e3\u901a\u8fc7\u54cd\u5e94\u8fd9\u6761\u6d88\u606f\uff0c\u6240\u6709\u8005\u7a97\u53e3\u53ef\u4ee5 \u901a\u8fc7\u4f7f\u7528\u7ed9\u5b9a\u7684\u76f8\u5173\u663e\u793a\u8bbe\u5907\u7684\u53e5\u67c4\u6765\u8bbe\u7f6e\u9759\u6001\u63a7\u4ef6\u7684\u6587\u672c\u548c\u80cc\u666f\u989c\u8272<br \/>\nconst int WM_CTLCOLORSTATIC = 0x138;<br \/>\n\/\/\u5f53\u9f20\u6807\u8f6e\u5b50\u8f6c\u52a8\u65f6\u53d1\u9001\u6b64\u6d88\u606f\u4e2a\u5f53\u524d\u6709\u7126\u70b9\u7684\u63a7\u4ef6<br \/>\nconst int WM_MOUSEWHEEL = 0x20A;<br \/>\n\/\/\u53cc\u51fb\u9f20\u6807\u4e2d\u952e<br \/>\nconst int WM_MBUTTONDBLCLK = 0x209;<br \/>\n\/\/\u91ca\u653e\u9f20\u6807\u4e2d\u952e<br \/>\nconst int WM_MBUTTONUP = 0x208;<br \/>\n\/\/\u79fb\u52a8\u9f20\u6807\u65f6\u53d1\u751f\uff0c\u540cWM_MOUSEFIRST<br \/>\nconst int WM_MOUSEMOVE = 0x200;<br \/>\n\/\/\u6309\u4e0b\u9f20\u6807\u5de6\u952e<br \/>\nconst int WM_LBUTTONDOWN = 0x201;<br \/>\n\/\/\u91ca\u653e\u9f20\u6807\u5de6\u952e<br \/>\nconst int WM_LBUTTONUP = 0x202;<br \/>\n\/\/\u53cc\u51fb\u9f20\u6807\u5de6\u952e<br \/>\nconst int WM_LBUTTONDBLCLK = 0x203;<br \/>\n\/\/\u6309\u4e0b\u9f20\u6807\u53f3\u952e<br \/>\nconst int WM_RBUTTONDOWN = 0x204;<br \/>\n\/\/\u91ca\u653e\u9f20\u6807\u53f3\u952e<br \/>\nconst int WM_RBUTTONUP = 0x205;<br \/>\n\/\/\u53cc\u51fb\u9f20\u6807\u53f3\u952e<br \/>\nconst int WM_RBUTTONDBLCLK = 0x206;<br \/>\n\/\/\u6309\u4e0b\u9f20\u6807\u4e2d\u952e<br \/>\nconst int WM_MBUTTONDOWN = 0x207;<\/p>\n<p>const int WM_USER = 0x0400;<br \/>\nconst int MK_LBUTTON = 0x0001;<br \/>\nconst int MK_RBUTTON = 0x0002;<br \/>\nconst int MK_SHIFT = 0x0004;<br \/>\nconst int MK_CONTROL = 0x0008;<br \/>\nconst int MK_MBUTTON = 0x0010;<br \/>\nconst int MK_XBUTTON1 = 0x0020;<br \/>\nconst int MK_XBUTTON2 = 0x0040;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u51fd\u6570\u529f\u80fd\uff1a\u8be5\u51fd\u6570\u5c06\u6307\u5b9a\u7684\u6d88\u606f\u53d1\u9001\u5230\u4e00\u4e2a\u6216\u591a\u4e2a\u7a97\u53e3\u3002\u6b64\u51fd\u6570\u4e3a\u6307\u5b9a\u7684\u7a97\u53e3\u8c03\u7528\u7a97\u53e3\u7a0b\u5e8f&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/freesilo.com\/?p=64\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-64","post","type-post","status-publish","format-standard","hentry","category-csharp"],"_links":{"self":[{"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/posts\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/freesilo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=64"}],"version-history":[{"count":0,"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/posts\/64\/revisions"}],"wp:attachment":[{"href":"https:\/\/freesilo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freesilo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freesilo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}