{"id":308,"date":"2013-06-05T20:21:56","date_gmt":"2013-06-05T12:21:56","guid":{"rendered":"http:\/\/blog.sorayuki.net\/?p=308"},"modified":"2013-09-26T15:09:48","modified_gmt":"2013-09-26T07:09:48","slug":"%e5%af%b9%e8%af%9d%e6%a1%86%e5%bc%80%e4%b8%8d%e5%bc%80","status":"publish","type":"post","link":"https:\/\/blog.sorayuki.net\/?p=308","title":{"rendered":"\u5bf9\u8bdd\u6846\u5f00\u4e0d\u5f00"},"content":{"rendered":"<p>\u5199\u4e86\u4e2a\u5fc3\u7eee\u697c\u6539\u540d\u5de5\u5177\uff0c\u5176\u5b9e\u5c31\u662f\u7ed9\u4f60\u8f6c\u4e2a\u5185\u7801\u6539\u4e2a\u6587\u4ef6\u540d\u7684\u4e1c\u897f\uff0c\u671f\u95f4\u7528\u5230\u4e86\u5f00\u542f\u5bf9\u8bdd\u6846\u663e\u793a\u56fe\u5f62\u754c\u9762\u7684API\u51fd\u6570DialogBox\u3002\u4f46\u662f\u4f3c\u4e4e\u5728\u67d0\u4e2a\u7528\u6237\u7684\u7cfb\u7edf\u91cc\uff0c\u5bf9\u8bdd\u6846\u8fde\u5f00\u90fd\u5f00\u4e0d\u8d77\u6765\u3002\u8fd9\u91cc\u9762\u6709\u4ec0\u4e48\u5b66\u95ee\u5b9e\u5728\u4e0d\u77e5\u3002\u672c\u6765\u662f\u60f3\u7528GetLastError\u8ba9\u8be5\u7528\u6237\u534f\u52a9\u4e00\u4e0b\u7684\uff0c\u4e0d\u8fc7\u5728\u90a3\u4e4b\u524d\u6211\u53bbqq\u4e0a\u6572\u4e86Riatre\u4e00\u4e0b\uff0c\u60f3\u8bd5\u8bd5\u80fd\u4e0d\u80fd\u6572\u8bc8\u51fa\u4ec0\u4e48\u73b0\u6210\u7684\u7ecf\u9a8c\u6765\u3002<\/p>\n<p>\u7ed3\u679c\u5c45\u7136\u662f\u5927\u6709\u6536\u83b7\u3002\u6211\u7528Resedit\u5236\u4f5c\u7684\u5bf9\u8bdd\u6846\u8d44\u6e90\uff0c\u548cVisual Studio\u81ea\u5e26\u7684\u8d44\u6e90\u7f16\u8f91\u5668\u5236\u4f5c\u7684\u8d44\u6e90\u6bd4\u8d77\u6765\uff0c\u5bf9\u8bdd\u6846\u5c11\u4e86DS_NOFAILCREATE\u6837\u5f0f\uff08 <a title=\"http:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/ff729172(v=vs.85).aspx\" href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/ff729172(v=vs.85).aspx\">http:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/ff729172(v=vs.85).aspx<\/a> \u6216\u8005VS\u5e2e\u52a9\u6587\u6863\u7684Windows desktop app development -&gt; windows application ui development -&gt; dialog boxes -&gt; dialog box styles\uff09\u3002\u8fd9\u6837\u5f0f\u770b\u540d\u5b57\uff0c\u4e0d\u592a\u50cf\u662f\u6b63\u5e38\u60c5\u51b5\u4e0b\u9700\u8981\u5f00\u542f\u7684\u554a\u2026\u2026\u4f46\u662fVS\u81ea\u5e26\u7684\u8d44\u6e90\u7f16\u8f91\u5668\u5c45\u7136\u4f1a\u7ed9\u4f60\u52a0\u8fd9\u4e2a\uff01\u5751\u7239\u554a\u2026\u2026<\/p>\n<p>Resedit\u5728\u5bf9\u8bdd\u6846\u7684\u5c5e\u6027\u91cc\u6709\u4e00\u4e2aNo Fail Create\uff0c\u8bbe\u4e3atrue\u5373\u53ef\u3002<\/p>\n<p>\u53e6\uff1a\u636e\u8bf4\u5f53\u5e74\u8403\u68a6\u60f3\u7684config\u6253\u4e0d\u5f00\u4e5f\u548c\u6ca1\u6709\u8fd9\u4e2a\u6837\u5f0f\u6709\u5173<\/p>\n<p>&nbsp;<\/p>\n<p>\u4f46\u662f\u4e8b\u60c5\u8fd8\u6ca1\u5b8c\uff0c\u52a0\u4e0a\u8fd9\u4e2a\u6837\u5f0f\u4ee5\u540e\uff0c\u90a3\u4e2a\u4eba\u8fd8\u662f\u8ddf\u6211\u8bf4\u6ca1\u89e3\u51b3\u3002\u4f46\u662f\u8bbe\u7f6e\u6210\u517c\u5bb9win2000\u53ef\u4ee5\u3002\u6211\u5c31\u89c9\u5f97\u5f88\u5947\u602a\u3002\u7a81\u7136\u95f4\u60f3\u8d77\u6765xp\u6837\u5f0f\u90a3\u8fb9\uff0c\u597d\u50cf\u9664\u4e86\u52a0\u6e05\u5355\u6587\u4ef6\uff0c\u8fd8\u8981InitCommonControls\u4e00\u4e0b\u3002\u6240\u4ee5\u6211\u5728\u521b\u5efa\u5bf9\u8bdd\u6846\u524d\u52a0\u4e86\u8fd9\u4e2a\u51fd\u6570\u3002\u2026\u2026\u7ed3\u679c\u95ee\u9898\u89e3\u51b3\u4e86<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5199\u4e86\u4e2a\u5fc3\u7eee\u697c\u6539\u540d\u5de5\u5177\uff0c\u5176\u5b9e\u5c31\u662f\u7ed9\u4f60\u8f6c\u4e2a\u5185\u7801\u6539\u4e2a\u6587\u4ef6\u540d\u7684\u4e1c\u897f\uff0c\u671f\u95f4\u7528\u5230\u4e86\u5f00\u542f\u5bf9\u8bdd\u6846\u663e\u793a\u56fe\u5f62\u754c\u9762\u7684API\u51fd\u6570Dia &hellip; <a href=\"https:\/\/blog.sorayuki.net\/?p=308\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u5bf9\u8bdd\u6846\u5f00\u4e0d\u5f00<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-308","post","type-post","status-publish","format-standard","hentry","category-windows"],"_links":{"self":[{"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=\/wp\/v2\/posts\/308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=308"}],"version-history":[{"count":0,"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=\/wp\/v2\/posts\/308\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.sorayuki.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}