{"id":97066,"date":"2026-08-29T01:08:47","date_gmt":"2026-08-28T17:08:47","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/97066.html"},"modified":"2026-08-29T01:08:47","modified_gmt":"2026-08-28T17:08:47","slug":"%e7%ac%ac5%e7%ab%a0%ef%bc%8cwin32-%e7%ab%a0%e8%8a%82-%ef%bc%9a%e7%bb%98%e5%88%b6%e5%a1%ab%e5%85%85%e5%8c%ba%e5%9f%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/97066.html","title":{"rendered":"\u7b2c5\u7ae0\uff0c[Win32 \u7ae0\u8282] \uff1a\u7ed8\u5236\u586b\u5145\u533a\u57df"},"content":{"rendered":"<h2>\u4e13\u680f\u5bfc\u822a<\/h2>\n<p>\u4e0a\u4e00\u7bc7&#xff1a;\u7b2c5\u7ae0&#xff0c;[Win32 \u7ae0\u8282] &#xff1a;\u7ed8\u56fe\u6a21\u5f0f<\/p>\n<p>\u56de\u5230\u76ee\u5f55<\/p>\n<p>\u4e0b\u4e00\u7bc7&#xff1a;\u7b2c5\u7ae0&#xff0c;[Win32 \u7ae0\u8282] &#xff1a;Polygon \u51fd\u6570\u548c\u591a\u8fb9\u5f62\u586b\u5145\u6a21\u5f0f<\/p>\n<h2>\u672c\u8282\u524d\u8a00<\/h2>\n<p>\u5bf9\u4e8e\u672c\u8282\u6240\u8bb2\u89e3\u7684\u77e5\u8bc6&#xff0c;\u6709\u53ef\u80fd&#xff0c;\u4f60\u4f1a\u9700\u8981\u65f6\u4e0d\u65f6\u5730\u53c2\u8003\u672c\u4e13\u680f\u7684\u5176\u5b83\u6587\u7ae0\u3002\u771f\u7684\u9047\u5230\u4e86\u9700\u8981\u53c2\u8003\u4e4b\u524d\u7684\u6587\u7ae0\u7684\u77e5\u8bc6\u70b9&#xff0c;\u8bf7\u4f60\u81ea\u884c\u67e5\u9605\u3002<\/p>\n<p>\u6211\u5462&#xff0c;\u4e5f\u4f1a\u63d0\u5230\u4e00\u90e8\u5206\u7684\u53c2\u8003\u8bfe\u8282\u3002\u4f46\u662f\u5462&#xff0c;\u4f60\u4e0d\u5e94\u8be5\u4f9d\u8d56\u4e8e\u6211\u7684\u4e3b\u52a8\u63d0\u53ca\u3002\u6700\u597d\u5462&#xff0c;\u4f60\u81ea\u5df1\u80fd\u591f\u591a\u53bb\u4e86\u89e3\u548c\u67e5\u770b\u672c\u4e13\u680f\u76ee\u5f55\u3002<\/p>\n<p>\u7ed8\u5236\u586b\u5145\u533a\u57df&#xff0c;\u8fd9\u662f\u4e00\u4e2a\u6709\u8da3\u7684\u77e5\u8bc6\u4e86\u3002<\/p>\n<p>\u5728\u8fd9\u4e00\u90e8\u5206\u7684\u77e5\u8bc6\u91cc\u9762&#xff0c;\u6211\u4eec\u4f1a\u5b66\u4e60\u5230\u753b\u5237\u3002\u5f53\u6211\u4eec\u5b66\u4e60\u5b8c\u4e86\u753b\u5237\u7684\u77e5\u8bc6\u4ee5\u540e&#xff0c;\u4e4b\u524d\u7684\u67d0\u4e9b\u4e2a\u8bfe\u8282\u91cc\u9762\u7684\u56fe\u7247&#xff0c;\u6211\u4eec\u5c31\u53ef\u4ee5\u7528\u7f16\u7a0b\u7684\u65b9\u5f0f&#xff0c;\u6765\u5c06\u5176\u7ed8\u5236\u51fa\u6765\u4e86\u3002<\/p>\n<p>\u5173\u4e8e GDI \u7ed8\u56fe&#xff0c;\u8fd9\u5e94\u8be5\u7b97\u662f\u4e00\u4e2a\u76f8\u5f53\u91cd\u8981\u7684\u77e5\u8bc6\u4e86\u3002<\/p>\n<p>\u4f69\u63aa\u5c14\u5fb7\u539f\u6559\u6750\u4e2d&#xff0c;\u867d\u8bf4\u4e5f\u8bbe\u7f6e\u4e86\u4e0d\u5c11\u7684\u6848\u4f8b\u4ee3\u7801\u3002\u4e0d\u8fc7&#xff0c;\u6211\u8fd8\u662f\u5e0c\u671b&#xff0c;\u591a\u63d0\u4f9b\u4e00\u4e9b\u4e2a\u57fa\u7840\u7684\u4ee3\u7801\u6848\u4f8b&#xff0c;\u4f9b\u5927\u5bb6\u6765\u5b66\u4e60\u3002\u5e76\u4e14\u5462&#xff0c;\u5728\u8fd9\u79cd&#xff0c;\u5bf9\u4e8e\u7b80\u5355\u4ee3\u7801\u7684\u5b66\u4e60\u4e4b\u4e2d&#xff0c;\u4e86\u89e3\u4e00\u4e9b\u4e2a\u57fa\u7840\u7684\u7f16\u7a0b\u6982\u5ff5\u3002<\/p>\n<p>\u4f69\u63aa\u5c14\u5fb7\u539f\u6559\u6750\u91cc\u9762&#xff0c;\u5305\u542b\u7740\u8bb8\u591a\u7684\u4e0d\u6613\u7406\u89e3\u7684\u4ee3\u7801\u3002\u6211\u5e0c\u671b&#xff0c;\u901a\u8fc7\u6211\u7684\u4e00\u756a\u8bb2\u89e3&#xff0c;\u80fd\u591f\u7ed9\u5927\u5bb6\u964d\u4f4e\u4e00\u4e9b\u5b66\u4e60\u96be\u5ea6\u3002<\/p>\n<p>\u5f53\u7136\u4e86&#xff0c;\u4e3a\u4e86\u964d\u4f4e\u5b66\u4e60\u96be\u5ea6&#xff0c;\u90a3\u4e48&#xff0c;\u514d\u4e0d\u4e86\u5730&#xff0c;\u5728\u8bb2\u89e3\u7684\u65f6\u5019&#xff0c;\u5c31\u9700\u8981\u591a\u82b1\u8d39\u4e00\u70b9\u7b14\u58a8\u4e86&#xff0c;\u5927\u5bb6\u4e5f\u4f1a\u9700\u8981\u591a\u9605\u8bfb\u4e00\u4e9b\u4e2a\u6587\u5b57\u4e86\u3002<\/p>\n<p>\u4e0d\u8fc7\u5462&#xff0c;\u60f3\u8981\u505a\u5230\u6df1\u5165\u6d45\u51fa&#xff0c;\u60f3\u8981\u5c3d\u91cf\u5730\u8ba9\u591a\u4e00\u4e9b\u7684\u4eba&#xff0c;\u80fd\u591f\u514b\u670d Windows \u7f16\u7a0b\u5b66\u4e60\u4e2d\u7684\u8bb8\u591a\u7684\u96be\u70b9\u3001\u5361\u70b9&#xff0c;\u591a\u8017\u8d39\u4e00\u70b9\u7b14\u58a8&#xff0c;\u4e5f\u5c31\u662f\u5fc5\u8981\u7684\u4e86\u3002<\/p>\n<p>\u4e0d\u8fc7\u5462&#xff0c;\u5f88\u591a\u65f6\u5019&#xff0c;\u6211\u7684\u8bdd\u8bed&#xff0c;\u53ef\u80fd\u4f1a\u6bd4\u8f83\u5570\u55e6\u3002\u6709\u597d\u7684\u5199\u4f5c\u5efa\u8bae\u7684&#xff0c;\u4e5f\u6b22\u8fce\u63d0\u51fa\u6765\u3002<\/p>\n<p>\u586b\u5145\u533a\u57df\u7684\u90e8\u5206&#xff0c;\u8fd8\u662f\u5e0c\u671b\u5927\u5bb6\u80fd\u591f\u5b66\u597d\u5b83\u3002\u5b66\u597d\u4e86\u4ee5\u540e&#xff0c;\u6211\u5c31\u4f1a\u5e26\u9886\u5927\u5bb6\u4e00\u8d77\u6765\u7ed8\u5236\u4e4b\u524d\u7684\u67d0\u4e9b\u4e2a\u8bfe\u8282\u4e2d&#xff0c;\u7528\u8fc7\u7684\u4e00\u4e9b\u4e2a\u56fe\u7247\u4e86\u3002<\/p>\n<p>\u6211\u4eec\u5f00\u59cb\u672c\u8282\u7684\u5b66\u4e60\u3002<\/p>\n<p><span style=\"color:#fe2c24\">\u672c\u8282\u5185\u5bb9&#xff0c;\u6765\u81ea\u4e8e\u5bf9\u4f69\u63aa\u5c14\u5fb7\u6559\u6750\u7684\u5927\u6bb5\u6284\u5f55\u3002<\/span><\/p>\n<\/p>\n<h2>\u4e00.\u00a0 \u00a0 \u672c\u8282\u5185\u5bb9<\/h2>\n<p>\u7ed8\u5236\u7ebf\u6761\u7684\u4e0b\u4e00\u6b65\u5c31\u662f\u5982\u4f55\u586b\u5145\u4e00\u4e2a\u5c01\u95ed\u533a\u57df\u3002\u4e0b\u8868\u5217\u51fa\u4e86 Windows \u7528\u4e8e\u7ed8\u5236\u5e26\u6709\u8fb9\u6846\u7684\u586b\u5145\u533a\u57df\u7684 7 \u4e2a\u51fd\u6570\u3002<\/p>\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:500px\">\n<tbody>\n<tr>\n<td>\u51fd\u6570\u540d\u79f0<\/td>\n<td>\u56fe\u00a0 \u00a0 \u5f62<\/td>\n<\/tr>\n<tr>\n<td>Rectangle<\/td>\n<td>\u76f4\u89d2\u77e9\u5f62<\/td>\n<\/tr>\n<tr>\n<td>Ellipse<\/td>\n<td>\u692d\u5706<\/td>\n<\/tr>\n<tr>\n<td>RoundRect<\/td>\n<td>\u5706\u89d2\u77e9\u5f62<\/td>\n<\/tr>\n<tr>\n<td>Chord<\/td>\n<td>\u4e00\u4e2a\u5f13\u5f62&#xff0c;\u7531\u692d\u5706\u5706\u5468\u4e0a\u7684\u5f27\u548c\u4e00\u6839\u5f26\u7ec4\u6210<\/td>\n<\/tr>\n<tr>\n<td>Pie<\/td>\n<td>\u692d\u5706\u4e0a\u7684\u4e00\u4e2a\u6247\u5f62<\/td>\n<\/tr>\n<tr>\n<td>Polygon<\/td>\n<td>\u591a\u8fb9\u5f62<\/td>\n<\/tr>\n<tr>\n<td>PolyPolygon<\/td>\n<td>\u591a\u4e2a\u591a\u8fb9\u5f62<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Windows \u4f7f\u7528\u5f53\u524d\u88ab\u9009\u5165\u8bbe\u5907\u73af\u5883\u7684\u753b\u7b14\u6765\u7ed8\u5236\u56fe\u5f62\u7684\u8fb9\u6846\u7ebf&#xff0c;\u8fb9\u6846\u7ebf\u4f7f\u7528\u5f53\u524d\u7684\u80cc\u666f\u6a21\u5f0f\u3001\u80cc\u666f\u989c\u8272\u548c\u7ed8\u56fe\u6a21\u5f0f&#xff0c;\u8fd9\u4e0e Windows \u7ed8\u5236\u7ebf\u6761\u4e00\u6837\u3002\u6211\u4eec\u6240\u5b66\u7684\u5173\u4e8e\u7ebf\u6761\u7684\u6240\u6709\u77e5\u8bc6&#xff0c;\u90fd\u9002\u7528\u4e8e\u8fd9\u4e9b\u56fe\u5f62\u7684\u8fb9\u6846\u7ebf\u3002<\/p>\n<p>Windows \u4f7f\u7528\u5f53\u524d\u9009\u5165\u8bbe\u5907\u73af\u5883\u7684\u753b\u5237\u6765\u586b\u5145\u56fe\u5f62\u3002\u5728\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;\u4f7f\u7528\u7684\u662f\u5907\u7528\u5bf9\u8c61 WHITE_BRUSH&#xff0c;\u8fd9\u5c31\u610f\u5473\u7740\u4f7f\u7528\u767d\u8272\u6765\u7ed8\u5236\u56fe\u5f62\u5185\u90e8\u3002Windows \u5b9a\u4e49\u4e86 6 \u79cd\u5907\u7528\u753b\u5237\u3002<\/p>\n<ul>\n<li>WHITE_BRUSH&#xff0c;\u767d\u8272\u753b\u5237<\/li>\n<li>LTGRAY_BRUSH&#xff0c;\u6d45\u7070\u8272\u753b\u5237<\/li>\n<li>GRAY_BRUSH&#xff0c;\u7070\u8272\u753b\u5237<\/li>\n<li>DKGRAY_BRUSH&#xff0c;\u6df1\u7070\u8272\u753b\u5237<\/li>\n<li>BLACK_BRUSH&#xff0c;\u9ed1\u8272\u753b\u5237<\/li>\n<li>NULL_BRUSH&#xff08;\u53c8\u79f0\u4e3a HOLLOW_BRUSH&#xff09;&#xff0c;\u65e0\u753b\u5237&#xff0c;\u5373\u4e0d\u586b\u5145\u5c01\u95ed\u56fe\u5f62\u7684\u5185\u90e8\u533a\u57df<\/li>\n<\/ul>\n<p>\u548c\u9009\u62e9\u5907\u7528\u753b\u7b14\u4e00\u6837&#xff0c;\u53ef\u4ee5\u5c06\u4efb\u4f55\u4e00\u79cd\u5907\u7528\u753b\u5237\u9009\u5165\u8bbe\u5907\u73af\u5883\u3002<\/p>\n<p>Windows \u5b9a\u4e49\u7684\u753b\u5237\u7684\u53e5\u67c4\u4e3a HBRUSH \u7c7b\u578b&#xff0c;\u6240\u4ee5\u8981\u5148\u5b9a\u4e49\u4e00\u4e2a\u753b\u5237\u53e5\u67c4\u53d8\u91cf\u3002<\/p>\n<p><span style=\"color:#1a439c\">HBRUSH hBrush;<\/span><\/p>\n<p>\u83b7\u53d6 GRAY_BRUSH \u53e5\u67c4\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528\u5982\u4e0b\u7684 GetStockObject \u51fd\u6570\u6765\u5b9e\u73b0\u3002<\/p>\n<p>hBrush &#061; (HBRUSH) GetStockObject (GRAY_BRUSH); <\/p>\n<p>\u7136\u540e\u901a\u8fc7\u8c03\u7528 SelectObject \u51fd\u6570\u6765\u5c06\u5b83\u9009\u5165\u8bbe\u5907\u73af\u5883\u3002<\/p>\n<p>SelectObject (hdc, hBrush); <\/p>\n<p>\u73b0\u5728&#xff0c;\u5f53\u7ed8\u5236\u4e0a\u8868\u4e2d\u7684\u4efb\u610f\u56fe\u5f62\u65f6&#xff0c;\u5185\u90e8\u90fd\u4f1a\u53d8\u6210\u7070\u8272\u3002<\/p>\n<p>\u5982\u679c\u8981\u7ed8\u5236\u4e00\u4e2a\u4e0d\u542b\u8fb9\u6846\u7ebf\u7684\u56fe\u5f62&#xff0c;\u5219\u8981\u628a NULL_PEN \u753b\u7b14\u9009\u5165\u8bbe\u5907\u73af\u5883\u3002<\/p>\n<p>SelectObject (hdc, GetStockObject (NULL_PEN)); <\/p>\n<p>\u5982\u679c\u771f\u60f3\u7ed8\u5236\u56fe\u5f62\u7684\u8fb9\u6846\u7ebf&#xff0c;\u800c\u4e0d\u60f3\u586b\u5145\u56fe\u5f62\u7684\u5185\u90e8&#xff0c;\u53ef\u4ee5\u5c06 NULL_BRUSH \u9009\u5165\u8bbe\u5907\u73af\u5883\u3002<\/p>\n<p>SelectObject (hdc, GetStockObject (NULL_BRUSH)); <\/p>\n<p>\u4e5f\u53ef\u4ee5\u5efa\u7acb\u81ea\u5b9a\u4e49\u753b\u5237&#xff0c;\u5c31\u50cf\u5efa\u7acb\u81ea\u5b9a\u4e49\u753b\u7b14\u4e00\u6837\u3002\u6211\u4eec\u5f88\u5feb\u5c31\u4f1a\u8c08\u5230\u521b\u5efa\u81ea\u5b9a\u4e49\u753b\u5237\u7684\u95ee\u9898\u3002<\/p>\n<p>\u5173\u4e8e\u753b\u5237\u7684\u4f7f\u7528&#xff0c;\u4e5f\u9700\u8981\u5728\u7528\u5b83\u586b\u5145\u56fe\u5f62\u7684\u5185\u90e8\u533a\u57df\u4e4b\u524d&#xff0c;\u5c06\u5176\u9009\u5165\u8bbe\u5907\u73af\u5883\u3002\u540c\u65f6\u5462&#xff0c;\u7528\u5b8c\u4e86\u4ee5\u540e&#xff0c;\u9700\u8981\u5c06\u5176\u9009\u51fa\u8bbe\u5907\u73af\u5883\u3002<\/p>\n<\/p>\n<h2>\u4e8c.\u00a0 \u00a0 \u672c\u8282\u4ee3\u7801<\/h2>\n<p>\u5bf9\u4e8e\u672c\u8282\u77e5\u8bc6&#xff0c;\u4f69\u63aa\u5c14\u5fb7\u5148\u751f\u662f\u6ca1\u6709\u7ed9\u914d\u7f6e\u6848\u4f8b\u4ee3\u7801\u7684\u3002\u6211\u60f3&#xff0c;\u8fd9\u5927\u6982\u662f\u56e0\u4e3a&#xff0c;\u4ed6\u4e0d\u60f3\u7ed9\u6559\u6750\u4e2d\u914d\u4e0a\u592a\u591a\u7684\u7b80\u5355\u7684\u4ee3\u7801\u3002\u4e0d\u8fc7\u5462&#xff0c;\u6211\u8fd9\u91cc&#xff0c;\u5012\u662f\u613f\u610f\u591a\u914d\u7f6e\u4e00\u4e9b\u4e2a\u7b80\u5355\u548c\u57fa\u7840\u7684\u4ee3\u7801\u3002<\/p>\n<p>\u56e0\u4e3a&#xff0c;\u5728\u8fd9\u79cd\u770b\u4f3c\u7b80\u5355\u548c\u57fa\u7840\u7684\u4ee3\u7801\u4e4b\u4e2d&#xff0c;\u4f60\u53ef\u4ee5\u719f\u6089\u8bb8\u591a\u7684\u5df2\u6709\u7684\u77e5\u8bc6\u3002\u6bd4\u5982\u8bf4\u8bbe\u7f6e\u7a97\u53e3\u7c7b&#xff0c;\u6ce8\u518c\u7a97\u53e3\u7c7b&#xff0c;\u7b49\u7b49\u3002<\/p>\n<p>\u6211\u4eec\u9996\u5148\u628a\u672c\u8282\u4ee3\u7801\u7684\u7ed8\u5236\u4efb\u52a1\u5c55\u793a\u5728\u4e0b\u9762\u3002<\/p>\n<p>\u7ed8\u5236\u4e09\u4e2a\u586b\u5145\u533a\u57df\u3002 \u00a0 \u00a01. \u00a0BLACK_PEN&#xff0c;LTGRAY_BRUSH&#xff0c;\u7ed8\u5236\u77e9\u5f62 \u00a0 \u00a02. \u00a0\u81ea\u5b9a\u4e49\u7ea2\u8272\u753b\u7b14&#xff0c;NULL_BRUSH&#xff0c;\u692d\u5706 \u00a0 \u00a03. \u00a0NULL_PEN&#xff0c;GRAY_BRUSH&#xff0c;\u5706\u89d2\u77e9\u5f62<\/p>\n<p>\u7136\u540e\u5462&#xff0c;\u4e0b\u9762\u5c31\u662f\u5b8c\u6574\u7684\u4ee3\u7801\u4e86\u3002<\/p>\n<p>\/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n   \u7ed8\u5236\u4e09\u4e2a\u586b\u5145\u533a\u57df\u3002<br \/>\n   1.  BLACK_PEN&#xff0c;LTGRAY_BRUSH&#xff0c;\u7ed8\u5236\u77e9\u5f62<br \/>\n   2.  \u81ea\u5b9a\u4e49\u7ea2\u8272\u753b\u7b14&#xff0c;NULL_BRUSH&#xff0c;\u692d\u5706<br \/>\n   3.  NULL_PEN&#xff0c;\u5907\u7528\u7070\u8272\u753b\u5237&#xff0c;\u5706\u89d2\u77e9\u5f62<br \/>\n                 \u6c34\u997a\u7f16\u7a0b&#xff0c;2026<br \/>\n  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*\/<\/p>\n<p>#include &lt;windows.h&gt;<\/p>\n<p>LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);<br \/>\nvoid DrawRect(HDC hdc, RECT* pRect);<br \/>\nvoid DrawEllipse(HDC hdc, RECT* pRect);<br \/>\nvoid DrawRoundRect(HDC hdc, RECT* pRect, int nWidth, int nHeight);<\/p>\n<p>int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,<br \/>\n    PSTR szCmdLine, int iCmdShow)<br \/>\n{<br \/>\n    static TCHAR szAppName[] &#061; TEXT(&#034;DrawPadRegion_Lx&#034;);<br \/>\n    HWND         hwnd;<br \/>\n    MSG          msg;<br \/>\n    WNDCLASS     wndclass;<\/p>\n<p>    wndclass.style &#061; CS_HREDRAW | CS_VREDRAW;<br \/>\n    wndclass.lpfnWndProc &#061; WndProc;<br \/>\n    wndclass.cbClsExtra &#061; 0;<br \/>\n    wndclass.cbWndExtra &#061; 0;<br \/>\n    wndclass.hInstance &#061; hInstance;<br \/>\n    wndclass.hIcon &#061; LoadIcon(NULL, IDI_APPLICATION);<br \/>\n    wndclass.hCursor &#061; LoadCursor(NULL, IDC_ARROW);<br \/>\n    wndclass.hbrBackground &#061; (HBRUSH)GetStockObject(WHITE_BRUSH);<br \/>\n    wndclass.lpszMenuName &#061; NULL;<br \/>\n    wndclass.lpszClassName &#061; szAppName;<\/p>\n<p>    if (!RegisterClass(&amp;wndclass))<br \/>\n    {<br \/>\n        MessageBox(NULL, TEXT(&#034;\u6ce8\u518c\u7a97\u53e3\u7c7b\u5931\u8d25&#xff01;&#034;),<br \/>\n            szAppName, MB_ICONERROR);<br \/>\n        return 0;<br \/>\n    }<\/p>\n<p>    hwnd &#061; CreateWindow(szAppName,                  \/\/ window class name<br \/>\n        TEXT(&#034;The DrawPadRegion_Lx Program&#034;), \/\/ window caption<br \/>\n        WS_OVERLAPPEDWINDOW,        \/\/ window style<br \/>\n        CW_USEDEFAULT,              \/\/ initial x position<br \/>\n        CW_USEDEFAULT,              \/\/ initial y position<br \/>\n        CW_USEDEFAULT,              \/\/ initial x size<br \/>\n        CW_USEDEFAULT,              \/\/ initial y size<br \/>\n        NULL,                       \/\/ parent window handle<br \/>\n        NULL,                       \/\/ window menu handle<br \/>\n        hInstance,                  \/\/ program instance handle<br \/>\n        NULL);                     \/\/ creation parameters<\/p>\n<p>    ShowWindow(hwnd, iCmdShow);<br \/>\n    UpdateWindow(hwnd);<\/p>\n<p>    while (GetMessage(&amp;msg, NULL, 0, 0))<br \/>\n    {<br \/>\n        TranslateMessage(&amp;msg);<br \/>\n        DispatchMessage(&amp;msg);<br \/>\n    }<br \/>\n    return msg.wParam;<br \/>\n}<\/p>\n<p>LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)<br \/>\n{<br \/>\n    HDC         hdc;<br \/>\n    PAINTSTRUCT ps;<br \/>\n    static RECT     rect, rect_01, rect_02;<br \/>\n    static  int     nWidth, nHeight;<\/p>\n<p>    switch (message)<br \/>\n    {<br \/>\n    case WM_CREATE:<br \/>\n        rect.left &#061; 100;<br \/>\n        rect.right &#061; 400;<br \/>\n        rect.top &#061; 30;<br \/>\n        rect.bottom &#061; 230;<br \/>\n        rect_01.left &#061; rect.left &#043; 400;<br \/>\n        rect_01.right &#061; rect.right &#043; 400;<br \/>\n        rect_01.top &#061; rect.top;<br \/>\n        rect_01.bottom &#061; rect.bottom;<br \/>\n        rect_02.left &#061; rect.left;<br \/>\n        rect_02.right &#061; rect.right;<br \/>\n        rect_02.top &#061; rect.top &#043; 230;<br \/>\n        rect_02.bottom &#061; rect.bottom &#043; 230;<br \/>\n        nWidth &#061; nHeight &#061; 60;<br \/>\n        return 0;<\/p>\n<p>    case WM_PAINT:<br \/>\n        hdc &#061; BeginPaint(hwnd, &amp;ps);<\/p>\n<p>        DrawRect(hdc, &amp;rect);<br \/>\n        DrawEllipse(hdc, &amp;rect_01);<br \/>\n        DrawRoundRect(hdc, &amp;rect_02, nWidth, nHeight);<\/p>\n<p>        EndPaint(hwnd, &amp;ps);<br \/>\n        return 0;<\/p>\n<p>    case WM_DESTROY:<br \/>\n        PostQuitMessage(0);<br \/>\n        return 0;<br \/>\n    }<br \/>\n    return DefWindowProc(hwnd, message, wParam, lParam);<br \/>\n}<\/p>\n<p>void DrawRect(HDC hdc, RECT* pRect)<br \/>\n{<br \/>\n    HPEN hPen, hOldPen;<br \/>\n    HBRUSH hBrush, hOldBrush;<br \/>\n    hPen &#061; (HPEN)GetStockObject(BLACK_PEN);<br \/>\n    hOldPen &#061; (HPEN)SelectObject(hdc, hPen);<br \/>\n    hBrush &#061; (HBRUSH)GetStockObject(LTGRAY_BRUSH);<br \/>\n    hOldBrush &#061; (HBRUSH)SelectObject(hdc, hBrush);<\/p>\n<p>    Rectangle(hdc, pRect-&gt;left, pRect-&gt;top,<br \/>\n        pRect-&gt;right, pRect-&gt;bottom);<\/p>\n<p>    SelectObject(hdc, hOldPen);<br \/>\n    SelectObject(hdc, hOldBrush);<br \/>\n}<\/p>\n<p>void DrawEllipse(HDC hdc, RECT* pRect)<br \/>\n{<br \/>\n    HPEN hPen, hOldPen;<br \/>\n    HBRUSH hBrush, hOldBrush;<br \/>\n    COLORREF color;<\/p>\n<p>    color &#061; RGB(255, 0, 0);<br \/>\n    hPen &#061; CreatePen(PS_SOLID, 0, color);<br \/>\n    hOldPen &#061; (HPEN)SelectObject(hdc, hPen);<br \/>\n    hBrush &#061; (HBRUSH)GetStockObject(NULL_BRUSH);<br \/>\n    hOldBrush &#061; (HBRUSH)SelectObject(hdc, hBrush);<\/p>\n<p>    Ellipse(hdc, pRect-&gt;left, pRect-&gt;top,<br \/>\n        pRect-&gt;right, pRect-&gt;bottom);<\/p>\n<p>    SelectObject(hdc, hOldPen);<br \/>\n    DeleteObject(hPen);<br \/>\n    SelectObject(hdc, hOldBrush);<br \/>\n}<\/p>\n<p>void DrawRoundRect(HDC hdc, RECT* pRect, int nWidth, int nHeight)<br \/>\n{<br \/>\n    HPEN hPen, hOldPen;<br \/>\n    HBRUSH hBrush, hOldBrush;<\/p>\n<p>    hPen &#061; (HPEN)GetStockObject(NULL_PEN);<br \/>\n    hOldPen &#061; (HPEN)SelectObject(hdc, hPen);<br \/>\n    hBrush &#061; (HBRUSH)GetStockObject(GRAY_BRUSH);<br \/>\n    hOldBrush &#061; (HBRUSH)SelectObject(hdc, hBrush);<\/p>\n<p>    RoundRect(hdc, pRect-&gt;left, pRect-&gt;top,<br \/>\n        pRect-&gt;right, pRect-&gt;bottom,<br \/>\n        nWidth, nHeight);<\/p>\n<p>    SelectObject(hdc, hOldPen);<br \/>\n    SelectObject(hdc, hOldBrush);<br \/>\n} <\/p>\n<p>\u4e0a\u8ff0\u4ee3\u7801\u5462&#xff0c;\u591a\u6570\u5730\u65b9\u5462&#xff0c;\u5e94\u8be5\u90fd\u4e0d\u96be\u3002\u4f46\u662f\u5462&#xff0c;\u8fd8\u662f\u6709\u8fd9\u4e48\u51e0\u4e2a\u5730\u65b9&#xff0c;\u6211\u9700\u8981\u6765\u6307\u51fa\u3002<\/p>\n<h3>&#xff08;\u4e00&#xff09;DrawRect \u51fd\u6570\u8bb2\u89e3<\/h3>\n<p> <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"509\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260828170845-6a91c09d7e3b9.png\" width=\"834\" \/> <\/p>\n<p>   \u56fe1 <\/p>\n<p>\u56fe1 \u4e2d&#xff0c;111 \u884c\u5230 114 \u884c&#xff0c;\u5206\u522b\u662f\u83b7\u53d6\u5907\u7528\u753b\u7b14\u4e0e\u753b\u5237&#xff0c;\u5e76\u4e14\u5c06\u5b83\u4eec\u9009\u5165\u8bbe\u5907\u73af\u5883\u3002\u5728\u8fd9\u91cc\u5462&#xff0c;\u5728\u8c03\u7528 SelectObject \u7684\u65f6\u5019&#xff0c;\u6211\u90fd\u662f\u5c06\u8fd9\u4e2a\u51fd\u6570\u7684\u8fd4\u56de\u503c&#xff0c;\u7ed9\u4fdd\u5b58\u5728\u67d0\u4e2a\u53d8\u91cf\u91cc\u9762\u4e86\u3002\u6211\u5c06\u9009\u5165\u753b\u7b14\u7684 SelectObject \u51fd\u6570\u8c03\u7528\u7684\u8fd4\u56de\u503c\u8d4b\u7ed9\u4e86 hOldPen \u53d8\u91cf&#xff0c;\u5c06\u9009\u5165\u753b\u5237\u7684 SelectObject \u51fd\u6570\u8c03\u7528\u7684\u8fd4\u56de\u503c\u8d4b\u7ed9\u4e86 hOldBrush \u53d8\u91cf\u3002<\/p>\n<p>\u8fd9\u79cd\u5199\u6cd5&#xff0c;\u662f\u6211\u63a8\u8350\u7684\u5199\u6cd5\u3002\u5728\u4f69\u63aa\u5c14\u5fb7\u7684\u539f\u6559\u6750\u4e2d&#xff0c;\u597d\u591a\u65f6\u5019&#xff0c;\u4e5f\u662f\u91c7\u7528\u4e86\u8fd9\u79cd\u5199\u6cd5\u3002<\/p>\n<p>\u5199\u5565\u8981\u5c06 SelectObject \u51fd\u6570\u8c03\u7528\u7684\u8fd4\u56de\u503c\u7ed9\u4fdd\u5b58\u8d77\u6765\u5462&#xff1f;<\/p>\n<p>\u56e0\u4e3a&#xff0c;\u5f53\u6211\u4eec\u4f7f\u7528 GDI \u7ed8\u56fe\u51fd\u6570&#xff0c;\u753b\u5b8c\u4e86\u6211\u4eec\u60f3\u8981\u7ed8\u5236\u7684\u56fe&#xff0c;\u6216\u8005\u662f\u4f7f\u7528\u5b8c\u4e86\u67d0\u4e2a GDI \u5bf9\u8c61\u4ee5\u540e&#xff0c;\u6211\u4eec\u9700\u8981\u5c06\u8fd9\u4e2a GDI \u5bf9\u8c61\u7684\u53e5\u67c4&#xff0c;\u7ed9\u9009\u51fa\u8bbe\u5907\u73af\u5883\u3002\u5728\u56fe1 \u91cc\u9762&#xff0c;\u5f53\u6211\u4eec\u5728 116 \u884c\u8c03\u7528 Rectangle \u51fd\u6570&#xff0c;\u753b\u5b8c\u4e86\u77e9\u5f62\u4ee5\u540e&#xff0c;\u6211\u4eec\u4e34\u65f6\u83b7\u53d6\u7684\u5907\u7528\u753b\u7b14 BLACK_PEN \u548c \u5907\u7528\u753b\u5237 LTGRAY_BRUSH&#xff0c;\u5c31\u5b8c\u6210\u4e86\u5b83\u4eec\u7684\u7ed8\u56fe\u4efb\u52a1\u4e86\u3002\u5b8c\u6210\u4e86\u4ee5\u540e\u5462&#xff0c;\u6211\u4eec\u9700\u8981\u5c06\u5b83\u4eec\u9009\u51fa\u8bbe\u5907\u73af\u5883\u3002<\/p>\n<p>\u4e8e\u662f\u4e4e&#xff0c;\u6211\u4eec\u5c31\u5f97\u8c03\u7528 SelectObject \u51fd\u6570&#xff0c;\u4ee5 hOldPen \u4e3a\u53c2\u6570&#xff0c;\u5c06 BLACK_PEN \u7684\u753b\u7b14\u53e5\u67c4\u7ed9\u9009\u51fa\u8bbe\u5907\u73af\u5883&#xff0c;\u800c\u5c06\u539f\u6765\u7684\u753b\u7b14\u53e5\u67c4\u7ed9\u9009\u5165\u8bbe\u5907\u73af\u5883\u3002\u6211\u4eec\u8fd8\u5f97\u8c03\u7528 SelectObject \u51fd\u6570&#xff0c;\u4ee5 hOldBrush \u4e3a\u53c2\u6570&#xff0c;\u5c06 LTGRAY_BRUSH \u7684\u753b\u5237\u53e5\u67c4\u7ed9\u9009\u51fa\u8bbe\u5907\u73af\u5883&#xff0c;\u800c\u5c06\u539f\u6765\u7684\u753b\u5237\u53e5\u67c4\u7ed9\u9009\u5165\u8bbe\u5907\u73af\u5883\u3002<\/p>\n<p>\u901a\u8fc7\u5c06\u539f\u6765\u7684\u753b\u7b14\u53e5\u67c4\u9009\u5165\u8bbe\u5907\u73af\u5883&#xff0c;\u4e5f\u5c31\u540c\u65f6\u5c06\u73b0\u5728\u6b63\u5728\u4f7f\u7528\u7684\u753b\u7b14\u53e5\u67c4\u7ed9\u9009\u51fa\u8bbe\u5907\u73af\u5883\u4e86\u3002<\/p>\n<p>\u901a\u8fc7\u5c06\u539f\u6765\u7684\u753b\u5237\u53e5\u67c4\u7ed9\u9009\u5165\u8bbe\u5907\u73af\u5883&#xff0c;\u4e5f\u5c31\u540c\u65f6\u5c06\u73b0\u5728\u6b63\u5728\u4f7f\u7528\u7684\u753b\u5237\u53e5\u67c4\u7ed9\u9009\u51fa\u8bbe\u5907\u73af\u5883\u4e86\u3002<\/p>\n<p>\u6211\u4eec\u5b66\u4e60 Windows \u7a0b\u5e8f&#xff0c;\u90a3\u5c31\u9700\u8981\u5efa\u7acb\u4e00\u4e2a\u4e60\u60ef&#xff0c;\u67d0\u4e00\u4e2a GDI \u5bf9\u8c61&#xff0c;\u4f7f\u7528\u5b83\u5b8c\u6210\u4e86\u89c4\u5b9a\u7684\u7ed8\u56fe\u4efb\u52a1\u4ee5\u540e&#xff0c;\u8981\u53ca\u65f6\u5730\u5c06\u5b83\u9009\u51fa\u8bbe\u5907\u73af\u5883&#xff0c;\u540c\u65f6\u5c06\u539f\u6765\u7684\u90a3\u4e2a\u5bf9\u8c61\u53e5\u67c4\u7ed9\u9009\u5165\u8bbe\u5907\u73af\u5883\u3002<\/p>\n<p>\u4e5f\u5c31\u662f\u8bf4&#xff0c;\u5047\u5982\u6211\u4eec\u4f7f\u7528\u67d0\u4e00\u4e2a\u753b\u7b14&#xff0c;\u5b83\u7684\u53e5\u67c4\u88ab\u4fdd\u5b58\u5728 hPen \u4e4b\u4e2d&#xff0c;\u6b64\u753b\u7b14\u88ab\u9009\u5165\u8bbe\u5907\u73af\u5883\u4e4b\u65f6&#xff0c;SelectObject \u8fd4\u56de\u7684\u524d\u4e00\u4e2a\u753b\u7b14\u53e5\u67c4\u88ab\u4fdd\u5b58\u5728 hOldPen \u4e4b\u4e2d&#xff0c;\u90a3\u4e48&#xff0c;\u5f53 hPen \u753b\u7b14\u7684\u7ed8\u56fe\u4efb\u52a1\u5b8c\u6210\u4e86\u4ee5\u540e&#xff0c;\u8981\u53ca\u65f6\u5730\u901a\u8fc7\u51fd\u6570\u8c03\u7528\u3010SelectObject (hdc, hOldPen)\u3011&#xff0c;\u5c06 hPen \u7ed9\u9009\u51fa\u8bbe\u5907\u73af\u5883&#xff0c;\u540c\u65f6\u5c06\u539f\u6765\u7684\u753b\u7b14\u53e5\u67c4 hOldPen \u7ed9\u9009\u5165\u8bbe\u5907\u73af\u5883\u3002<\/p>\n<p>\u540c\u7406&#xff0c;\u5047\u5982\u6211\u4eec\u4f7f\u7528\u67d0\u4e00\u4e2a\u753b\u5237&#xff0c;\u5b83\u7684\u53e5\u67c4\u88ab\u4fdd\u5b58\u5728 hBrush \u4e4b\u4e2d\u56fd&#xff0c;\u6b64\u753b\u5237\u5457\u9009\u5165\u8bbe\u5907\u73af\u5883\u4e4b\u65f6&#xff0c;SelectObject \u8fd4\u56de\u7684\u524d\u4e00\u4e2a\u753b\u5237\u53e5\u67c4\u88ab\u4fdd\u5b58\u5728 hOldBrush\u00a0\u4e4b\u4e2d&#xff0c;\u90a3\u4e48&#xff0c;\u5f53 hBrush\u00a0\u753b\u5237\u7684\u7ed8\u56fe\u4efb\u52a1\u5b8c\u6210\u4e86\u4ee5\u540e&#xff0c;\u8981\u53ca\u65f6\u5730\u901a\u8fc7\u51fd\u6570\u8c03\u7528\u3010SelectObject (hdc, hOldBrush)\u3011&#xff0c;\u5c06 hBrush\u00a0\u7ed9\u9009\u51fa\u8bbe\u5907\u73af\u5883&#xff0c;\u540c\u65f6\u5c06\u539f\u6765\u7684\u753b\u5237\u53e5\u67c4 hOldBrush\u00a0\u7ed9\u9009\u5165\u8bbe\u5907\u73af\u5883\u3002<\/p>\n<p>\u8fd9\u4e0d\u96be\u7406\u89e3\u3002\u597d\u6bd4\u751f\u6d3b\u4e2d&#xff0c;\u6211\u4eec\u60f3\u8981\u5403\u996d\u65f6&#xff0c;\u624d\u5c06\u996d\u83dc\u3001\u9171\u6cb9\u3001\u918b\u7b49\u7b49\u62ff\u5230\u996d\u684c\u4e0a\u3002\u5403\u5b8c\u4e86\u996d\u4ee5\u540e\u5462&#xff0c;\u6211\u4eec\u8fd8\u5f97\u5c06\u5176\u653e\u56de\u53bb&#xff0c;\u653e\u5230\u6a71\u67dc\u91cc\u6216\u8005\u51b0\u7bb1\u91cc\u3002<\/p>\n<p>Windows \u7f16\u7a0b\u7684\u8fd9\u79cd\u9009\u5165\u8bbe\u5907\u73af\u5883&#xff0c;\u4f7f\u7528&#xff0c;\u9009\u51fa\u8bbe\u5907\u73af\u5883\u7684\u6d41\u7a0b&#xff0c;\u6211\u89c9\u5f97\u5f88\u6709\u610f\u601d&#xff0c;\u5927\u5bb6\u5462&#xff0c;\u4e5f\u9700\u8981\u591a\u52a0\u4f53\u4f1a&#xff0c;\u591a\u52a0\u719f\u6089\u3002<\/p>\n<p>\u4e00\u5f00\u59cb\u5462&#xff0c;\u53ef\u80fd\u4f1a\u89c9\u5f97\u4e0d\u4e60\u60ef&#xff0c;\u6709\u70b9\u602a\u3002\u4f46\u662f\u5462&#xff0c;\u4ee3\u7801\u770b\u5f97\u591a\u4e86&#xff0c;\u7ec3\u4e60\u5f97\u591a\u4e86&#xff0c;\u6162\u6162\u5730\u4e5f\u5c31\u4e60\u60ef\u4e86\u3002\u4e60\u60ef\u4e86\u5462&#xff0c;\u4e5f\u5c31\u80fd\u4f1a\u7528\u4e86\u3002<\/p>\n<h3>&#xff08;\u4e8c&#xff09;DrawEllipse \u51fd\u6570\u8bb2\u89e3<\/h3>\n<p>\u5728\u8fd9\u4e2a\u51fd\u6570\u91cc\u9762\u5462&#xff0c;\u6211\u4eec\u91cd\u70b9\u770b\u4e0b\u56fe\u7684\u7ea2\u8272\u6846\u7ebf\u7684\u90e8\u5206\u3002<\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"628\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260828170845-6a91c09df1a76.png\" width=\"798\" \/> <\/p>\n<p>   \u56fe2 <\/p>\n<p>\u5728\u56fe2 \u91cc\u9762\u5462&#xff0c;\u6211\u53ea\u8bb2\u89e3\u7ea2\u8272\u6846\u7ebf\u6240\u793a\u7684 DeleteObject \u51fd\u6570\u7684\u4f7f\u7528\u3002\u5728\u56fe1 \u91cc\u9762&#xff0c;\u6211\u4eec\u5728\u7528\u5b8c\u4e86\u753b\u7b14 BLACK_PEN \u548c\u753b\u5237 LTGRAY_BRUSH \u4e4b\u540e&#xff0c;\u90fd\u7528 SelectObject \u51fd\u6570\u5c06\u5b83\u4eec\u7ed9\u9009\u51fa\u8bbe\u5907\u73af\u5883\u4e86\u3002\u800c\u5728\u56fe2 \u91cc\u9762&#xff0c;\u5728\u7ea2\u8272\u6846\u7ebf\u4e4b\u4e2d&#xff0c;\u5bf9\u4e8e\u753b\u7b14&#xff0c;\u7528\u5b8c\u4e86\u4ee5\u540e&#xff0c;\u4e0d\u4f46\u662f\u7528 SelectObject \u51fd\u6570\u5c06\u5176\u9009\u51fa\u4e86\u8bbe\u5907\u73af\u5883&#xff0c;\u800c\u4e14\u8fd8\u5c06 hPen \u753b\u7b14\u53e5\u67c4\u901a\u8fc7 DeleteObject \u51fd\u6570\u7ed9\u5220\u9664\u4e86\u5b83\u7684\u7ed1\u5b9a\u7684 GDI \u5bf9\u8c61\u3002<\/p>\n<p>\u8bf7\u95ee&#xff0c;\u4e3a\u5565\u5728\u56fe2 \u4e2d&#xff0c;\u5bf9\u4e8e\u753b\u7b14&#xff0c;\u8981\u7528 DelectObject \u5c06\u5176\u5220\u9664\u5462&#xff1f;\u4e3a\u5565\u56fe1 \u4e2d\u7684\u753b\u7b14&#xff0c;\u6ca1\u6709\u5220\u9664\u5b83\u7ed1\u5b9a\u7684\u753b\u7b14\u5bf9\u8c61\u5462&#xff1f;<\/p>\n<p>\u90a3\u662f\u56e0\u4e3a&#xff0c;\u5728\u56fe1 \u4e2d&#xff0c;\u6211\u4eec\u7528\u7684\u753b\u7b14 BLACK_PEN&#xff0c;\u5b83\u662f\u5907\u7528\u753b\u7b14&#xff0c;\u5bf9\u4e8e\u5907\u7528\u753b\u7b14&#xff0c;\u7528\u5b8c\u4e86\u4ee5\u540e&#xff0c;\u6211\u4eec\u9700\u8981\u7528 SelectObject \u51fd\u6570&#xff0c;\u6765\u5c06\u5176\u9009\u51fa\u8bbe\u5907\u73af\u5883&#xff0c;\u4f46\u4e0d\u80fd\u5220\u9664\u5b83\u3002\u56e0\u4e3a\u5907\u7528\u5bf9\u8c61\u4e0d\u80fd\u5220\u9664\u3002\u800c \u56fe2 \u4e2d\u7684\u753b\u7b14&#xff0c;\u5b83\u4e0d\u662f\u5907\u7528\u753b\u7b14&#xff0c;\u800c\u662f\u6211\u4eec\u7528 CreatePen \u51fd\u6570&#xff0c;\u81ea\u5b9a\u4e49\u7684\u753b\u7b14\u3002\u5bf9\u4e8e\u81ea\u5b9a\u4e49\u7684\u753b\u7b14&#xff0c;\u7528\u5b8c\u4e86\u4ee5\u540e&#xff0c;\u4e0d\u4f46\u8981\u4f7f\u7528 SelectObject \u51fd\u6570&#xff0c;\u6765\u5c06\u5176\u9009\u51fa\u8bbe\u5907\u73af\u5883&#xff0c;\u8fd8\u8981\u5728\u9009\u51fa\u4e86\u8bbe\u5907\u73af\u5883\u4ee5\u540e&#xff0c;\u7528 DeleteObject \u51fd\u6570&#xff0c;\u6765\u5c06\u5176\u7ed1\u5b9a\u7684 GDI \u5bf9\u8c61\u7ed9\u5220\u9664\u6389\u3002<\/p>\n<p>\u4e3a\u5565\u8981\u5220\u9664\u6389\u5462&#xff1f;\u5bf9\u4e8e\u81ea\u5b9a\u4e49\u753b\u7b14&#xff0c;\u4ee5\u53ca\u4ee5\u540e\u6211\u4eec\u8981\u53bb\u5b66\u4e60\u7684\u81ea\u5b9a\u4e49\u753b\u5237&#xff0c;\u7528\u5b8c\u4e86\u4ee5\u540e&#xff0c;\u5982\u679c\u4e0d\u5c06\u5176\u5220\u9664\u6389&#xff0c;\u5b83\u4eec\u5c31\u4f1a\u767d\u767d\u5730\u5360\u7528\u5185\u5b58&#xff0c;\u76f4\u5230\u7a0b\u5e8f\u5173\u95ed\u4ee5\u540e&#xff0c;\u5b83\u4eec\u5360\u7528\u7684\u5185\u5b58\u624d\u4f1a\u88ab\u91ca\u653e\u6389\u3002\u5bf9\u4e8e\u8fd9\u79cd\u7ec3\u4e60\u578b\u7a0b\u5e8f&#xff0c;\u6211\u4eec\u6240\u521b\u5efa\u7684\u81ea\u5b9a\u4e49 GDI \u5bf9\u8c61&#xff0c;\u6bd4\u5982\u753b\u7b14&#xff0c;\u5b83\u7684\u6570\u91cf\u8fd8\u4e0d\u662f\u5f88\u591a\u3002<\/p>\n<p>\u53ef\u662f&#xff0c;\u4ee5\u540e\u5728\u5b9e\u9645\u9879\u76ee\u4e2d&#xff0c;\u4f60\u53ef\u80fd\u9700\u8981\u521b\u5efa\u597d\u591a\u597d\u591a\u7684\u81ea\u5b9a\u4e49\u753b\u7b14\u3001\u753b\u5237\u5565\u7684\u3002\u5982\u679c\u7528\u5b8c\u4e86\u4ee5\u540e&#xff0c;\u4e0d\u80fd\u591f\u53ca\u65f6\u5220\u9664\u6389\u5b83\u4eec&#xff0c;\u90a3\u4e48\u5b83\u4eec\u5c31\u4f1a\u767d\u767d\u5730\u5360\u7528\u7740\u5185\u5b58\u3002\u767d\u5360\u7684\u5185\u5b58\u591a\u4e86&#xff0c;\u5bb9\u6613\u9020\u6210\u5185\u5b58\u7684\u767d\u767d\u5730\u6d6a\u8d39&#xff0c;\u8fd8\u53ef\u80fd\u9020\u6210\u5185\u5b58\u788e\u7247\u5565\u7684\u3002<\/p>\n<p>\u5185\u5b58\u662f\u4e00\u79cd\u8d44\u6e90&#xff0c;\u4e5f\u9700\u8981\u7a0b\u5e8f\u5458\u6765\u5408\u7406\u5730\u5206\u914d\u3001\u4f7f\u7528&#xff0c;\u53ca\u65f6\u6e05\u7406\u3002\u4e0d\u53ef\u4ee5\u767d\u767d\u5730\u6d6a\u8d39\u554a\u3002<\/p>\n<p>\u90a3\u4e48&#xff0c;\u5728\u56fe2 \u6240\u793a\u7684\u51fd\u6570 DrawEllipse \u4e2d&#xff0c;\u4e3a\u5565\u5728 140 \u884c&#xff0c;\u5c06\u753b\u5237\u7528 SelectObject \u51fd\u6570\u9009\u51fa\u4e86\u8bbe\u5907\u73af\u5883\u4ee5\u540e&#xff0c;\u6ca1\u6709\u5220\u9664\u5b83\u5462&#xff1f;\u8fd8\u662f\u56e0\u4e3a&#xff0c;\u6211\u4eec\u5728 DrawEllipse \u4e2d&#xff0c;\u6211\u4eec\u6240\u7528\u7684\u753b\u5237\u00a0NULL_BRUSH&#xff0c;\u5b83\u662f\u4e00\u4e2a\u5907\u7528\u753b\u5237\u3002\u5bf9\u4e8e\u5907\u7528\u753b\u5237&#xff0c;\u7528\u5b8c\u4e86\u4ee5\u540e&#xff0c;\u9700\u8981\u5c06\u5176\u9009\u51fa\u8bbe\u5907\u73af\u5883&#xff0c;\u4f46\u4e0d\u80fd\u5c06\u5b83\u5220\u9664\u3002<\/p>\n<p>\u6ce8\u610f\u5462&#xff0c;\u5728\u8fd9\u91cc&#xff0c;\u5bf9\u4e8e\u81ea\u5b9a\u4e49\u753b\u7b14&#xff0c;\u7528\u5b8c\u4e86\u4ee5\u540e&#xff0c;\u4e00\u5b9a\u5f97\u662f\u5148\u5c06\u5176\u9009\u51fa\u8bbe\u5907\u73af\u5883&#xff0c;\u7136\u540e\u624d\u662f\u5c06\u5176\u5220\u9664\u3002\u5982\u679c\u6ca1\u6709\u5c06\u5176\u9009\u51fa\u8bbe\u5907\u73af\u5883&#xff0c;\u800c\u76f4\u63a5\u5c06\u5176\u5220\u9664&#xff0c;\u90a3\u662f\u4e0d\u884c\u7684\u3002<\/p>\n<p>\u53e6\u5916\u5462&#xff0c;\u5728\u56fe1 \u548c\u56fe2 \u6240\u793a\u7684\u7a0b\u5e8f\u4e2d&#xff0c;\u5728\u83b7\u53d6\u5907\u7528\u5bf9\u8c61\u548c\u5c06\u5907\u7528\u5bf9\u8c61\u9009\u5165\u8bbe\u5907\u73af\u5883\u4e2d\u7684\u65f6\u5019&#xff0c;\u6211\u4eec\u5bf9 GetStockObject \u51fd\u6570\u548c SelectObject \u51fd\u6570\u7684\u8fd4\u56de\u503c&#xff0c;\u5747\u8fdb\u884c\u4e86\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362&#xff0c;\u7136\u540e\u624d\u662f\u5c06\u5176\u8d4b\u7ed9\u53e5\u67c4\u53d8\u91cf\u3002\u8fd9\u79cd\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362&#xff0c;\u4e5f\u662f\u9700\u8981\u5927\u5bb6\u6ce8\u610f\u7684\u3002<\/p>\n<p>\u5b66\u4e60\u7f16\u7a0b&#xff0c;\u8fd8\u662f\u8981\u5e94\u8be5\u672c\u7740\u4e13\u4e1a\u3001\u8d1f\u8d23\u7684\u7cbe\u795e&#xff0c;\u6765\u4e66\u5199\u4ee3\u7801\u3002<\/p>\n<p>Windows \u7a0b\u5e8f&#xff0c;\u81ea\u6709\u5176\u4f7f\u7528\u7684\u4e13\u4e1a\u6d41\u7a0b\u4e0e\u79e9\u5e8f&#xff0c;\u8bf7\u5927\u5bb6\u9075\u5b88\u8fd9\u79cd\u79e9\u5e8f\u3002\u5373\u4f7f\u7a0b\u5e8f\u4e0d\u62a5\u9519&#xff0c;\u6211\u4eec\u4e5f\u8981\u517b\u6210\u826f\u597d\u7684\u7de8\u7a0b\u601d\u7ef4\u4e0e\u4e60\u60ef\u3002<\/p>\n<\/p>\n<h2>\u4e09.\u00a0 \u00a0 \u672c\u8282\u4ee3\u7801\u7684\u7f16\u8bd1\u548c\u8fd0\u884c<\/h2>\n<p>\u6211\u5c06\u8fd9\u4e2a\u89e3\u51b3\u65b9\u6848\u4e0e\u9879\u76ee\u7684\u540d\u79f0&#xff0c;\u8bbe\u7f6e\u6210\u4e86\u00a0DrawPadRegion_Lx&#xff0c;\u5c06\u539f\u6587\u4ef6\u4f9d\u7136\u8bbe\u7f6e\u4e3a WinMain.cpp \u3002<\/p>\n<p>\u7136\u540e\u5462&#xff0c;\u5173\u4e8e\u7f16\u8bd1\u65b9\u6cd5&#xff0c;\u5982\u679c\u4f60\u5fd8\u4e86&#xff0c;\u53ef\u4ee5\u53c2\u8003\u4e0b\u9762\u7684\u4e24\u7bc7\u6587\u7ae0\u3002<\/p>\n<p>\u53c2\u8003\u8bfe\u8282&#xff1a;\u4f7f\u7528 VS2010 \u7f16\u5199 C\u8bed\u8a00\u7a0b\u5e8f<\/p>\n<p>\u53c2\u8003\u8bfe\u8282&#xff1a;\u7528 VS2019 \u7f16\u5199C\u8bed\u8a00\u7a0b\u5e8f<\/p>\n<p>\u672c\u8282\u4ee3\u7801\u7684\u8fd0\u884c\u7ed3\u679c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"669\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260828170846-6a91c09e30e58.png\" width=\"1115\" \/> <\/p>\n<p>   \u56fe1 <\/p>\n<h2>\u7ed3\u675f\u8bed<\/h2>\n<p>\u4e0e\u4f69\u63aa\u5c14\u5fb7\u5148\u751f\u7684\u6559\u6750\u76f8\u6bd4&#xff0c;\u6211\u8fd9\u91cc&#xff0c;\u591a\u7ed9\u4e86\u4e00\u70b9\u4ee3\u7801\u6848\u4f8b\u3002<\/p>\n<p>\u6211\u89c9\u5f97&#xff0c;\u5f88\u591a\u65f6\u5019&#xff0c;\u6211\u7ed9\u7684\u4ee3\u7801\u6848\u4f8b&#xff0c;\u5e94\u8be5\u90fd\u4f1a\u6bd4\u4f69\u63aa\u5c14\u5fb7\u7684\u4ee3\u7801&#xff0c;\u8981\u7b80\u5355\u8bb8\u591a\u3002<\/p>\n<p>\u56e0\u4e3a&#xff0c;\u6211\u8fd9\u4f1a\u513f&#xff0c;\u4e5f\u5199\u4e0d\u51fa\u6765\u592a\u96be&#xff0c;\u6c34\u5e73\u592a\u9ad8\u7684\u4ee3\u7801\u3002\u4e0d\u8fc7\u662f\u4e9b\u57fa\u7840\u7684\u4ee3\u7801\u800c\u5df2\u3002<\/p>\n<p>\u5f3a\u8c03\u4e00\u4e0b&#xff0c;\u5bf9\u4e8e\u5907\u7528\u753b\u7b14\u3001\u753b\u5237\u7b49\u7b49\u7684 GDI \u5bf9\u8c61&#xff0c;\u7528\u5b8c\u4e86\u4ee5\u540e&#xff0c;\u8981\u5c06\u5b83\u4eec\u9009\u51fa\u8bbe\u5907\u73af\u5883&#xff0c;\u4f46\u4e0d\u80fd\u5220\u9664\u5b83\u4eec\u3002<\/p>\n<p>\u5bf9\u4e8e\u81ea\u5b9a\u4e49\u753b\u7b14\u3001\u753b\u5237\u7b49\u7b49\u7684 GDI \u5bf9\u8c61&#xff0c;\u7528\u5b8c\u4e86\u4ee5\u540e&#xff0c;\u8981\u5c06\u5b83\u4eec\u9009\u51fa\u8bbe\u5907\u73af\u5883&#xff0c;\u7136\u540e\u8fd8\u8981\u5c06\u5176\u5220\u9664\u6389\u3002\u9009\u51fa\u5728\u524d&#xff0c;\u5220\u9664\u5728\u540e&#xff0c;\u987a\u5e8f\u4e0d\u8981\u4e71\u6389\u3002<\/p>\n<\/p>\n<p>\u5e0c\u671b\u4f60\u80fd\u591f\u5b66\u597d\u672c\u8282\u77e5\u8bc6\u3002<\/p>\n<p>\u672c\u8282\u4ee3\u7801\u5462&#xff0c;\u6211\u4f1a\u5c06\u5176\u653e\u5728\u4ee3\u7801\u4ed3\u5e93\u91cc\u9762\u3002<\/p>\n<p>\u4ee5\u4e0b\u8bfe\u8282\u63d0\u4f9b\u4e86\u4ee3\u7801\u4ed3\u5e93\u7684\u4f4d\u7f6e\u3002<\/p>\n<p>\u53c2\u8003\u8bfe\u8282&#xff1a;MFC\u7b14\u8bb0&#xff1a;\u672c\u4e13\u680f\u8bfe\u4ef6<\/p>\n<p>\u597d\u4e86&#xff0c;\u672c\u8282\u7ed3\u675f\u3002<\/p>\n<\/p>\n<h2 style=\"background-color:transparent\">\u4e13\u680f\u5bfc\u822a<\/h2>\n<p>\u4e0a\u4e00\u7bc7&#xff1a;\u7b2c5\u7ae0&#xff0c;[Win32 \u7ae0\u8282] &#xff1a;\u7ed8\u56fe\u6a21\u5f0f<\/p>\n<p>\u56de\u5230\u76ee\u5f55<\/p>\n<p>\u4e0b\u4e00\u7bc7&#xff1a;\u7b2c5\u7ae0&#xff0c;[Win32 \u7ae0\u8282] &#xff1a;Polygon \u51fd\u6570\u548c\u591a\u8fb9\u5f62\u586b\u5145\u6a21\u5f0f<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e13\u680f\u5bfc\u822a<br \/>\n\u4e0a\u4e00\u7bc7&#xff1a;\u7b2c5\u7ae0&#xff0c;[Win32 \u7ae0\u8282] &#xff1a;\u7ed8\u56fe\u6a21\u5f0f<br \/>\n\u56de\u5230\u76ee\u5f55<br \/>\n\u4e0b\u4e00\u7bc7&#xff1a;\u7b2c5\u7ae0&#xff0c;[Win32 \u7ae0\u8282] &#xff1a;Polygon \u51fd\u6570\u548c\u591a\u8fb9\u5f62\u586b\u5145\u6a21\u5f0f<br \/>\n\u672c\u8282\u524d\u8a00<br \/>\n\u5bf9\u4e8e\u672c\u8282\u6240\u8bb2\u89e3\u7684\u77e5\u8bc6&#xff0c;\u6709\u53ef\u80fd&#xff0c;\u4f60\u4f1a\u9700\u8981\u65f6\u4e0d\u65f6\u5730\u53c2\u8003\u672c\u4e13\u680f\u7684\u5176\u5b83\u6587\u7ae0\u3002\u771f\u7684\u9047\u5230\u4e86\u9700\u8981\u53c2\u8003\u4e4b\u524d\u7684\u6587\u7ae0\u7684\u77e5\u8bc6\u70b9&#xff0c;\u8bf7\u4f60\u81ea\u884c\u67e5\u9605\u3002<br \/>\n\u6211\u5462&#xff0c;\u4e5f\u4f1a\u63d0\u5230\u4e00\u90e8\u5206\u7684\u53c2\u8003\u8bfe\u8282\u3002\u4f46\u662f\u5462&amp;#xff<\/p>\n","protected":false},"author":2,"featured_media":97063,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,174,790,149],"topic":[],"class_list":["post-97066","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-c","tag-visual-studio","tag-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7b2c5\u7ae0\uff0c[Win32 \u7ae0\u8282] \uff1a\u7ed8\u5236\u586b\u5145\u533a\u57df - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/97066.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7b2c5\u7ae0\uff0c[Win32 \u7ae0\u8282] \uff1a\u7ed8\u5236\u586b\u5145\u533a\u57df - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e13\u680f\u5bfc\u822a \u4e0a\u4e00\u7bc7&#xff1a;\u7b2c5\u7ae0&#xff0c;[Win32 \u7ae0\u8282] &#xff1a;\u7ed8\u56fe\u6a21\u5f0f \u56de\u5230\u76ee\u5f55 \u4e0b\u4e00\u7bc7&#xff1a;\u7b2c5\u7ae0&#xff0c;[Win32 \u7ae0\u8282] &#xff1a;Polygon \u51fd\u6570\u548c\u591a\u8fb9\u5f62\u586b\u5145\u6a21\u5f0f \u672c\u8282\u524d\u8a00 \u5bf9\u4e8e\u672c\u8282\u6240\u8bb2\u89e3\u7684\u77e5\u8bc6&#xff0c;\u6709\u53ef\u80fd&#xff0c;\u4f60\u4f1a\u9700\u8981\u65f6\u4e0d\u65f6\u5730\u53c2\u8003\u672c\u4e13\u680f\u7684\u5176\u5b83\u6587\u7ae0\u3002\u771f\u7684\u9047\u5230\u4e86\u9700\u8981\u53c2\u8003\u4e4b\u524d\u7684\u6587\u7ae0\u7684\u77e5\u8bc6\u70b9&#xff0c;\u8bf7\u4f60\u81ea\u884c\u67e5\u9605\u3002 \u6211\u5462&#xff0c;\u4e5f\u4f1a\u63d0\u5230\u4e00\u90e8\u5206\u7684\u53c2\u8003\u8bfe\u8282\u3002\u4f46\u662f\u5462&amp;#xff\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/97066.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-28T17:08:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260828170845-6a91c09d7e3b9.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/97066.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/97066.html\",\"name\":\"\u7b2c5\u7ae0\uff0c[Win32 \u7ae0\u8282] \uff1a\u7ed8\u5236\u586b\u5145\u533a\u57df - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-28T17:08:47+00:00\",\"dateModified\":\"2026-08-28T17:08:47+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/97066.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/97066.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/97066.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7b2c5\u7ae0\uff0c[Win32 \u7ae0\u8282] \uff1a\u7ed8\u5236\u586b\u5145\u533a\u57df\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7b2c5\u7ae0\uff0c[Win32 \u7ae0\u8282] \uff1a\u7ed8\u5236\u586b\u5145\u533a\u57df - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/97066.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7b2c5\u7ae0\uff0c[Win32 \u7ae0\u8282] \uff1a\u7ed8\u5236\u586b\u5145\u533a\u57df - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e13\u680f\u5bfc\u822a \u4e0a\u4e00\u7bc7&#xff1a;\u7b2c5\u7ae0&#xff0c;[Win32 \u7ae0\u8282] &#xff1a;\u7ed8\u56fe\u6a21\u5f0f \u56de\u5230\u76ee\u5f55 \u4e0b\u4e00\u7bc7&#xff1a;\u7b2c5\u7ae0&#xff0c;[Win32 \u7ae0\u8282] &#xff1a;Polygon \u51fd\u6570\u548c\u591a\u8fb9\u5f62\u586b\u5145\u6a21\u5f0f \u672c\u8282\u524d\u8a00 \u5bf9\u4e8e\u672c\u8282\u6240\u8bb2\u89e3\u7684\u77e5\u8bc6&#xff0c;\u6709\u53ef\u80fd&#xff0c;\u4f60\u4f1a\u9700\u8981\u65f6\u4e0d\u65f6\u5730\u53c2\u8003\u672c\u4e13\u680f\u7684\u5176\u5b83\u6587\u7ae0\u3002\u771f\u7684\u9047\u5230\u4e86\u9700\u8981\u53c2\u8003\u4e4b\u524d\u7684\u6587\u7ae0\u7684\u77e5\u8bc6\u70b9&#xff0c;\u8bf7\u4f60\u81ea\u884c\u67e5\u9605\u3002 \u6211\u5462&#xff0c;\u4e5f\u4f1a\u63d0\u5230\u4e00\u90e8\u5206\u7684\u53c2\u8003\u8bfe\u8282\u3002\u4f46\u662f\u5462&amp;#xff","og_url":"https:\/\/www.wsisp.com\/helps\/97066.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-28T17:08:47+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260828170845-6a91c09d7e3b9.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/97066.html","url":"https:\/\/www.wsisp.com\/helps\/97066.html","name":"\u7b2c5\u7ae0\uff0c[Win32 \u7ae0\u8282] \uff1a\u7ed8\u5236\u586b\u5145\u533a\u57df - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-28T17:08:47+00:00","dateModified":"2026-08-28T17:08:47+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/97066.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/97066.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/97066.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7b2c5\u7ae0\uff0c[Win32 \u7ae0\u8282] \uff1a\u7ed8\u5236\u586b\u5145\u533a\u57df"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/97066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=97066"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/97066\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/97063"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=97066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=97066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=97066"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=97066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}