{"id":57,"date":"2017-04-16T22:15:16","date_gmt":"2017-04-16T14:15:16","guid":{"rendered":"http:\/\/www.winradar.com\/?p=57"},"modified":"2025-02-13T11:13:05","modified_gmt":"2025-02-13T03:13:05","slug":"57","status":"publish","type":"post","link":"http:\/\/www.winradar.com\/?p=57","title":{"rendered":"Duilib\u767e\u79d1"},"content":{"rendered":"<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">Duilib \u662f\u4e00\u6b3e\u5f3a\u5927\u7684\u754c\u9762\u5f00\u53d1\u5de5\u5177\uff0c\u53ef\u4ee5\u5c06\u7528\u6237\u754c\u9762\u548c\u5904\u7406\u903b\u8f91\u5f7b\u5e95\u5206\u79bb\uff0c\u6781\u5927\u5730\u63d0\u9ad8\u7528\u6237\u754c\u9762\u7684\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<h2 style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">\u7b80\u4ecb<\/h2>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">\u56fd\u5185\u9996\u4e2a\u5f00\u6e90 \u7684directui \u754c\u9762\u5e93\uff0c\u5f00\u653e\uff0c\u5171\u4eab\uff0c\u60e0\u4f17\uff0c\u5171\u8d62\uff0c\u9075\u5faabsd\u534f\u8bae\uff0c\u53ef\u4ee5\u514d\u8d39\u7528\u4e8e\u5546\u4e1a\u9879\u76ee\uff0c\u76ee\u524d\u652f\u6301Windows 32 \u3001Window CE\u3001Mobile\u7b49\u5e73\u53f0\u3002<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">\u63d0\u4f9b\u6240\u89c1\u5373\u6240\u5f97\u7684\u5f00\u53d1\u5de5\u5177UIDesigner\u3002\u4f7f\u7528DirectUI\u540e\u5c06\u4f7f\u5f97\u6211\u4eec\u7684\u8bbe\u8ba1\u4eba\u5458\u5f7b\u5e95\u89e3 \u653e\uff0c\u4e0d\u4f1a\u53d7\u5230\u5f00\u53d1\u7684\u675f\u7f1a\uff0c\u53ef\u4ee5\u5145\u5206\u5730\u53d1\u6325\u5176\u8bbe\u8ba1\u80fd\u529b\u6765\u8bbe\u8ba1\u8f6f\u4ef6\u754c\u9762\uff0c\u5e76\u53c2\u4e0e\u5230\u7528\u6237\u754c\u9762\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u3002 Duilib \u76ee\u524d\u652f\u6301Windows 32 \u3001Window CE\u3001Mobile\u7b49\u5e73\u53f0\uff0c\u4f7f\u7528C++\u5f00\u53d1\uff0c\u9075\u5faaBSD\u534f\u8bae\uff0c\u53ef\u4ee5\u514d\u8d39\u7528\u4e8e\u5546\u4e1a\u9879\u76ee \u3002<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">DirectUI\u754c\u9762\u5e93 \u53d6\u540d\u81ea\u5fae\u8f6f\u7684\u4e00\u4e2a\u7a97\u53e3\u7c7b\u540d\u201cDirectUIHWND\u201d\uff0c\u610f\u4e3aPaint on parent dc directly\u3002 \u5373\u5b50\u7a97\u53e3\u4e0d\u4ee5\u7a97\u53e3\u53e5\u67c4\u7684\u5f62\u5f0f\u521b\u5efa\uff0c\u53ea\u662f\u903b\u8f91\u4e0a\u7684\u7a97\u53e3\uff0c\u7ed8\u5236\u5728\u7236\u7a97\u53e3\u4e4b\u4e0a\u3002<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">DirectUI\u754c\u9762\u5e93\u4f7f\u7528XML\u6765\u63cf\u8ff0\u754c\u9762\u98ce\u683c\uff0c\u754c\u9762\u5e03\u5c40\uff0c\u53ef \u4ee5\u5f88\u65b9\u4fbf\u7684\u6784\u5efa\u9ad8\u6548\uff0c\u7eda\u4e3d\u7684\uff0c\u975e\u5e38\u6613\u4e8e\u6269\u5c55\u7684\u754c\u9762\u3002\u4ece\u800c\u5f88\u597d\u7684\u5c06\u754c\u9762\u548c\u903b\u8f91\u5206\u79bb\uff0c\u540c\u65f6\u6613\u4e8e\u5b9e\u73b0\u5404\u79cd\u8d85\u70ab\u7684\u754c\u9762\u6548\u679c\u5982\u6362\u8272\uff0c\u6362\u80a4\uff0c\u900f\u660e\u7b49\u3002<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">Duilib\u754c\u9762\u5e93\u662f\u4e00\u6b3e\u7531\u676d\u5dde\u6708\u7259\u513f\u7f51\u7edc\u6280\u672f\u6709\u9650\u516c\u53f8\u5f00\u53d1\u7684\u754c\u9762\u5f00\u53d1\u5e93\uff0c\u5b83\u53ef\u4ee5\u5c06\u7528\u6237\u754c\u9762\u548c\u5904\u7406\u903b\u8f91\u5f7b\u5e95\u5206\u79bb\uff0c\u6781\u5927\u5730\u63d0\u9ad8\u7528\u6237\u754c\u9762\u7684\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">Duilib\u754c\u9762\u5e93\u7684\u51fa\u73b0\u89e3\u51b3\u4e86\u4f7f\u7528\u4f20\u7edfMFC\u754c\u9762\u5e93\u5f00\u53d1\u8f6f\u4ef6\u4e0d\u7f8e\u89c2\u3001\u754c\u9762\u7ec6\u8282\u5904\u7406\u4e0d\u597d\u3001\u4f7f\u7528\u786c\u7f16\u7801\u3001\u5f00\u53d1\u6548\u7387\u4f4e\u4e0b\u3001\u751f\u6210\u7a0b\u5e8f\u4f53\u79ef\u5927\u7b49\u95ee\u9898\u3002\u800c\u4e14\u4f20\u7edfMFC\u754c\u9762\u7f8e\u5316\u5e93\u5927\u90fd\u4f7f\u7528HOOK\u7b49\u5bf9\u7cfb\u7edf\u5f71\u54cd\u6bd4\u8f83\u5927\u7684\u6280\u672f\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7cfb\u7edf\u4e0d\u7a33\u5b9a\u6216\u8005\u5f15\u53d1\u5176\u4ed6\u9519\u8bef\u3002\u800cDuilib\u754c\u9762\u5e93\u5b8c\u5168\u57fa\u4e8eGDI\u5728\u7a97\u53e3\u4e0a\u81ea\u7ed8\uff0c\u65e0\u5176\u4ed6\u4f9d\u8d56\uff0c\u672a\u4f7f\u7528\u7279\u6b8a\u6216\u5371\u9669\u7684\u7cfb\u7edf\u8c03\u7528\uff0c\u80fd\u591f\u5f88\u597d\u7684\u89e3\u51b3\u4f20\u7edfMFC\u754c\u9762\u7684\u4e00\u7cfb\u5217\u95ee\u9898\u3002<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">Duilib\u754c\u9762\u5e93\u5b8c\u5168\u517c\u5bb9ActiveX\u63a7\u4ef6\uff08\u5982\u5e38\u89c1\u7684IE\u63a7\u4ef6\u548cFlash\uff09\uff0c\u4e5f\u53ef\u4ee5\u548cMFC\u7b49\u754c\u9762\u5e93\u914d\u5408\u4f7f\u7528\uff0c\u7528\u6237\u5b8c\u5168\u53ef\u4ee5\u4e0d\u7528\u62c5\u5fc3\u5207\u6362\u5230Duilib\u754c\u9762\u5e93\u4e0a\u9762\u4f1a\u5e26\u6765\u989d\u5916\u7684\u6210\u672c\u6216\u8005Duilib\u754c\u9762\u5e93\u4f1a\u51fa\u73b0\u529f\u80fd\u4e0d\u591f\u7528\u7b49\u60c5\u51b5\u3002<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">Duilib\u754c\u9762\u5e93\u53ef\u5e7f\u6cdb\u7528\u4e8e\u4e92\u8054\u7f51\u5ba2\u6237\u7aef\u3001\u5de5\u5177\u8f6f\u4ef6\u5ba2\u6237\u7aef\u3001\u7ba1\u7406\u7cfb\u7edf\u5ba2\u6237\u7aef\u3001\u591a\u5a92\u4f53\u5ba2\u6237\u7aef\uff08\u5982KTV\u3001\u89e6\u6478\u5c4f\uff09\u3001\u8f66\u8f7d\u7535\u8111\u7cfb\u7edf\u3001gps\u7cfb\u7edf\u548c\u624b\u673a\u5ba2\u6237\u7aef\u8f6f\u4ef6\u7b49\u3002<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">Duilib\u754c\u9762\u5e93\u53ef\u4ee5\u5e7f\u6cdb\u8fd0\u884c\u5728windows98\u3001Windows2000\u3001WindowsXP\u3001Windows2003\u3001Windows Vista\u3001Windows7\u3001Windows8\u3001WindowsCE5\u3001WindowsCE6\u3001Windows Mobile6\u7b49\u5e73\u53f0\u4e0a\uff0c\u76ee\u524d\u652f\u6301\u7684\u5f00\u53d1\u5de5\u5177\u5305\u62ecvc6\u3001vc2003\u3001vc2005\u3001vc2008\u3001vc2010\u3002<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">Duilib\u754c\u9762\u5e93\u57fa\u4e8eviksoe\u7684DirectUI\u9879\u76ee\uff0c\u5e76\u4e14\u4ee5BSD\u534f\u8bae\u5f00\u6e90\u3002<\/p>\n<h2 style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">\u6280\u672f\u7279\u70b9<\/h2>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">XML\u548c\u811a\u672c\u6784\u9020\u754c\u9762\uff1a \u4f7f\u7528xml\u914d\u7f6e\u754c\u9762\u63a7\u4ef6\u5e03\u5c40 \u4f7f\u7528xml\u63cf\u8ff0\u754c\u9762\u98ce\u683c XML\u8bed\u6cd5\u7b80\u5355\uff0c\u6613\u4e8e\u5b66\u4e60 \u548c\u638c\u63e1 \u652f\u6301\u6539\u53d8\u76ae\u80a4\u8272\u8c03 \u652f\u6301\u5927\u591a\u6570\u63a7\u4ef6\u900f\u660e\uff0c\u5305\u62ec\u5b50\u7a97\u53e3\u900f\u660e \u652f\u6301png, bitmap, gif, ico\u56fe\u7247\u683c\u5f0f\u3002\u652f\u6301\u5e26\u900f\u660e\u901a\u9053\u7684png \u56fe\u7247<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">\u8fd9\u91cc\u662f\u4f7f\u7528Duilib\u505a\u7684\u4e00\u4e2a demo<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">1\u3001\u754c\u9762\u4e0e\u4e1a\u52a1\u903b\u8f91\u5206\u79bb<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">2\u3001 \u4f7f\u7528XML\u914d\u7f6e\u754c\u9762<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">3\u3001 \u754c\u9762\u5e03\u5c40\u65b9\u5f0f\u7075\u6d3b\u591a\u6837<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">4\u3001 \u5185\u7f6e\u5e38\u7528\u7684\u63a7\u4ef6<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">5\u3001 <span id=\"_baidu_bookmark_start_16\" style=\"line-height: 0px\">\u200d<\/span>\n<span id=\"_baidu_bookmark_start_18\" style=\"line-height: 0px\">\u200d<\/span>\u652f\u6301\u81ea\u5b9a\u4e49\u63a7\u4ef6<span id=\"_baidu_bookmark_end_17\" style=\"line-height: 0px\">\u200d<\/span>\n<span id=\"_baidu_bookmark_end_19\" style=\"line-height: 0px\">\u200d<\/span><\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">6\u3001\u5f3a\u5927\u7684\u63a7\u4ef6\u7ec4\u5408\u80fd\u529b\uff0c\u590d\u6742\u529f\u80fd\u53ef\u901a\u8fc7\u7b80\u5355\u63a7\u4ef6\u7ec4\u5408\u5b8c\u6210<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">7\u3001\u5f3a\u5927\u7684\u4e8b\u4ef6\u5904\u7406\u673a\u5236<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">8\u3001\u57fa\u4e8eGDI\u548c\u810f\u77e9\u5f62\u7684\u9ad8\u6548\u7ed8\u5236\u6280\u672f<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">9\u3001\u652f\u6301\u591a\u79cd\u8d44\u6e90\u65b9\u5f0f\uff0c\u652f\u6301\u591a\u79cd\u56fe\u7247\u683c\u5f0f<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">10\u3001\u652f\u6301alpha\u6df7\u5408\uff0c\u652f\u6301\u7a97\u53e3\u900f\u660e<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">11\u3001\u5f3a\u5927\u7684\u56fe\u7247\u7ed8\u5236\u63cf\u8ff0\u65b9\u5f0f<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">12\u3001\u7c7bhtml\u5b57\u7b26\u4e32\u7ed8\u5236\u6280\u672f<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">13\u3001\u652f\u6301\u52a8\u6001\u53d8\u6362\u8272\u8c03<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">14\u3001\u652f\u6301\u52a8\u6001\u5207\u6362\u8d44\u6e90\u4f4d\u7f6e\u65b9\u5f0f\u6362\u80a4<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">15\u3001\u652f\u6301ansi\u548cunicode\uff0c\u652f\u6301\u591a\u56fd\u5bb6\u8bed\u8a00<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">16\u3001\u652f\u6301\u63d2\u4ef6\u7cfb\u7edf<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">17\u3001\u5185\u5b58\u5360\u7528\u5c0f<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">18\u3001\u65e0\u7b2c\u4e09\u65b9\u5e93\u4f9d\u8d56<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">19\u3001\u63d0\u4f9b\u53ef\u89c1\u5373\u6240\u5f97\u7684ui\u7f16\u8f91\u5668<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">20\u3001\u4e30\u5bcc\u6613\u4e0a\u624b\u7684demo\u4f8b\u5b50<\/p>\n<p style=\"text-align: left;text-indent: 0em;margin-left: 0em;margin-top: 10px\">21\u3001\u53ef\u4ee5\u975e\u5e38\u5bb9\u6613\u548cmfc\u3001wtl\u7ed3\u5408\u4f7f\u7528<\/p>","protected":false},"excerpt":{"rendered":"<p>Duilib \u662f\u4e00\u6b3e\u5f3a\u5927\u7684\u754c\u9762\u5f00\u53d1\u5de5\u5177\uff0c\u53ef\u4ee5\u5c06\u7528\u6237\u754c\u9762\u548c\u5904\u7406\u903b\u8f91\u5f7b\u5e95\u5206\u79bb\uff0c\u6781\u5927\u5730\u63d0\u9ad8\u7528\u6237\u754c\u9762\u7684\u5f00\u53d1\u6548\u7387\u3002 \u7b80\u4ecb \u56fd\u5185\u9996\u4e2a\u5f00\u6e90 \u7684directui \u754c\u9762\u5e93\uff0c\u5f00\u653e\uff0c\u5171\u4eab\uff0c\u60e0\u4f17\uff0c\u5171\u8d62\uff0c\u9075\u5faabsd\u534f\u8bae\uff0c\u53ef\u4ee5\u514d\u8d39\u7528\u4e8e\u5546\u4e1a\u9879\u76ee\uff0c\u76ee\u524d\u652f\u6301Windows 32 \u3001Wind<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-duilib","category-opensource","comments-off"],"_links":{"self":[{"href":"http:\/\/www.winradar.com\/index.php?rest_route=\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.winradar.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.winradar.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.winradar.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.winradar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=57"}],"version-history":[{"count":4,"href":"http:\/\/www.winradar.com\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":169,"href":"http:\/\/www.winradar.com\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions\/169"}],"wp:attachment":[{"href":"http:\/\/www.winradar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.winradar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.winradar.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}