{"id":100072,"date":"2026-09-03T20:56:57","date_gmt":"2026-09-03T12:56:57","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/100072.html"},"modified":"2026-09-03T20:56:57","modified_gmt":"2026-09-03T12:56:57","slug":"%e7%ac%ac5%e7%ab%a0%ef%bc%8cwin32-%e7%ab%a0%e8%8a%82-%ef%bc%9a%e7%bb%83%e4%b9%a0%e7%a8%8b%e5%ba%8f%ef%bc%8clittlefontpic","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/100072.html","title":{"rendered":"\u7b2c5\u7ae0\uff0c[Win32 \u7ae0\u8282] \uff1a\u7ec3\u4e60\u7a0b\u5e8f\uff0cLittleFontPic"},"content":{"rendered":"<h2>\u4e13\u680f\u5bfc\u822a<\/h2>\n<p>\u4e0a\u4e00\u7bc7&#xff1a;\u7b2c5\u7ae0&#xff0c;[Win32 \u7ae0\u8282] &#xff1a;\u7528\u753b\u5237\u586b\u5145\u5185\u90e8<\/p>\n<p>\u56de\u5230\u76ee\u5f55<\/p>\n<p>\u4e0b\u4e00\u7bc7&#xff1a;\u7b2c5\u7ae0&#xff0c;[Win32 \u7ae0\u8282] &#xff1a;\u7ec3\u4e60\u7a0b\u5e8f&#xff0c;BigFontPic<\/p>\n<h2>\u672c\u4e13\u680f\u8bfe\u4ef6<\/h2>\n<p>\u5173\u4e8e\u672c\u4e13\u680f\u8bfe\u4ef6\u7684\u83b7\u53d6\u65b9\u6cd5&#xff0c;\u8bf7\u53c2\u8003\u4e0b\u8ff0\u8bfe\u8282\u3002<\/p>\n<p>\u53c2\u8003\u8bfe\u8282&#xff1a;MFC\u7b14\u8bb0&#xff1a;\u672c\u4e13\u680f\u8bfe\u4ef6<\/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>\u7ecf\u8fc7\u4e4b\u524d\u7684\u51e0\u4e2a\u8bfe\u8282\u7684\u8bb2\u89e3&#xff0c;\u6211\u4eec\u5df2\u7ecf\u662f\u5c06 GDI \u753b\u7b14\u548c\u753b\u5237&#xff0c;\u4ee5\u53ca\u5176\u4ed6\u7684\u8bb8\u591a\u7684\u57fa\u7840 GDI \u77e5\u8bc6\u7ed9\u8bb2\u5b8c\u4e86\u3002\u5b66\u5230\u8fd9\u79cd\u7a0b\u5ea6&#xff0c;\u6211\u4eec\u53ef\u4ee5\u753b\u4e00\u4e9b\u4e2a\u56fe\u5f62\u4e86\u3002<\/p>\n<p>\u4ece\u672c\u8282\u8bfe\u5f00\u59cb&#xff0c;\u6211\u4eec\u6765\u9886\u7740\u5927\u5bb6&#xff0c;\u4e00\u8d77\u6765\u5b66\u4e60\u4e00\u4e9b\u4e2a\u7ed8\u5236\u56fe\u5f62\u7684\u4ee3\u7801&#xff0c;\u4ece\u4e2d\u6765\u5b66\u4e60 GDI \u7ed8\u56fe\u7684\u903b\u8f91&#xff0c;\u5b66\u4e60 GDI \u753b\u7b14\u3001\u753b\u5237\u7b49\u7b49\u7684 GDI \u5bf9\u8c61\u7684\u4f7f\u7528\u65b9\u6cd5\u4e0e\u6d41\u7a0b&#xff0c;\u5b66\u4e60 GDI \u5bf9\u8c61\u7684\u521b\u5efa\u3001\u9009\u5165\u8bbe\u5907\u73af\u5883\u3001\u9009\u51fa\u8bbe\u5907\u73af\u5883\u3001\u5220\u9664\u7b49\u7b49\u7684\u6d41\u7a0b&#xff0c;\u5e76\u7531\u6b64\u6765\u4f53\u9a8c Windows \u7f16\u7a0b\u7684\u4e13\u4e1a\u6027\u3002<\/p>\n<p>\u6211\u672c\u4eba\u7684 PhotoShop \u5b66\u5f97\u4e00\u822c&#xff0c;\u6709\u4e9b\u4e2a\u56fe\u753b&#xff0c;\u6211\u89c9\u5f97\u5f88\u96be\u753b\u51fa\u6765\u3002\u7136\u800c&#xff0c;\u6709\u4e86 Windows \u7f16\u7a0b&#xff0c;\u6211\u5012\u662f\u53ef\u4ee5\u901a\u8fc7\u7f16\u7a0b\u7684\u65b9\u5f0f&#xff0c;\u6765\u7ed8\u5236\u51fa\u4e00\u4e9b\u4e2a\u56fe\u5f62\u6765\u3002<\/p>\n<p>\u6211\u60f3&#xff0c;\u7528 Windows \u7a0b\u5e8f\u8bbe\u8ba1\u7684\u77e5\u8bc6\u6765\u7ed8\u5236\u56fe\u8868&#xff0c;\u5e94\u8be5\u4f1a\u5bf9\u5404\u4f4d\u4e5f\u80fd\u6709\u4e00\u5b9a\u7684\u5e2e\u52a9\u7684\u3002<\/p>\n<p><span style=\"color:#fe2c24\">\u672c\u8282\u5185\u5bb9&#xff0c;\u662f\u6211\u7684\u539f\u521b\u5185\u5bb9&#xff0c;\u800c\u975e\u4f69\u63aa\u5c14\u5fb7\u539f\u6559\u6750\u7684\u5185\u5bb9\u3002<\/span><\/p>\n<\/p>\n<h2>\u4e00.\u00a0 \u00a0 \u4f69\u63aa\u5c14\u5fb7\u539f\u6559\u6750\u63d2\u56fe\u5206\u6790<\/h2>\n<p>\u5728\u4e4b\u524d\u7684\u67d0\u4e2a\u8bfe\u8282&#xff0c;\u6211\u4eec\u5728\u8bfe\u8282\u4e2d\u7ed9\u51fa\u4e86\u4e0b\u8ff0\u7684\u56fe\u7247\u3002<\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"610\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903125655-6a996e9712a9a.png\" width=\"1024\" \/> <\/p>\n<p>  \u56fe1<\/p>\n<p>\u8fd9\u4e00\u8bfe\u8282\u7684\u94fe\u63a5\u5982\u4e0b\u3002<\/p>\n<p>\u53c2\u8003\u8bfe\u8282&#xff1a;\u7b2c4\u7ae0&#xff0c;[\u6807\u7b7e Win32] &#xff1a;\u6587\u672c\u5c3a\u5bf8\u7684\u5ea6\u91cf<\/p>\n<p>\u63a5\u4e0b\u6765&#xff0c;\u6211\u6765\u5c06\u4f69\u63aa\u5c14\u5fb7\u539f\u6559\u6750\u7684\u56fe\u7247\u5185\u5bb9\u7ed9\u622a\u56fe&#xff0c;\u7136\u540e\u8d34\u5728\u4e0b\u9762\u3002<\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"618\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903125655-6a996e9757f4b.png\" width=\"1027\" \/> <\/p>\n<p>  \u56fe2&#xff0c;\u4f69\u63aa\u5c14\u5fb7\u6559\u6750\u539f\u56fe<\/p>\n<p>\u4f69\u63aa\u5c14\u5fb7\u539f\u6559\u6750\u4e2d\u7684\u63d2\u56fe&#xff0c;\u6211\u6ca1\u6709\u901a\u8fc7\u622a\u56fe\u7684\u65b9\u5f0f&#xff0c;\u5c06\u5176\u653e\u7f6e\u5728\u53c2\u8003\u8bfe\u8282\u4e2d&#xff0c;\u800c\u662f\u901a\u8fc7\u7f16\u7a0b\u7684\u65b9\u5f0f&#xff0c;\u5c06\u5b83\u7684\u57fa\u672c\u7684\u4e1c\u897f\u7ed8\u5236\u51fa\u6765&#xff0c;\u7136\u540e\u901a\u8fc7 PhotoShop \u8fdb\u884c\u8865\u5145\u7ed8\u5236\u3002\u7ed8\u5236\u597d\u4e86\u4ee5\u540e&#xff0c;\u653e\u5728\u4e86\u8bfe\u8282\u91cc\u9762\u3002<\/p>\n<p>\u4e0b\u9762\u7684\u56fe\u7247&#xff0c;\u662f\u6211\u7528\u7f16\u7a0b\u7684\u65b9\u5f0f&#xff0c;\u7ed8\u5236\u51fa\u6765\u7684\u57fa\u672c\u56fe\u3002<\/p>\n<p> <img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903125655-6a996e97a5e96.png\" \/> <\/p>\n<p>  \u56fe3<\/p>\n<p>\u5728\u7f16\u7a0b\u4e4b\u524d&#xff0c;\u6211\u662f\u81ea\u5df1\u7528\u94c5\u7b14&#xff0c;\u7ed3\u5408\u7740\u89c2\u5bdf&#xff0c;\u53bb\u7ed9\u4f69\u63aa\u5c14\u5fb7\u7684\u539f\u6559\u6750\u7684\u63d2\u56fe\u67e5\u6570&#xff0c;\u67e5\u51fa\u4e86\u539f\u63d2\u56fe\u4e2d&#xff0c;\u4e00\u884c\u91cc\u9762&#xff0c;\u6709\u591a\u5c11\u4e2a\u6a21\u62df\u50cf\u7d20\u65b9\u683c&#xff0c;\u4e00\u5217\u91cc\u9762&#xff0c;\u6709\u591a\u5c11\u4e2a\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u3002<\/p>\n<p>\u67e5\u8be2\u7684\u7ed3\u679c\u662f&#xff0c;<span style=\"color:#1a439c\">\u4f69\u63aa\u5c14\u5fb7\u539f\u6559\u6750\u7684\u63d2\u56fe\u4e2d&#xff0c;\u4e00\u884c\u6709 15 \u4e2a\u50cf\u7d20\u65b9\u683c&#xff0c;\u4e00\u5217\u6709 16 \u4e2a\u65b9\u683c\u3002<\/span><\/p>\n<p>\u60f3\u8981\u5c06\u5176\u7ed8\u5236\u51fa\u6765&#xff0c;\u6211\u9700\u8981\u7ed8\u5236\u4e00\u4e2a\u65b9\u683c\u77e9\u9635&#xff0c;<span style=\"color:#1a439c\">\u4e00\u4e2a 16 \u884c\u300115 \u5217<\/span>\u7684\u65b9\u683c\u77e9\u9635\u3002<\/p>\n<p>\u5728\u8fd9\u4e2a\u65b9\u683c\u77e9\u9635\u4e2d&#xff0c;\u6709\u7684\u65b9\u683c\u9700\u8981\u6d82\u4e0a\u989c\u8272&#xff0c;\u6709\u7684\u5219\u662f\u4e0d\u9700\u8981\u6d82\u989c\u8272\u3002\u6d82\u8272\u7684\u90e8\u5206&#xff0c;\u53ef\u4ee5\u7edf\u4e00\u5730\u91c7\u7528\u540c\u4e00\u79cd\u989c\u8272\u3002\u8fd9\u6837\u4e00\u6765&#xff0c;\u6574\u4e2a\u7684\u65b9\u683c\u77e9\u9635&#xff0c;\u6211\u4eec\u53ef\u4ee5\u5c06\u5176\u5206\u6210\u4e24\u4e2a\u90e8\u5206&#xff0c;\u4e00\u4e2a\u662f\u4e0d\u6d82\u8272\u7684\u90e8\u5206&#xff0c;\u6211\u4eec\u53ef\u4ee5\u5c06\u5176\u6807\u8bb0\u4e3a 0&#xff1b;\u53e6\u4e00\u4e2a\u90e8\u5206\u662f\u6d82\u8272\u7684\u90e8\u5206&#xff0c;\u6211\u4eec\u53ef\u4ee5\u5c06\u5176\u6807\u8bb0\u4e3a 1 \u3002<\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u5efa\u7acb\u4e00\u4e2a\u4e8c\u7ef4\u6570\u7ec4&#xff0c;\u5b83\u7684\u4e00\u7ef4\u7684\u4e2a\u6570&#xff0c;\u5bf9\u5e94\u7740\u65b9\u683c\u77e9\u9635\u7684\u5217\u6570&#xff0c;15 \u5217&#xff1b;\u5b83\u7684\u4e8c\u7ef4\u7684\u4e2a\u6570&#xff0c;\u5bf9\u5e94\u7740\u65b9\u683c\u77e9\u9635\u7684\u884c\u6570&#xff0c;16 \u884c\u3002<\/p>\n<p>\u8fd9\u4e2a\u4e8c\u7ef4\u6570\u7ec4\u7684\u540d\u5b57\u5982\u4e0b\u3002<\/p>\n<p><span style=\"color:#1a439c\">BOOL Square[16][15];<\/span><\/p>\n<p>Square[3][10] \u4ee3\u8868\u7740\u539f\u63d2\u56fe\u4e2d 3 \u53f7\u884c\u300110 \u53f7\u5217\u7684\u6a21\u62df\u50cf\u7d20\u65b9\u683c&#xff0c;\u7531\u4e8e\u6570\u7ec4\u5143\u7d20\u7684\u7d22\u5f15\u4ece 0 \u5f00\u59cb&#xff0c;\u6240\u4ee5\u5462&#xff0c;\u5b83\u5b9e\u9645\u4e0a\u5bf9\u5e94\u7740\u539f\u63d2\u56fe\u4e2d\u7684\u7b2c 4 \u884c\u3001\u7b2c 11 \u5217\u7684\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u3002\u5176\u503c&#xff0c;\u4ee3\u8868\u7740\u8fd9\u4e2a\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u662f\u5426\u6d82\u8272&#xff0c;1 \u5219\u6d82\u8272&#xff0c;0 \u5219\u4e0d\u6d82\u8272\u3002<\/p>\n<p>\u540c\u7406&#xff0c;Square[6][7] \u4ee3\u8868\u7740\u539f\u63d2\u56fe\u4e2d 6\u00a0\u53f7\u884c\u30017\u00a0\u53f7\u5217\u7684\u6a21\u62df\u50cf\u7d20\u65b9\u683c&#xff0c;\u7531\u4e8e\u6570\u7ec4\u5143\u7d20\u7684\u7d22\u5f15\u4ece 0 \u5f00\u59cb&#xff0c;\u6240\u4ee5\u5462&#xff0c;\u5b83\u5b9e\u9645\u4e0a\u5bf9\u5e94\u7740\u539f\u63d2\u56fe\u4e2d\u7684\u7b2c 7\u00a0\u884c\u3001\u7b2c 8\u00a0\u5217\u7684\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u3002\u5176\u503c&#xff0c;\u4ee3\u8868\u7740\u8fd9\u4e2a\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u662f\u5426\u6d82\u8272&#xff0c;1 \u5219\u6d82\u8272&#xff0c;0 \u5219\u4e0d\u6d82\u8272\u3002<\/p>\n<p>\u8fd9\u6837\u4e00\u6765&#xff0c;\u6211\u4eec\u5c31\u901a\u8fc7\u4e8c\u7ef4\u6570\u7ec4&#xff0c;\u5bf9\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u7684\u6d82\u8272\u4e0e\u5426&#xff0c;\u8fdb\u884c\u4e86\u5efa\u6a21\u3002<\/p>\n<p>\u53bb\u7f16\u7a0b\u7684\u65f6\u5019&#xff0c;\u6211\u4eec\u7684\u4e13\u680f\u4e2d\u7ed9\u51fa\u7684\u56fe\u7247&#xff0c;\u4e3a\u4e86\u8ba9\u5927\u5bb6\u8f83\u4e3a\u6e05\u695a\u5730\u770b\u51fa\u539f\u63d2\u56fe\u7684\u884c\u5217&#xff0c;\u6211\u4eec\u7528\u865a\u7ebf&#xff0c;\u5bf9\u6846\u67b6\u8fdb\u884c\u4e86\u7ed8\u5236\u3002\u7528\u865a\u7ebf\u53bb\u7ed8\u5236&#xff0c;\u800c\u4e0d\u662f\u7528\u5b9e\u7ebf\u53bb\u7ed8\u5236&#xff0c;\u6240\u4ee5&#xff0c;\u6211\u4eec\u9700\u8981\u81ea\u5b9a\u4e49\u753b\u7b14&#xff0c;\u9700\u8981\u4f7f\u7528\u753b\u7b14\u53e5\u67c4 hPen \u3002<\/p>\n<p>\u5bf9\u4e8e\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u7684 16 \u884c\u300115 \u5217\u7684\u6846\u67b6&#xff0c;\u6211\u4eec\u91c7\u7528 MoveToEx \u548c LineTo \u51fd\u6570&#xff0c;\u901a\u8fc7\u753b\u7ebf\u7684\u65b9\u5f0f&#xff0c;\u5c06\u5176\u7ed8\u5236\u4e86\u51fa\u6765\u3002\u5982\u56fe1 \u6240\u793a&#xff0c;\u6211\u4eec\u5728\u7ed8\u5236\u6846\u67b6\u7684\u65f6\u5019&#xff0c;\u7ebf\u6761\u7684\u989c\u8272\u662f\u7ea2\u8272\u3002\u7531\u6b64&#xff0c;\u6211\u4eec\u8fd8\u9700\u8981\u81ea\u884c\u521b\u5efa\u753b\u5237&#xff0c;\u5e76\u5c06\u753b\u5237\u7684\u989c\u8272\u8bbe\u7f6e\u4e3a\u7ea2\u8272\u3002<\/p>\n<p>\u5728\u5177\u4f53\u7ed8\u5236\u7684\u65f6\u5019&#xff0c;\u6211\u4eec\u662f\u5148\u7528\u00a0MoveToEx \u548c LineTo \u51fd\u6570&#xff0c;\u6765\u5c06\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u7684\u6846\u67b6\u7ed9\u7ed8\u5236\u4e86\u51fa\u6765\u3002<\/p>\n<p>\u6846\u67b6\u753b\u5b8c\u4e86\u4ee5\u540e&#xff0c;\u6211\u4eec\u63a5\u7740\u53bb\u7ed9\u65b9\u683c\u77e9\u9635\u6d82\u8272\u3002<\/p>\n<p>\u5982\u524d\u6240\u8ff0&#xff0c;\u6211\u4eec\u5df2\u7ecf\u662f\u901a\u8fc7\u4e8c\u7ef4\u6570\u7ec4\u00a0Square[6][7]&#xff0c;\u6765\u5bf9\u539f\u63d2\u56fe\u4e2d\u7684\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u8fdb\u884c\u4e86\u5efa\u6a21\u3002\u539f\u63d2\u56fe\u7684\u4efb\u4f55\u4e00\u4e2a\u50cf\u7d20\u65b9\u683c&#xff0c;\u5b83\u90fd\u8981\u4e0e\u4e8c\u7ef4\u6570\u7ec4\u4e2d\u7684\u5143\u7d20\u4e00\u4e00\u5bf9\u5e94\u3002\u5e76\u4e14\u5462&#xff0c;\u5982\u679c\u539f\u63d2\u56fe\u4e2d\u7684\u67d0\u4e00\u4f4d\u7f6e\u6d82\u8272\u6216\u4e0d\u6d82\u8272&#xff0c;\u4e5f\u90fd\u8981\u4e0e\u4e8c\u7ef4\u6570\u7ec4\u7684\u5bf9\u5e94\u5143\u7d20\u7684\u503c\u76f8\u5bf9\u5e94&#xff0c;\u4e0d\u5f97\u6709\u8bef\u3002\u539f\u63d2\u56fe\u4e2d\u7684\u67d0\u4e00\u4e2a\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u4e0d\u6d82\u8272&#xff0c;\u5219\u8981\u5728\u4e8c\u7ef4\u6570\u7ec4\u4e2d\u5c06\u67d0\u4e00\u5143\u7d20\u6807\u8bb0\u4e3a 0&#xff1b;\u00a0\u539f\u63d2\u56fe\u4e2d\u7684\u67d0\u4e00\u4e2a\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u6d82\u8272&#xff0c;\u5219\u8981\u5728\u4e8c\u7ef4\u6570\u7ec4\u4e2d\u5c06\u67d0\u4e00\u5143\u7d20\u6807\u8bb0\u4e3a 1\u3002\u00a0<\/p>\n<p>\u5bf9\u4e8e\u4e8c\u7ef4\u6570\u7ec4\u00a0Square[6][7]&#xff0c;\u6211\u4eec\u662f\u5728\u58f0\u660e\u7684\u65f6\u5019&#xff0c;\u76f4\u63a5\u5bf9\u5176\u8fdb\u884c\u4e86\u521d\u59cb\u5316\u3002\u8fd9\u6837&#xff0c;\u5728\u7ed9\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u6d82\u8272\u7684\u65f6\u5019&#xff0c;\u6211\u4eec\u662f\u901a\u8fc7\u4e24\u5c42\u7684 for \u5faa\u73af&#xff0c;\u6765\u904d\u5386\u00a0Square[6][7] \u7684\u6bcf\u4e00\u4e2a\u5143\u7d20&#xff0c;\u6839\u636e\u5143\u7d20\u503c\u7684 0 \u548c 1&#xff0c;\u6765\u51b3\u5b9a\u662f\u5426\u5bf9\u67d0\u4e00\u4e2a\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u6d82\u8272\u3002<\/p>\n<p>\u5728\u7ed9\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u6d82\u8272\u7684\u65f6\u5019&#xff0c;\u5982\u56fe1 \u6240\u793a&#xff0c;\u6211\u4eec\u6240\u6d82\u7684\u989c\u8272&#xff0c;\u662f\u84dd\u8272\u3002\u8fd9\u4e2a\u5462&#xff0c;\u5c31\u9700\u8981\u53e6\u5916\u4e00\u4e2a\u753b\u5237\u4e86\u3002<\/p>\n<p>\u540c\u4e00\u4e2a\u7a0b\u5e8f\u4e2d&#xff0c;\u6211\u4eec\u7684\u786e\u662f\u53ef\u4ee5\u4f7f\u7528\u4e24\u4e2a\u753b\u5237\u53e5\u67c4\u53d8\u91cf&#xff0c;\u6765\u5efa\u7acb\u4e24\u4e2a\u81ea\u5b9a\u4e49\u753b\u5237\u3002\u4e0d\u8fc7&#xff0c;\u6211\u4eec\u5b9e\u9645\u4e0a\u53ea\u4f7f\u7528\u4e86\u4e00\u4e2a\u753b\u5237\u53e5\u67c4\u3002\u5728\u7a0b\u5e8f\u4e2d&#xff0c;\u6211\u4eec\u58f0\u660e\u7684\u753b\u5237\u53e5\u67c4\u6709\u4e24\u4e2a&#xff0c;\u4e00\u4e2a\u662f hBrush&#xff0c;\u53e6\u4e00\u4e2a\u662f hOldBrush \u3002\u4f46\u662f\u5462&#xff0c;\u7528\u6765\u8868\u793a\u81ea\u5b9a\u4e49\u753b\u5237\u7684\u53d8\u91cf&#xff0c;\u5b9e\u9645\u4e0a\u53ea\u6709\u4e00\u4e2a&#xff0c;\u90a3\u5c31\u662f hBrush \u3002\u53e6\u4e00\u4e2a\u753b\u5237\u53e5\u67c4\u53d8\u91cf hOldBrush&#xff0c;\u5b83\u627f\u62c5\u7740\u8f85\u52a9\u804c\u80fd\u3002<\/p>\n<p>\u5173\u4e8e hOldBrush&#xff0c;\u6211\u662f\u5728\u5c06 hBrush \u753b\u5237\u9009\u5165\u8bbe\u5907\u73af\u5883\u4e4b\u65f6&#xff0c;\u7528 hOldBrush \u6765\u4fdd\u5b58\u65e7\u753b\u5237&#xff0c;\u7136\u540e\u5728\u5b8c\u6210\u4e86\u4e00\u6bb5\u7ed8\u5236\u4efb\u52a1\u4ee5\u540e&#xff0c;\u7528\u00a0hOldBrush \u6765\u5c06\u00a0hBrush \u753b\u5237\u7ed9\u9009\u51fa\u8bbe\u5907\u73af\u5883\u3002\u81ea\u59cb\u81f3\u7ec8&#xff0c;hOldBrush \u53ea\u662f\u5728\u627f\u62c5\u7740\u8f85\u52a9\u804c\u80fd&#xff0c;\u800c\u975e\u7528\u6765\u8868\u793a\u67d0\u4e00\u4e2a\u5177\u4f53\u7684\u753b\u5237\u3002<\/p>\n<p>\u5728\u7ed8\u5236\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u6846\u67b6\u7684\u65f6\u5019&#xff0c;\u6211\u4eec\u4f7f\u7528\u7684\u662f\u7ea2\u8272\u7684\u81ea\u5b9a\u4e49\u753b\u5237&#xff0c;\u8fd9\u4e2a\u753b\u5237\u7684\u53e5\u67c4\u4fdd\u5b58\u5728\u53d8\u91cf hBrush \u4e4b\u4e2d\u3002\u7ed8\u5236\u5b8c\u4e86\u6846\u67b6\u4ee5\u540e&#xff0c;\u6211\u4eec\u53c8\u5c06\u8fd9\u4e2a\u7ea2\u8272\u7684\u81ea\u5b9a\u4e49\u753b\u5237\u7ed9\u9009\u51fa\u4e86\u8bbe\u5907\u73af\u5883&#xff0c;\u5e76\u5c06\u8fd9\u4e2a\u7ea2\u8272\u753b\u5237\u7ed9\u5220\u9664\u4e86\u3002\u7136\u540e\u5462&#xff0c;\u6211\u4eec\u65b0\u5efa\u4e86\u4e00\u4e2a\u81ea\u5b9a\u4e49\u753b\u5237&#xff0c;\u8fd9\u6b21\u7684\u753b\u5237\u662f\u4e00\u4e2a\u84dd\u8272\u7684\u753b\u5237&#xff0c;\u6211\u4eec\u5c06\u5176\u53c8\u4fdd\u5b58\u5728\u4e86 hBrush \u4e4b\u4e2d\u3002\u7136\u540e\u5462&#xff0c;\u5c06\u5176\u9009\u5165\u8bbe\u5907\u73af\u5883&#xff0c;\u7136\u540e\u5c31\u662f\u5728\u4e24\u5c42\u7684 for \u5faa\u73af\u4e4b\u4e2d&#xff0c;\u6839\u636e\u00a0Square[6][7] \u7684\u503c&#xff0c;\u6765\u5bf9\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u4e2d\u7684\u65b9\u683c\u8fdb\u884c\u6d82\u8272\u3002\u6d82\u8272\u8fc7\u7a0b\u5b8c\u7ed3\u4e4b\u540e&#xff0c;\u6211\u4eec\u53c8\u5c06\u84dd\u8272\u753b\u5237\u7ed9\u9009\u51fa\u8bbe\u5907\u73af\u5883&#xff0c;\u7136\u540e\u5c06\u84dd\u8272\u753b\u5237\u7ed9\u5220\u9664\u3002<\/p>\n<p>\u5728\u7ed9\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u6d82\u8272\u7684\u65f6\u5019&#xff0c;\u6211\u8003\u8651\u5230&#xff0c;\u5982\u679c\u8ba9\u6d82\u8272\u7684\u90e8\u5206\u4e0e\u50cf\u7d20\u65b9\u683c\u7684\u8fb9\u754c\u91cd\u5408&#xff0c;\u5219\u4f1a\u9020\u6210\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u7684\u6846\u67b6\u4e0e\u6d82\u8272\u90e8\u5206\u91cd\u5408\u4e0e\u6df7\u6dc6\u7684\u95ee\u9898\u3002\u4e3a\u6b64&#xff0c;\u6211\u5728\u7ed9\u67d0\u4e2a\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u6d82\u8272\u7684\u65f6\u5019&#xff0c;\u7279\u610f\u4ee4\u6d82\u8272\u7684\u90e8\u5206&#xff0c;\u6bd4\u77e9\u9635\u6846\u67b6\u7684\u65b9\u683c\u5916\u6846&#xff0c;\u5411\u5185\u7f29\u51cf\u4e86\u5c11\u8bb8\u50cf\u7d20\u7684\u5927\u5c0f\u3002\u5185\u7f29\u7684\u50cf\u7d20\u6570&#xff0c;\u4e5f\u8bb8&#xff0c;\u4ecd\u7136\u4e0d\u662f\u7279\u522b\u5730\u6e05\u6670&#xff0c;\u4f46\u662f&#xff0c;\u8fd8\u7b97\u662f\u80fd\u591f\u8fa8\u8bc6\u3002<\/p>\n<p>\u53e6\u5916&#xff0c;\u5728\u7ed8\u5236\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u6846\u67b6\u7684\u65f6\u5019&#xff0c;\u6211\u7528\u7684\u662f MoveToEx \u548c LineTo \u51fd\u6570&#xff0c;\u4f7f\u7528\u7684\u7ebf\u6761\u662f\u7ea2\u8272\u7684\u865a\u7ebf&#xff0c;\u4e3a\u6b64&#xff0c;\u6211\u4f7f\u7528\u4e86\u81ea\u5b9a\u4e49\u753b\u7b14&#xff0c;\u5e76\u5c06\u5176\u8bbe\u7f6e\u4e3a\u7ea2\u8272\u3001PS_DASHDOT \u98ce\u683c\u3002\u800c\u5728\u6d82\u8272\u7684\u65f6\u5019&#xff0c;\u6211\u4f7f\u7528\u4e86 Rectangle \u51fd\u6570&#xff0c;\u6d82\u8272\u65f6&#xff0c;\u4e0d\u9700\u8981\u7ed8\u5236\u8fb9\u6846&#xff0c;\u56e0\u6b64&#xff0c;\u6211\u4f7f\u7528\u4e86 NULL_PEN \u5907\u7528\u753b\u7b14\u3002\u5728\u753b\u7b14\u65b9\u9762&#xff0c;\u6211\u4e5f\u662f\u4f7f\u7528\u4e86\u4e24\u4e2a\u53d8\u91cf&#xff0c;\u4e00\u4e2a\u7528\u6765\u8868\u793a\u5b9e\u9645\u4f7f\u7528\u7684\u753b\u7b14&#xff0c;\u5b83\u7531 hPen \u53d8\u91cf\u6765\u8868\u793a\u3002\u53e6\u4e00\u4e2a\u662f\u8f85\u52a9\u753b\u7b14\u53d8\u91cf&#xff0c;\u5b83\u7531 hPenOld \u53d8\u91cf\u6765\u8868\u793a\u3002<\/p>\n<p>hPen \u4e0e hPenOld \u7684\u4f7f\u7528\u65b9\u6cd5&#xff0c;\u4e0e hBrush\u3001hOldBrush \u7684\u4f7f\u7528\u65b9\u6cd5\u7c7b\u4f3c\u3002\u90fd\u662f\u8bf4&#xff0c;\u5b9e\u9645\u60f3\u8981\u4f7f\u7528\u67d0\u4e00\u753b\u7b14\u4e4b\u65f6&#xff0c;\u6216\u8005\u662f\u521b\u5efa\u4e00\u4e2a\u81ea\u5b9a\u4e49\u753b\u7b14&#xff0c;\u6216\u8005\u662f\u83b7\u53d6\u7cfb\u7edf\u5907\u7528\u753b\u7b14&#xff0c;\u5e76\u5c06\u8fd9\u4e2a\u753b\u7b14\u5462&#xff0c;\u7528 hPen \u6765\u4fdd\u5b58&#xff0c;\u7136\u540e\u5c06\u5176\u9009\u5165\u8bbe\u5907\u73af\u5883\u3002\u9009\u5165\u8bbe\u5907\u73af\u5883\u4e4b\u65f6&#xff0c;\u7528 hPenOld \u6765\u4fdd\u5b58\u65e7\u753b\u7b14\u3002\u63a5\u4e0b\u6765\u662f\u8fdb\u884c\u7ed8\u5236\u4efb\u52a1&#xff0c;\u5b8c\u6210\u4e86\u4e00\u6bb5\u7ed8\u5236\u4efb\u52a1\u4ee5\u540e&#xff0c;\u901a\u8fc7 hPenOld \u6765\u5c06 hPen \u7ed9\u9009\u51fa\u8bbe\u5907\u73af\u5883\u3002\u7136\u540e\u5462&#xff0c;\u8981\u770b hPen \u8868\u793a\u7684\u753b\u7b14&#xff0c;\u662f\u7cfb\u7edf\u5907\u7528\u753b\u7b14\u8fd8\u662f\u81ea\u5b9a\u4e49\u753b\u7b14&#xff0c;\u5982\u679c\u662f\u7cfb\u7edf\u5907\u7528\u753b\u7b14&#xff0c;\u5219\u65e0\u987b\u5220\u9664\u5b83\u6240\u4ee3\u8868\u7684 GDI \u5bf9\u8c61\u3002\u5982\u679c\u662f\u81ea\u5b9a\u4e49\u753b\u7b14&#xff0c;\u5219\u8fd8\u9700\u8981\u5220\u9664 hPen \u6240\u5bf9\u5e94\u7684 GDI \u5bf9\u8c61\u3002<\/p>\n<p>\u4ee5\u4e0a&#xff0c;\u5c31\u662f\u6211\u5bf9\u4e8e\u672c\u8282\u8981\u5c55\u793a\u7684\u7a0b\u5e8f\u4ee3\u7801\u7684\u6574\u4f53\u601d\u8def\u7684\u5927\u81f4\u5206\u6790\u4e86\u3002<\/p>\n<p>\u6709\u53ef\u80fd&#xff0c;\u6b64\u65f6&#xff0c;\u4f60\u8fd8\u4e0d\u80fd\u591f\u5b8c\u5168\u7406\u89e3\u4e0a\u9762\u7684\u6574\u4f53\u5206\u6790\u7684\u542b\u4e49\u3002\u90a3\u4e48&#xff0c;\u5927\u81f4\u770b\u770b\u5c31\u597d\u3002\u7b49\u4f60\u5bf9\u672c\u8bfe\u8282\u7684\u4ee3\u7801&#xff0c;\u5b8c\u6574\u5730\u9605\u8bfb\u4e86\u4ee5\u540e&#xff0c;\u518d\u6765\u5bf9\u7167\u7740\u770b\u770b\u672c\u5206\u8282\u7684\u6574\u4f53\u601d\u8def\u5206\u6790&#xff0c;\u591a\u770b\u51e0\u904d&#xff0c;\u6211\u60f3&#xff0c;\u4f60\u5e94\u8be5\u80fd\u770b\u61c2\u3002<\/p>\n<p>\u5728\u4e0b\u4e00\u5206\u8282&#xff0c;\u6211\u4eec\u6765\u5c55\u793a\u4ee3\u7801\u3002<\/p>\n<\/p>\n<h2>\u4e8c.\u00a0 \u00a0 \u672c\u8282\u7a0b\u5e8f\u4ee3\u7801<\/h2>\n<p>\u672c\u8282\u7a0b\u5e8f&#xff0c;\u6211\u662f\u7528 VS2019 \u6765\u7f16\u8bd1\u7684\u3002\u89e3\u51b3\u65b9\u6848\u4e0e\u9879\u76ee\u7684\u540d\u79f0&#xff0c;\u4e3a\u00a0LittleFontPic \u3002\u4ee3\u7801\u6587\u4ef6\u5305\u542b\u6709\u4e24\u4e2a&#xff0c;\u4e00\u4e2a\u662f\u5934\u6587\u4ef6\u00a0FontPic.h&#xff0c;\u53e6\u4e00\u4e2a\u662f\u6e90\u6587\u4ef6\u00a0WinMain.cpp \u3002<\/p>\n<p>\u63a5\u4e0b\u6765&#xff0c;\u6211\u4eec\u6765\u5c55\u793a\u4ee3\u7801\u3002<\/p>\n<h3>&#xff08;\u4e00&#xff09;\u5934\u6587\u4ef6\u00a0FontPic.h<\/h3>\n<p>\u4ee3\u7801\u89c1\u4e0b\u9762\u7684\u4ee3\u7801\u5757\u3002<\/p>\n<p>#ifndef _FONTPIC_H_<br \/>\n#define _FONTPIC_H_<\/p>\n<p>BOOL Square[16][15] &#061;<br \/>\n{<br \/>\n0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,<br \/>\n0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,<br \/>\n0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br \/>\n0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br \/>\n0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br \/>\n0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,<br \/>\n0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1,<br \/>\n0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1,<br \/>\n0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1,<br \/>\n0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1,<br \/>\n0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1,<br \/>\n1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1,<br \/>\n1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1,<br \/>\n0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,<br \/>\n0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,<br \/>\n0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1<br \/>\n};<\/p>\n<p>#endif \/\/<\/p>\n<h3>&#xff08;\u4e8c&#xff09;\u6e90\u6587\u4ef6 WinMain.cpp<\/h3>\n<p>\u4ee3\u7801\u5982\u4e0b\u3002<\/p>\n<p>\/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n                 \u5c0f\u5b57\u4f53\u70b9\u9635\u56fe\u753b<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;*\/<\/p>\n<p>#include &lt;windows.h&gt;<br \/>\n#include &#034;FontPic.h&#034;<\/p>\n<p>LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);<\/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;LittleFontPic&#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&#034;),<br \/>\n            szAppName, MB_ICONERROR);<br \/>\n        return 0;<br \/>\n    }<\/p>\n<p>    hwnd &#061; CreateWindow(szAppName, TEXT(&#034;\u5c0f\u5b57\u4f53\u70b9\u9635\u56fe\u753b&#034;),<br \/>\n        WS_OVERLAPPEDWINDOW,<br \/>\n        CW_USEDEFAULT, CW_USEDEFAULT,<br \/>\n        CW_USEDEFAULT, CW_USEDEFAULT,<br \/>\n        NULL, NULL, hInstance, NULL);<\/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    static  int xStart, xEnd, yStart, yEnd, nLength;<br \/>\n    HDC         hdc;<br \/>\n    int         i, j, x, y;<br \/>\n    PAINTSTRUCT ps;<br \/>\n    static  COLORREF    clrLine, clrSquare;<br \/>\n    HPEN    hPen, hPenOld;<br \/>\n    HBRUSH  hBrush, hOldBrush;<br \/>\n    RECT    rect;<\/p>\n<p>    switch (message)<br \/>\n    {<br \/>\n    case WM_CREATE:<br \/>\n        nLength &#061; 27;<br \/>\n        xStart &#061; 200;<br \/>\n        xEnd &#061; xStart &#043; 15 * nLength;<br \/>\n        yStart &#061; 60;<br \/>\n        yEnd &#061; yStart &#043; 16 * nLength;<\/p>\n<p>        clrLine &#061; RGB(255, 0, 0);<br \/>\n        clrSquare &#061; RGB(0, 0, 255);<\/p>\n<p>        return 0;<\/p>\n<p>    case WM_PAINT:<br \/>\n        hdc &#061; BeginPaint(hwnd, &amp;ps);<\/p>\n<p>        \/\/ \u521b\u5efa\u5e76\u9009\u5165\u753b\u7b14<br \/>\n        hPen &#061; CreatePen(PS_DASHDOT, 0, clrLine);<br \/>\n        hPenOld &#061; (HPEN)SelectObject(hdc, hPen);<\/p>\n<p>        \/\/ \u7ed8\u5236\u70b9\u7ebf\u65b9\u683c&#xff0c;17\u4e2a\u6a2a\u7ebf&#xff0c;16\u4e2a\u7ad6\u7ebf\u3002<br \/>\n        for (i &#061; 0, y &#061; yStart; i &lt; 17; i&#043;&#043;)<br \/>\n        {<br \/>\n            MoveToEx(hdc, xStart, y, NULL);<br \/>\n            LineTo(hdc, xEnd, y);<br \/>\n            y &#043;&#061; nLength;<br \/>\n        }<\/p>\n<p>        for (i &#061; 0, x &#061; xStart; i &lt; 16; i&#043;&#043;)<br \/>\n        {<br \/>\n            MoveToEx(hdc, x, yStart, NULL);<br \/>\n            LineTo(hdc, x, yEnd);<br \/>\n            x &#043;&#061; nLength;<br \/>\n        }<\/p>\n<p>        \/\/ \u521b\u5efa\u753b\u5237\u5e76\u9009\u5165\u8bbe\u5907\u73af\u5883<br \/>\n        hBrush &#061; CreateSolidBrush(clrSquare);<br \/>\n        hOldBrush &#061; (HBRUSH)SelectObject(hdc, hBrush);<\/p>\n<p>        \/\/ \u5c06\u753b\u7b14\u9009\u51fa\u8bbe\u5907\u73af\u5883&#xff0c;\u5e76\u9500\u6bc1&#xff0c;\u7136\u540e\u65b0\u5efa\u4e00\u4e2a\u5907\u7528\u753b\u7b14 NULL_PEN\u3002<br \/>\n        SelectObject(hdc, hPenOld);<br \/>\n        DeleteObject(hPen);<br \/>\n        hPen &#061; (HPEN)GetStockObject(NULL_PEN);<br \/>\n        hPenOld &#061; (HPEN)SelectObject(hdc, hPen);<\/p>\n<p>        for (i &#061; 0; i &lt; 16; i&#043;&#043;)<br \/>\n            for (j &#061; 0; j &lt; 15; j&#043;&#043;)<br \/>\n                if (Square[i][j])<br \/>\n                {<br \/>\n                    rect.left &#061; xStart &#043; j * nLength &#043; 2;<br \/>\n                    rect.right &#061; xStart &#043; (j &#043; 1) * nLength &#8211; 1;<br \/>\n                    rect.top &#061; yStart &#043; i * nLength &#043; 2;<br \/>\n                    rect.bottom &#061; yStart &#043; (i &#043; 1) * nLength &#8211; 1;<br \/>\n                    Rectangle(hdc, rect.left, rect.top,<br \/>\n                        rect.right, rect.bottom);<br \/>\n                }<\/p>\n<p>        \/\/  \u5c06\u753b\u5237\u9009\u51fa\u8bbe\u5907\u73af\u5883\u5e76\u9500\u6bc1<br \/>\n        SelectObject(hdc, hOldBrush);<br \/>\n        DeleteObject(hBrush);<\/p>\n<p>        \/\/ \u5c06\u753b\u7b14\u9009\u51fa\u8bbe\u5907\u73af\u5883&#xff0c;\u7531\u4e8e\u6b64\u65f6 hPen \u662f\u5907\u7528<br \/>\n        \/\/ \u753b\u7b14&#xff0c;\u56e0\u800c\u4e0d\u80fd\u9500\u6bc1\u3002<br \/>\n        SelectObject(hdc, hPenOld);<\/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<h3>&#xff08;\u4e09&#xff09;\u90e8\u5206\u4ee3\u7801\u7684\u8bb2\u89e3<\/h3>\n<h4>&#xff08;1&#xff09;\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362<\/h4>\n<p>\u5728\u8c03\u7528 GetStockObject \u548c SelectObject \u51fd\u6570\u7684\u65f6\u5019&#xff0c;\u5982\u679c\u6211\u4eec\u9700\u8981\u5c06\u5b83\u4eec\u7684\u51fd\u6570\u8fd4\u56de\u503c\u7ed9\u4fdd\u5b58\u5728\u67d0\u4e00\u4e2a\u53d8\u91cf\u91cc\u9762&#xff0c;\u6211\u4eec\u90fd\u5bf9\u5176\u8fdb\u884c\u4e86\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362\u3002\u8fd9\u662f\u56e0\u4e3a&#xff0c;\u8fd9\u4fe9\u51fd\u6570\u7684\u8fd4\u56de\u503c&#xff0c;\u662f GDI \u5bf9\u8c61\u7684\u901a\u7528\u7c7b\u578b&#xff0c;HGDIOBJ&#xff0c;\u800c\u4e0d\u662f\u67d0\u4e00\u4e2a\u5177\u4f53\u7684\u7c7b\u578b&#xff0c;\u6bd4\u5982\u753b\u7b14\u53e5\u67c4\u7c7b\u578b HPEN&#xff0c;\u6216\u8005\u753b\u5237\u53e5\u67c4\u7c7b\u578b HBRUSH&#xff0c;\u7b49\u7b49\u3002\u7531\u4e8e\u8fd9\u4fe9\u51fd\u6570\u8fd4\u56de\u7684&#xff0c;\u90fd\u662f\u5927\u7c7b\u578b HGDIOBJ&#xff0c;\u6240\u4ee5\u5462&#xff0c;\u6211\u4eec\u90fd\u4f7f\u7528\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362&#xff0c;\u6765\u5904\u7406\u4e86\u8fd4\u56de\u503c&#xff0c;\u6bd4\u5982\u4e0b\u8ff0\u7684\u51e0\u4e2a\u4ee3\u7801\u3002<\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"115\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903125655-6a996e97bafb8.png\" width=\"746\" \/> <\/p>\n<p>  \u56fe4<\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"312\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903125655-6a996e97c5801.png\" width=\"1021\" \/> <\/p>\n<p>  \u56fe5<\/p>\n<p>\u8fd9\u79cd\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362&#xff0c;\u8fd9\u7b97\u662f GDI \u7ed8\u56fe\u5e38\u89c1\u7684\u6d41\u7a0b\u3002\u521d\u5b66\u8005&#xff0c;\u53ef\u80fd\u8fd8\u4e0d\u592a\u719f\u6089\u3002\u4f46\u662f\u5462&#xff0c;\u968f\u7740\u4f60\u5bf9\u672c\u4e13\u680f\u7684\u9605\u8bfb\u7ecf\u9a8c\u7684\u589e\u957f&#xff0c;\u8fd9\u79cd\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362&#xff0c;\u4f60\u4f1a\u719f\u6089\u7684\u3002<\/p>\n<h4>&#xff08;2&#xff09;\u9009\u5165\u8bbe\u5907\u73af\u5883\u548c\u9009\u51fa\u8bbe\u5907\u73af\u5883<\/h4>\n<p> <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"115\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903125655-6a996e97df3b2.png\" width=\"745\" \/> <\/p>\n<p>  \u56fe6<\/p>\n<p>\u8fd9\u662f\u521b\u5efa\u753b\u7b14\u5e76\u5c06\u5176\u9009\u5165\u8bbe\u5907\u73af\u5883\u7684\u4ee3\u7801\u3002<\/p>\n<p>\u4e3a\u5565\u521b\u5efa\u4e86\u753b\u7b14\u4e4b\u540e\u8981\u5c06\u5176\u9009\u5165\u8bbe\u5907\u73af\u5883\u5462&#xff1f;\u56e0\u4e3a&#xff0c;\u53ea\u6709\u5c06\u5176\u9009\u5165\u4e86\u8bbe\u5907\u73af\u5883\u4ee5\u540e&#xff0c;\u63a5\u4e0b\u6765&#xff0c;\u5728\u4f7f\u7528 GDI \u51fd\u6570\u7ed8\u56fe\u7684\u65f6\u5019&#xff0c;\u624d\u4f1a\u4f7f\u7528\u8fd9\u4e2a\u753b\u7b14\u3002GDI \u51fd\u6570\u5728\u7ed8\u56fe\u7684\u65f6\u5019&#xff0c;\u65e0\u8bba\u662f\u4f7f\u7528 MoveToEx\u3001LineTo \u51fd\u6570\u5bf9&#xff0c;\u8fd8\u662f\u4f7f\u7528 Rectangle\u3001Ellipse \u548c RoundRect \u7b49\u7b49\u7684\u7ed8\u56fe\u51fd\u6570&#xff0c;\u5728\u7ed8\u5236\u7ebf\u6761\u7684\u65f6\u5019&#xff0c;\u90fd\u7528\u7684\u662f\u9009\u5165\u8bbe\u5907\u73af\u5883\u4e4b\u4e2d\u7684\u90a3\u4e2a\u753b\u7b14\u6240\u7ed8\u5236\u7684\u7ebf\u6761\u3002<\/p>\n<p>\u5982\u679c\u5462&#xff0c;\u4f60\u5728\u7a0b\u5e8f\u4e2d&#xff0c;\u6ca1\u6709\u5355\u72ec\u5730\u521b\u5efa\u753b\u7b14\u5e76\u5c06\u5176\u9009\u5165\u8bbe\u5907\u73af\u5883&#xff0c;\u90a3\u4e48&#xff0c;\u4f60\u5728\u7ed8\u56fe\u7684\u65f6\u5019&#xff0c;\u5c06\u4f1a\u91c7\u7528\u9ed8\u8ba4\u753b\u7b14&#xff0c;BLACK_PEN&#xff0c;\u8fd9\u662f\u7cfb\u7edf\u7684\u4e00\u4e2a\u5907\u7528\u753b\u7b14\u3002<\/p>\n<p>\u5728\u56fe6 \u4ee3\u7801\u533a\u57df\u7684\u4e0b\u9762&#xff0c;\u7d27\u63a5\u7740\u7684\u662f\u7ed8\u5236\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u6846\u67b6\u7684\u51fd\u6570&#xff0c;\u5982\u4e0b\u56fe\u6240\u793a&#xff0c;<\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"466\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903125655-6a996e97e98df.png\" width=\"708\" \/> <\/p>\n<p>  \u56fe7<\/p>\n<p>\u6211\u4eec\u8981\u7ed8\u5236\u7684\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635&#xff0c;\u5b83\u662f\u00a0<span style=\"color:#1a439c\">16 \u884c\u300115 \u5217<\/span>\u7684\u65b9\u683c\u77e9\u9635&#xff0c;\u6240\u4ee5\u5462&#xff0c;\u7ed8\u5236\u5b83\u9700\u8981 17 \u4e2a\u6a2a\u7ebf\u300116 \u4e2a\u7ad6\u7ebf\u3002<\/p>\n<p>\u56fe7 \u4e2d\u7684\u4e24\u4e2a for \u5faa\u73af\u6267\u884c\u5b8c\u4e86\u4ee5\u540e&#xff0c;\u7ed8\u5236\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u8fd9\u4e00\u4efb\u52a1\u4e5f\u5c31\u5b8c\u6210\u4e86\u3002\u5b8c\u6210\u4e86\u4ee5\u540e&#xff0c;\u5b9e\u9645\u4e0a&#xff0c;\u56fe6 \u4e2d\u6240\u521b\u5efa\u7684 PS_DASHDOT\u3001RGB(255, 0, 0) \u6240\u5bf9\u5e94\u7684\u7ea2\u8272\u98ce\u683c\u7684\u7ebf\u6761\u4e5f\u5c31\u5b8c\u6210\u4e86\u5b83\u7684\u4f7f\u547d\u3002\u63a5\u4e0b\u6765&#xff0c;\u6211\u4eec\u9700\u8981\u5bf9\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u8fdb\u884c\u6d82\u8272\u4e86\u3002\u800c\u5728\u6d82\u8272\u7684\u65f6\u5019&#xff0c;\u6211\u4eec\u7528\u7684\u51fd\u6570\u662f Rectangle&#xff0c;\u800c\u8fd9\u4e00\u51fd\u6570\u6240\u7528\u7684\u7ebf\u6761\u662f NULL_PEN&#xff0c;\u4e5f\u5c31\u662f\u65e0\u8fb9\u6846\u3002<\/p>\n<p>\u7531\u4e8e\u56fe7 \u4e4b\u540e\u7684\u753b\u56fe\u4efb\u52a1&#xff0c;\u9700\u8981\u4f7f\u7528 NULL_PEN \u98ce\u683c\u7684\u753b\u7b14&#xff0c;\u56e0\u800c&#xff0c;\u56fe6 \u4e2d\u7684\u81ea\u5b9a\u4e49\u753b\u7b14\u5c31\u9700\u8981\u88ab\u9009\u51fa\u8bbe\u5907\u73af\u5883\u4e86\u3002\u4e3a\u6b64&#xff0c;\u6211\u4eec\u6765\u770b\u4e0b\u4e00\u6bb5\u4ee3\u7801\u3002<\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"188\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903125656-6a996e980814f.png\" width=\"1014\" \/> <\/p>\n<p>  \u56fe8<\/p>\n<p>\u56fe6 \u4e2d&#xff0c;\u6211\u4eec\u521b\u5efa\u4e86\u81ea\u5b9a\u4e49\u753b\u7b14&#xff0c;\u5e76\u5c06\u753b\u7b14\u53e5\u67c4\u4fdd\u5b58\u5728\u4e86 hPen \u91cc\u9762\u3002\u7531\u4e8e\u5b83\u662f\u81ea\u5b9a\u4e49\u753b\u7b14&#xff0c;\u6240\u4ee5\u5462&#xff0c;\u6211\u4eec\u9700\u8981\u5728\u8c03\u7528 SelectObject \u6765\u5c06 hPen \u9009\u51fa\u8bbe\u5907\u73af\u5883\u4ee5\u540e&#xff0c;\u7528 DeleteObject \u51fd\u6570\u5c06 hPen \u6240\u4ee3\u8868\u7684 GDI \u753b\u7b14\u5bf9\u8c61\u7ed9\u5220\u9664\u6389\u3002<\/p>\n<p>\u4e3a\u5565\u8981\u5220\u9664\u6389&#xff1f;\u5982\u679c\u4e0d\u4e88\u4ee5\u5220\u9664&#xff0c;\u90a3\u4e48&#xff0c;\u5728\u6211\u4eec\u53ea\u7528 hPen \u4e00\u4e2a\u753b\u7b14\u53e5\u67c4\u53d8\u91cf\u6765\u4fdd\u5b58\u753b\u7b14\u7684\u60c5\u51b5\u4e0b&#xff0c;\u56fe8 \u4e2d\u7684 108 \u884c\u4ee3\u7801\u4e2d\u5bf9 hPen \u7684\u91cd\u65b0\u8d4b\u503c&#xff0c;\u5c06\u4f1a\u5bfc\u81f4\u56fe6 \u4e2d\u521b\u5efa\u7684\u81ea\u5b9a\u4e49\u753b\u7b14\u7684\u53e5\u67c4\u4e22\u5931&#xff0c;\u4e22\u5931\u4e86\u4ee5\u540e&#xff0c;\u90a3\u4e2a PS_DASHDOT\u3001\u7ea2\u8272\u98ce\u683c\u7684\u81ea\u5b9a\u4e49\u753b\u7b14\u5bf9\u8c61&#xff0c;\u5c31\u4f1a\u9a7b\u7559\u5728\u5185\u5b58\u4e2d&#xff0c;\u767d\u767d\u5730\u5360\u7740\u5730\u65b9\u3002\u5185\u5b58\u8d44\u6e90\u5f88\u5b9d\u8d35&#xff0c;\u5982\u679c\u6211\u4eec\u521b\u5efa\u7684\u7a0b\u5e8f\u662f\u4e00\u4e2a\u5927\u7a0b\u5e8f&#xff0c;\u91cc\u9762\u6240\u4f7f\u7528 GDI \u5bf9\u8c61\u4f1a\u6709\u597d\u591a\u3002\u5982\u679c\u5404\u4e2a\u90fd\u4f7f\u7528\u5b8c\u4e86\u4ee5\u540e\u4e0d\u53ca\u65f6\u5220\u9664&#xff0c;\u5b83\u4eec\u5c31\u4f1a\u767d\u767d\u5730\u5360\u7528\u7740\u5e9e\u5927\u7684\u5185\u5b58\u3002\u968f\u7740\u7a0b\u5e8f\u7684\u8fd0\u884c&#xff0c;\u4f60\u7684\u5185\u5b58\u6162\u6162\u5730\u5c31\u4e0d\u591f\u7528\u4e86\u3002\u4f7f\u7528\u5b8c\u4e86\u67d0\u4e2a GDI \u5bf9\u8c61\u4ee5\u540e&#xff0c;\u53ca\u65f6\u5c06\u5176\u9009\u51fa\u8bbe\u5907\u73af\u5883\u5e76\u5220\u9664&#xff0c;\u8fd9\u662f\u5bf9\u5185\u5b58\u8d44\u6e90\u7684\u8282\u7ea6\u5229\u7528&#xff0c;\u5c31\u50cf\u6211\u4eec\u5e73\u65f6\u751f\u6d3b\u4e2d\u7684\u8282\u7ea6\u7528\u6c34\u548c\u7528\u7535\u4e00\u6837&#xff0c;\u7528\u5b8c\u4e86\u6c34\u9f99\u5934\u8981\u53ca\u65f6\u5173\u4e0a&#xff0c;\u7528\u5b8c\u4e86\u7535\u4e5f\u8981\u53ca\u65f6\u5173\u4e0a\u3002<\/p>\n<p>\u5173\u4e8e\u9009\u51fa\u8bbe\u5907\u73af\u5883&#xff0c;\u5176\u5b9e\u5b83\u7b97\u662f\u4e00\u79cd\u89c4\u8303\u6027\u7684\u6d41\u7a0b\u4e86\u3002\u5728\u672c\u8282\u7a0b\u5e8f\u4e2d&#xff0c;\u4ee5\u53ca\u4ee5\u540e\u6211\u4eec\u4f1a\u89c1\u5230\u7684\u8bb8\u591a\u7684 GDI \u7ed8\u56fe\u4efb\u52a1\u4e2d&#xff0c;\u7528\u5b8c\u4e86\u67d0\u4e00\u4e2a GDI \u5bf9\u8c61&#xff0c;\u6211\u4eec\u662f\u9700\u8981\u5c06\u5176\u53ca\u65f6\u5730\u9009\u51fa\u8bbe\u5907\u73af\u5883\u7684\u3002\u5bf9\u4e8e\u9009\u51fa\u8bbe\u5907\u73af\u5883\u7684 GDI \u5bf9\u8c61&#xff0c;\u5982\u679c\u662f\u81ea\u5b9a\u4e49\u7684 GDI \u5bf9\u8c61&#xff0c;\u8fd8\u8981\u53ca\u65f6\u5c06\u5176\u5220\u9664&#xff0c;\u4ee5\u8282\u7ea6\u5229\u7528\u5185\u5b58\u8d44\u6e90\u3002\u5982\u679c\u662f\u5907\u7528\u5bf9\u8c61&#xff0c;\u5219\u4e0d\u53ef\u4ee5\u5c06\u5176\u5220\u9664\u3002<\/p>\n<p>\u5728\u56fe7 \u4e2d\u7684\u4e24\u4e2a for \u5faa\u73af\u6240\u6267\u884c\u7684\u7ed8\u5236\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u7684\u4efb\u52a1\u5b8c\u6210\u4e86\u4ee5\u540e&#xff0c;\u6211\u4eec\u63a5\u4e0b\u6765\u8981\u53bb\u8fdb\u884c\u7684\u662f\u5bf9\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u4e2d\u7684\u67d0\u4e9b\u4e2a\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u8fdb\u884c\u6d82\u8272\u3002\u6d82\u8272\u7684\u65f6\u5019&#xff0c;\u6211\u4eec\u8981\u7528\u5230\u7684\u51fd\u6570\u662f Rectangle \u3002\u60f3\u8981\u7528\u5b83\u6765\u7ed9\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u6d82\u8272&#xff0c;\u6211\u4eec\u8fd8\u9700\u8981\u4f7f\u7528 GDI \u753b\u5237\u3002\u6d82\u4ec0\u4e48\u989c\u8272&#xff0c;\u5c31\u7528\u4ec0\u4e48\u989c\u8272\u753b\u5237\u3002<\/p>\n<p>\u4e3a\u6b64&#xff0c;\u6211\u4eec\u5728\u4e0b\u8ff0\u622a\u56fe\u6240\u793a\u7684\u4ee3\u7801\u4e2d&#xff0c;\u521b\u5efa\u5e76\u9009\u5165\u4e86\u81ea\u5b9a\u4e49\u753b\u5237\u3002<\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"128\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903125656-6a996e981b4e3.png\" width=\"840\" \/> <\/p>\n<p>  \u56fe9<\/p>\n<p>\u63a5\u4e0b\u6765\u5462&#xff0c;\u662f\u7528\u4e24\u5c42 for \u5faa\u73af\u4ee3\u7801&#xff0c;\u6765\u5bf9\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u8fdb\u884c\u6d82\u8272&#xff0c;\u4ee3\u7801\u622a\u56fe\u5982\u4e0b\u6240\u793a\u3002<\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"382\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903125656-6a996e982affc.png\" width=\"986\" \/> <\/p>\n<p>  \u56fe10<\/p>\n<p>\u4ee3\u7801\u672c\u8eab\u4e0d\u96be&#xff0c;\u4e0d\u8fc7&#xff0c;\u4f60\u53ef\u80fd\u4f1a\u5bf9\u6bcf\u4e2a\u5c0f\u77e9\u5f62\u7684\u5de6\u4e0a\u52a02\u3001\u53f3\u4e0b\u51cf1 \u6709\u6240\u7591\u60d1&#xff0c;\u8fd9\u4e00\u70b9&#xff0c;\u6211\u4eec\u5728\u540e\u9762\u7684\u67d0\u4e2a\u5c0f\u8282\u6765\u8bb2\u89e3\u3002\u6b64\u5904&#xff0c;\u6682\u4e14\u4e0d\u8868\u3002<\/p>\n<p>\u56fe10 \u6240\u793a\u7684\u6d82\u8272\u4ee3\u7801\u5b8c\u6210\u4e86\u4ee5\u540e&#xff0c;\u56fe8 \u7684108\u3001109 \u884c\u4ee3\u7801\u4e2d\u83b7\u53d6\u7cfb\u7edf\u5907\u7528\u5bf9\u8c61\u5e76\u9009\u5165\u8bbe\u5907\u73af\u5883\u7684\u753b\u7b14&#xff0c;\u6211\u4eec\u5c31\u7528\u5b8c\u4e86\u3002\u540c\u65f6&#xff0c;\u56fe9 \u7684 102\u3001103 \u884c\u6240\u521b\u5efa\u5e76\u9009\u5165\u8bbe\u5907\u73af\u5883\u7684\u753b\u5237&#xff0c;\u6211\u4eec\u4e5f\u7528\u5b8c\u4e86\u3002<\/p>\n<p>\u65e2\u7136\u7528\u5b8c\u4e86&#xff0c;\u90a3\u5c31\u9700\u8981\u5c06\u5176\u9009\u51fa\u8bbe\u5907\u73af\u5883\u3002\u7531\u4e8e hPen \u753b\u7b14\u662f\u5907\u7528\u5bf9\u8c61&#xff0c;\u56e0\u6b64\u5728\u9009\u51fa\u8bbe\u5907\u73af\u5883\u540e&#xff0c;\u65e0\u987b\u5220\u9664\u5b83&#xff0c;\u4e5f\u4e0d\u80fd\u5220\u9664\u5b83\u3002\u800c\u753b\u5237 hBrush \u662f\u81ea\u5b9a\u4e49\u5bf9\u8c61&#xff0c;\u56e0\u6b64\u5728\u9009\u51fa\u8bbe\u5907\u73af\u5883\u540e&#xff0c;\u9700\u8981\u5220\u9664\u5b83\u3002<\/p>\n<p>\u5c06\u7528\u5b8c\u4e86\u7684 GDI \u753b\u7b14\u548c\u753b\u5237\u9009\u51fa\u8bbe\u5907\u73af\u5883\u53ca\u5220\u9664\u5bf9\u8c61\u7684\u4ee3\u7801&#xff0c;\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"255\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903125656-6a996e984803a.png\" width=\"790\" \/> <\/p>\n<p>  \u56fe11<\/p>\n<p>\u5728\u8fd9\u91cc&#xff0c;\u5bf9\u4e8e\u5220\u9664 GDI \u5bf9\u8c61&#xff0c;\u6211\u4eec\u6ca1\u6709\u50cf\u4f69\u63aa\u5c14\u5fb7\u539f\u6559\u6750\u4e2d\u6240\u8bb2\u89e3\u7684\u90a3\u6837&#xff0c;\u5728 WM_DESTROY \u4e2d\u53bb\u6267\u884c DeleteObject \u51fd\u6570\u6765\u6267\u884c\u5220\u9664\u4efb\u52a1&#xff0c;\u800c\u662f\u5728\u7528\u5b8c\u4e86\u67d0\u4e2a GDI \u5bf9\u8c61\u4e4b\u540e&#xff0c;\u53ca\u65f6\u5220\u9664\u6e05\u7406\u3002\u8fd9\u79cd\u7528\u6cd5&#xff0c;\u5176\u5b9e&#xff0c;\u6211\u4e5f\u662f\u8ddf\u4f69\u63aa\u5c14\u5fb7\u5b66\u7684\u3002\u5728\u540e\u7eed\u7684\u8bb8\u591a\u7684\u539f\u6559\u6750\u7684\u4ee3\u7801\u4e2d&#xff0c;\u4f69\u63aa\u5c14\u5fb7\u5148\u751f\u4e5f\u662f\u8bf4&#xff0c;\u7528\u5b8c\u4e86\u67d0\u4e2a GDI \u81ea\u5b9a\u4e49\u5bf9\u8c61\u4e4b\u540e&#xff0c;\u53ca\u65f6\u5220\u9664\u5b83&#xff0c;\u800c\u4e0d\u662f\u975e\u5f97\u7b49\u5230 WM_DESTROY \u6d88\u606f\u5904\u7406\u7684\u65f6\u5019\u624d\u6765\u6267\u884c\u00a0DeleteObject \u51fd\u6570\u6765\u6267\u884c\u5220\u9664\u4efb\u52a1\u3002<\/p>\n<p>\u5bf9\u4e8e\u8fd9\u79cd&#xff0c;\u7528\u5b8c\u4e86\u4ee5\u540e\u7acb\u5373\u6e05\u7406\u7684\u7f16\u7a0b\u601d\u8def&#xff0c;\u5927\u5bb6\u9700\u8981\u53bb\u4f53\u4f1a\u548c\u719f\u6089\u3002\u4f60\u4e0d\u89c1\u5f97\u80fd\u591f\u6df1\u523b\u9886\u609f\u5176\u542b\u4e49&#xff0c;\u4f46\u662f&#xff0c;\u8981\u4f1a\u7528\u3002\u77e5\u9053\u4f69\u63aa\u5c14\u5fb7\u662f\u8fd9\u4e48\u7528\u7684&#xff0c;\u5e7f\u5927\u7684 Windows \u7a0b\u5e8f\u5458\u662f\u8fd9\u4e48\u7528\u7684&#xff0c;\u6211\u4eec\u4e5f\u8ddf\u7740\u8fd9\u4e48\u7528&#xff0c;\u5c31\u597d\u4e86\u3002<\/p>\n<h4>&#xff08;3&#xff09;\u6d82\u8272\u7684\u65f6\u5019&#xff0c;\u5bf9 rect \u7684\u5c3a\u5bf8\u7684\u8bbe\u7f6e<\/h4>\n<p>\u6211\u4eec\u91cd\u65b0\u5c06\u56fe10 \u7684\u4ee3\u7801\u622a\u56fe\u8d34\u5728\u4e0b\u9762\u3002<\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"382\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903125656-6a996e982affc.png\" width=\"986\" \/> <\/p>\n<p>  \u56fe10 \u526f\u672c<\/p>\n<p>\u5728\u56fe10 \u4e2d&#xff0c;j \u662f\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u4e2d&#xff0c;\u6bcf\u4e00\u4e2a\u7ad6\u7ebf\u7684\u7f16\u53f7\u3002\u5728\u6574\u4e2a\u7684\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u6846\u67b6\u4e2d&#xff0c;\u6700\u5de6\u4fa7\u7684\u7ad6\u7ebf&#xff0c;\u6211\u4eec\u5c06\u5176\u89c6\u4e3a 0 \u53f7&#xff0c;\u518d\u5f80\u53f3\u4e00\u4e2a\u662f 1 \u53f7\u7ad6\u7ebf&#xff0c;\u518d\u5f80\u53f3\u4e00\u4e2a\u662f 2 \u53f7\u7ad6\u7ebf\u7b49\u7b49\u3002<\/p>\n<p>\u800c i \u662f\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u4e2d&#xff0c;\u6bcf\u4e00\u4e2a\u6a2a\u7ebf\u7684\u7f16\u7a0b\u7684\u7f16\u53f7\u3002\u5728\u6574\u4e2a\u7684\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u6846\u67b6\u4e2d&#xff0c;\u6700\u4e0a\u4fa7\u7684\u6a2a\u7ebf&#xff0c;\u6211\u4eec\u5c06\u5176\u89c6\u4e3a 0\u00a0\u53f7&#xff0c;\u518d\u5f80\u4e0b\u4e00\u4e2a\u662f 1 \u53f7\u6a2a\u7ebf&#xff0c;\u518d\u5f80\u4e0b\u4e00\u4e2a\u662f 2 \u53f7\u6a2a\u7ebf\u7b49\u7b49\u3002<\/p>\n<p>i \u548c j \u4e5f\u540c\u65f6\u7528\u6765\u5728 Square[i][j] \u6570\u7ec4\u5143\u7d20\u4e2d&#xff0c;\u7528\u6765\u8868\u793a\u67d0\u4e00\u4e2a\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u3002Square[i][j] \u7528\u6765\u8868\u793a i \u53f7\u884c\u3001j \u53f7\u5217\u7684\u50cf\u7d20\u65b9\u683c&#xff0c;\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u7684\u884c\u5217\u53f7\u90fd\u662f\u4ece 0 \u5f00\u59cb\u7f16\u53f7\u3002\u8fd9\u4e00\u70b9&#xff0c;\u6211\u4eec\u5728\u672c\u7bc7\u6587\u7ae0\u7684\u7b2c\u4e00\u5206\u8282\u4e2d\u6709\u8bb2\u8ff0&#xff0c;\u5fd8\u4e86\u7684&#xff0c;\u8bf7\u53c2\u8003\u7b2c\u4e00\u5206\u8282\u7684\u76f8\u5173\u5185\u5bb9\u3002<\/p>\n<p>\u5bf9\u4e8e\u67d0\u4e00\u4e2a\u6a21\u62df\u50cf\u7d20\u65b9\u683c&#xff0c;\u5982\u679c\u5b83\u662f 3 \u53f7\u5217&#xff0c;\u5219\u8fd9\u4e2a\u65b9\u683c\u7684\u5de6\u4fa7\u7684\u7ad6\u7ebf\u662f 3 \u53f7\u7ad6\u7ebf&#xff0c;\u53f3\u4fa7\u7684\u7ad6\u7ebf\u662f 4 \u53f7\u7ad6\u7ebf\u3002\u5bf9\u4e8e\u4e00\u4e2a\u5c5e\u4e8e j \u53f7\u5217\u7684\u6a21\u62df\u50cf\u7d20\u65b9\u683c&#xff0c;\u5b83\u7684\u5de6\u4fa7\u548c\u53f3\u4fa7\u7684\u7ad6\u7ebf\u7684\u7f16\u53f7\u5206\u522b\u662f j \u53f7\u7ad6\u7ebf\u548c (j&#043;1) \u53f7\u7ad6\u7ebf\u3002<\/p>\n<p>\u5bf9\u4e8e\u67d0\u4e00\u4e2a\u6a21\u62df\u50cf\u7d20\u65b9\u683c&#xff0c;\u5982\u679c\u5b83\u662f 6\u00a0\u53f7\u884c&#xff0c;\u5219\u8fd9\u4e2a\u65b9\u683c\u7684\u4e0a\u4fa7\u7684\u6a2a\u7ebf\u662f\u00a06\u00a0\u53f7\u6a2a\u7ebf&#xff0c;\u4e0b\u4fa7\u7684\u6a2a\u7ebf\u662f\u00a07\u00a0\u53f7\u6a2a\u7ebf\u3002\u5bf9\u4e8e\u4e00\u4e2a\u5c5e\u4e8e i\u00a0\u53f7\u884c\u7684\u6a21\u62df\u50cf\u7d20\u65b9\u683c&#xff0c;\u5b83\u7684\u4e0a\u4fa7\u548c\u4e0b\u4fa7\u7684\u6a2a\u7ebf\u7684\u7f16\u53f7\u5206\u522b\u662f i\u00a0\u53f7\u6a2a\u7ebf\u548c (i&#043;1) \u53f7\u6a2a\u7ebf\u3002<\/p>\n<p>\u5982\u56fe10 \u6240\u793a&#xff0c;\u6211\u4eec\u5728\u8bbe\u7f6e rect \u7684 left\u3001top\u3001right\u3001bottom \u56db\u4e2a\u5b57\u6bb5\u7684\u65f6\u5019&#xff0c;\u5206\u522b\u8fdb\u884c\u4e86\u5de6\u4e0a\u52a02\u3001\u53f3\u4e0b\u51cf1 \u7684\u8bbe\u5b9a\u3002\u4e3a\u4ec0\u4e48\u8fd9\u6837\u5462&#xff1f;<\/p>\n<p>\u518d\u7528\u753b\u5237\u586b\u5145\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u7684\u65f6\u5019&#xff0c;\u6211\u5e0c\u671b&#xff0c;\u6d82\u8272\u7684\u90e8\u5206\u4e0e\u56db\u5468\u7684\u7528 MoveToEx\u3001LineTo \u51fd\u6570\u5bf9\u7ed8\u5236\u7684\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u77e9\u9635\u6846\u67b6\u4e4b\u95f4&#xff0c;\u80fd\u591f\u7a7a\u51fa\u6765\u4e00\u70b9\u50cf\u7d20&#xff0c;\u800c\u4e0d\u662f\u8bf4\u6d82\u8272\u7684\u90e8\u5206\u5c06\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u56db\u5468\u7684\u6846\u67b6\u7ed9\u5b8c\u5168\u8986\u76d6\u6389\u6216\u662f\u7d27\u6328\u7740\u3002<\/p>\n<p>\u5de6\u4e0a\u52a02,\u3001\u53f3\u4e0b\u51cf1&#xff0c;\u662f\u6211\u81ea\u5df1\u8bd5\u51fa\u6765\u7684\u4e00\u4e2a\u7ed3\u679c&#xff0c;\u4f60\u4e5f\u53ef\u4ee5\u81ea\u5df1\u5c06\u5176\u8c03\u6574\u4e3a\u522b\u7684\u503c&#xff0c;\u6bd4\u5982\u5de6\u4e0a\u52a03\u3001\u53f3\u4e0b\u51cf2&#xff0c;\u6216\u8005\u662f\u5176\u5b83\u7684\u4f60\u89c9\u5f97\u770b\u7740\u5408\u9002\u7684\u503c\u3002<\/p>\n<h4>&#xff08;4&#xff09;\u5c0f\u7ed3<\/h4>\n<p>\u5230\u4e86\u8fd9\u91cc&#xff0c;\u4ee3\u7801\u90e8\u5206&#xff0c;\u6211\u76f8\u4fe1&#xff0c;\u6211\u5df2\u7ecf\u662f\u5927\u81f4\u8bb2\u5b8c\u4e86\u3002<\/p>\n<p>\u8fd8\u6709\u4e0d\u61c2\u7684&#xff0c;\u4f60\u53ef\u4ee5\u8bc4\u8bba\u6216\u8005\u662f\u79c1\u4fe1\u8054\u7cfb\u6211\u3002<\/p>\n<\/p>\n<h2>\u4e09.\u00a0 \u00a0 \u4ee3\u7801\u7f16\u8bd1<\/h2>\n<p>\u7a0b\u5e8f\u7684\u7f16\u8bd1\u548c\u8fd0\u884c\u65b9\u6cd5&#xff0c;\u5982\u679c\u4f60\u5fd8\u4e86&#xff0c;\u53ef\u4ee5\u53c2\u7167\u4e0b\u8ff0\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>\u81f3\u4e8e\u7a0b\u5e8f\u7684\u8fd0\u884c\u7ed3\u679c&#xff0c;\u5b83\u5dee\u4e0d\u591a\u5c31\u662f\u56fe3 \u5566\u3002<\/p>\n<p>\u6211\u4eec\u518d\u6b21\u5c06\u56fe3 \u7ed9\u8d34\u5728\u4e0b\u9762&#xff0c;\u5b83\u5dee\u4e0d\u591a\u5c31\u662f\u672c\u8282\u7a0b\u5e8f\u7684\u8fd0\u884c\u7ed3\u679c\u3002<\/p>\n<p> <img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903125655-6a996e97a5e96.png\" \/> <\/p>\n<p>  \u56fe3 \u526f\u672c&#xff0c;\u7a0b\u5e8f\u8fd0\u884c\u7ed3\u679c<\/p>\n<p><span style=\"color:#fe2c24\">\u4e3a\u5565\u662f\u5dee\u4e0d\u591a\u5462&#xff1f;<\/span><\/p>\n<p>\u56e0\u4e3a&#xff0c;\u6211\u4e00\u5f00\u59cb\u5728\u7528\u7f16\u7a0b\u7684\u65b9\u5f0f\u6765\u7ed8\u5236\u56fe3 \u7684\u65f6\u5019&#xff0c;\u6211\u7ed9\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u6d82\u8272\u65f6\u6240\u7528\u7684\u51fd\u6570&#xff0c;\u662f\u5728\u4ee5\u540e\u7684\u8bfe\u8282\u4e2d\u4f1a\u8bb2\u5230\u7684 FillRect \u51fd\u6570\u3002\u800c\u6b64\u65f6&#xff0c;\u6211\u5728\u7ed9\u5927\u5bb6\u8bb2\u89e3 GDI \u7ed8\u56fe\u4ee3\u7801\u65f6&#xff0c;\u6211\u7ed9\u6a21\u62df\u50cf\u7d20\u65b9\u683c\u6d82\u8272\u65f6\u6240\u7528\u7684\u51fd\u6570&#xff0c;\u662f\u5e94\u7528\u4e86 NULL_PEN \u5907\u7528\u753b\u7b14\u7684 Rectangle \u51fd\u6570\u3002<\/p>\n<p>\u4e5f\u5c31\u662f&#xff0c;\u6211\u4eec\u5728\u7ed8\u5236\u56fe3 \u65f6\u5b9e\u9645\u4f7f\u7528\u7684\u51fd\u6570&#xff0c;\u662f FillRect \u51fd\u6570\u3002\u800c\u672c\u8282\u4ee3\u7801\u4e2d&#xff0c;\u6211\u4eec\u4e3a\u4e86\u4e0d\u8d85\u7eb2&#xff0c;\u4e3a\u4e86\u65e9\u4e00\u70b9\u7ed9\u5927\u5bb6\u6f14\u793a GDI \u7ed8\u56fe\u4ee3\u7801&#xff0c;\u6211\u4eec\u4e34\u65f6\u5c06 FillRect \u51fd\u6570\u66ff\u6362\u4e3a\u5e94\u7528\u4e86 NULL_PEN \u5907\u7528\u753b\u7b14\u7684 Rectangle \u51fd\u6570\u3002<\/p>\n<p>\u5e94\u7528\u4e86 NULL_PEN \u5907\u7528\u753b\u7b14\u7684 Rectangle \u51fd\u6570\u7684\u884c\u4e3a\u4e0e FillRect \u51fd\u6570\u7684\u884c\u4e3a\u7565\u6709\u4e0d\u540c&#xff0c;\u6240\u4ee5&#xff0c;\u5728\u4f60\u90a3\u91cc&#xff0c;\u5b9e\u9645\u8fd0\u884c\u7ed3\u679c\u4f1a\u4e0e\u56fe3 \u7565\u6709\u4e0d\u540c\u3002<span style=\"color:#fe2c24\">\u6b64\u65f6&#xff0c;\u8bf7\u4e0d\u8981\u6df1\u62a0\u8fd9\u70b9\u7ec6\u8282\u3002<\/span><\/p>\n<\/p>\n<h2 style=\"background-color:transparent\">\u7ed3\u675f\u8bed<\/h2>\n<p>\u672c\u8282\u5185\u5bb9&#xff0c;\u5b57\u6570\u4e0d\u5c11&#xff0c;\u6211\u4e5f\u89c9\u5f97\u6709\u4e9b\u7d2f\u4e86\u3002<\/p>\n<p>\u52a1\u5fc5\u5b66\u597d\u672c\u8282\u5185\u5bb9\u3002<\/p>\n<p>\u4e0b\u4e00\u8282&#xff0c;\u6211\u5c06\u5c55\u793a\u00a0BigFontPic \u9879\u76ee\u4ee3\u7801&#xff0c;\u5b83\u4e0e\u672c\u8282\u4ee3\u7801\u7684\u903b\u8f91\u5f88\u76f8\u4f3c&#xff0c;\u53ea\u662f\u5c11\u6570\u7684\u51e0\u4e2a\u53d8\u91cf\u503c&#xff0c;\u6211\u8bbe\u7f6e\u6210\u4e86\u5176\u5b83\u7684\u6837\u5b50\u3002\u90a3\u4e2a\u4ee3\u7801&#xff0c;\u6211\u5c06\u5176\u4f5c\u4e3a\u4e00\u4e2a\u601d\u8003\u9898&#xff0c;\u8bf7\u5927\u5bb6\u81ea\u884c\u5206\u6790\u5176\u903b\u8f91\u3002<\/p>\n<\/p>\n<h2>\u4e13\u680f\u5bfc\u822a<\/h2>\n<p>\u4e0a\u4e00\u7bc7&#xff1a;\u7b2c5\u7ae0&#xff0c;[Win32 \u7ae0\u8282] &#xff1a;\u7528\u753b\u5237\u586b\u5145\u5185\u90e8<\/p>\n<p>\u56de\u5230\u76ee\u5f55<\/p>\n<p>\u4e0b\u4e00\u7bc7&#xff1a;\u7b2c5\u7ae0&#xff0c;[Win32 \u7ae0\u8282] &#xff1a;\u7ec3\u4e60\u7a0b\u5e8f&#xff0c;BigFontPic<\/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;\u7528\u753b\u5237\u586b\u5145\u5185\u90e8<br \/>\n\u56de\u5230\u76ee\u5f55<br \/>\n\u4e0b\u4e00\u7bc7&#xff1a;\u7b2c5\u7ae0&#xff0c;[Win32 \u7ae0\u8282] &#xff1a;\u7ec3\u4e60\u7a0b\u5e8f&#xff0c;BigFontPic<br \/>\n\u672c\u4e13\u680f\u8bfe\u4ef6<br \/>\n\u5173\u4e8e\u672c\u4e13\u680f\u8bfe\u4ef6\u7684\u83b7\u53d6\u65b9\u6cd5&#xff0c;\u8bf7\u53c2\u8003\u4e0b\u8ff0\u8bfe\u8282\u3002<br \/>\n\u53c2\u8003\u8bfe\u8282&#xff1a;MFC\u7b14\u8bb0&#xff1a;\u672c\u4e13\u680f\u8bfe\u4ef6<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<\/p>\n","protected":false},"author":2,"featured_media":100061,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,174,790,149],"topic":[],"class_list":["post-100072","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\u7ec3\u4e60\u7a0b\u5e8f\uff0cLittleFontPic - \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\/100072.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\u7ec3\u4e60\u7a0b\u5e8f\uff0cLittleFontPic - \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;\u7528\u753b\u5237\u586b\u5145\u5185\u90e8 \u56de\u5230\u76ee\u5f55 \u4e0b\u4e00\u7bc7&#xff1a;\u7b2c5\u7ae0&#xff0c;[Win32 \u7ae0\u8282] &#xff1a;\u7ec3\u4e60\u7a0b\u5e8f&#xff0c;BigFontPic \u672c\u4e13\u680f\u8bfe\u4ef6 \u5173\u4e8e\u672c\u4e13\u680f\u8bfe\u4ef6\u7684\u83b7\u53d6\u65b9\u6cd5&#xff0c;\u8bf7\u53c2\u8003\u4e0b\u8ff0\u8bfe\u8282\u3002 \u53c2\u8003\u8bfe\u8282&#xff1a;MFC\u7b14\u8bb0&#xff1a;\u672c\u4e13\u680f\u8bfe\u4ef6 \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\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/100072.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-03T12:56:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903125655-6a996e9712a9a.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=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/100072.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/100072.html\",\"name\":\"\u7b2c5\u7ae0\uff0c[Win32 \u7ae0\u8282] \uff1a\u7ec3\u4e60\u7a0b\u5e8f\uff0cLittleFontPic - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-03T12:56:57+00:00\",\"dateModified\":\"2026-09-03T12:56:57+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/100072.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/100072.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/100072.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\u7ec3\u4e60\u7a0b\u5e8f\uff0cLittleFontPic\"}]},{\"@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\u7ec3\u4e60\u7a0b\u5e8f\uff0cLittleFontPic - \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\/100072.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7b2c5\u7ae0\uff0c[Win32 \u7ae0\u8282] \uff1a\u7ec3\u4e60\u7a0b\u5e8f\uff0cLittleFontPic - \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;\u7528\u753b\u5237\u586b\u5145\u5185\u90e8 \u56de\u5230\u76ee\u5f55 \u4e0b\u4e00\u7bc7&#xff1a;\u7b2c5\u7ae0&#xff0c;[Win32 \u7ae0\u8282] &#xff1a;\u7ec3\u4e60\u7a0b\u5e8f&#xff0c;BigFontPic \u672c\u4e13\u680f\u8bfe\u4ef6 \u5173\u4e8e\u672c\u4e13\u680f\u8bfe\u4ef6\u7684\u83b7\u53d6\u65b9\u6cd5&#xff0c;\u8bf7\u53c2\u8003\u4e0b\u8ff0\u8bfe\u8282\u3002 \u53c2\u8003\u8bfe\u8282&#xff1a;MFC\u7b14\u8bb0&#xff1a;\u672c\u4e13\u680f\u8bfe\u4ef6 \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","og_url":"https:\/\/www.wsisp.com\/helps\/100072.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-03T12:56:57+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260903125655-6a996e9712a9a.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/100072.html","url":"https:\/\/www.wsisp.com\/helps\/100072.html","name":"\u7b2c5\u7ae0\uff0c[Win32 \u7ae0\u8282] \uff1a\u7ec3\u4e60\u7a0b\u5e8f\uff0cLittleFontPic - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-03T12:56:57+00:00","dateModified":"2026-09-03T12:56:57+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/100072.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/100072.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/100072.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\u7ec3\u4e60\u7a0b\u5e8f\uff0cLittleFontPic"}]},{"@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\/100072","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=100072"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/100072\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/100061"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=100072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=100072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=100072"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=100072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}