{"id":2961,"date":"2019-10-18T16:52:06","date_gmt":"2019-10-18T08:52:06","guid":{"rendered":"https:\/\/www.aoisnow.net\/blog\/?p=2961"},"modified":"2019-10-18T16:52:06","modified_gmt":"2019-10-18T08:52:06","slug":"tont-38303-%e4%b8%ba%e4%bb%80%e4%b9%88%e5%ba%94%e8%af%a5%e4%bd%bf%e7%94%a8%e5%87%b9%e9%99%b7%e7%9a%84%e7%94%a8%e6%88%b7%e5%8c%ba%e5%9f%9f%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.aoisnow.net\/blog\/archives\/2961","title":{"rendered":"TONT 38303 \u4e3a\u4ec0\u4e48\u5e94\u8be5\u4f7f\u7528\u51f9\u9677\u7684\u7528\u6237\u533a\u57df\uff1f"},"content":{"rendered":"<p>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/devblogs.microsoft.com\/oldnewthing\/20040729-00\/?p=38303\" target=\"_blank\" rel=\"noopener\">https:\/\/devblogs.microsoft.com\/oldnewthing\/20040729-00\/?p=38303<\/a><\/p>\n<p class=\"\">The WS_EX_CLIENTEDGE extended window style allows you to create a window whose client area is \u201csunken\u201d. When should you use this style?<\/p>\n<p>\u6269\u5c55\u7a97\u4f53\u6837\u5f0f\u00a0WS_EX_CLIENTEDGE \u5141\u8bb8\u4f60\u521b\u5efa\u4e00\u4e2a\u7528\u6237\u533a\u57df\uff08client area\uff09\u5177\u6709\u300e\u51f9\u9677\u300f\u6548\u679c\u7684\u7a97\u53e3\u3002\u4e3a\u4ec0\u4e48\u8981\u4f7f\u7528\u8fd9\u79cd\u7a97\u53e3\u98ce\u683c\u5462\uff1f<\/p>\n<p class=\"\">The\u00a0<a href=\"http:\/\/msdn.microsoft.com\/library\/en-us\/dnwue\/html\/welcome.asp\" target=\"_blank\" rel=\"noopener\">Guidelines for User Interface Developers and Designers<\/a>\u00a0says in the section on\u00a0<a href=\"http:\/\/msdn.microsoft.com\/library\/en-us\/dnwue\/html\/ch14c.asp\" target=\"_blank\" rel=\"noopener\">the Design of Visual Elements<\/a>\u00a0that the sunken border should be used \u201cto define the work area within a window\u201d.<br \/>\nSpecifically what this means is that a sunken client area indicates that the window is a \u201ccontainer\u201d. So, for example, the Explorer contents pane gets a sunken client area since a folder \u201ccontains\u201d its elements. Users expect to be able to manipulate the items inside a container. By contrast, a dialog box is not a container, so it doesn\u2019t get a sunken client area.<\/p>\n<p>\u300a\u9762\u5411\u5f00\u53d1\u8005\u548c\u8bbe\u8ba1\u5e08\u7684\u7528\u6237\u754c\u9762\u53c2\u8003\u300b\u5728\u201c\u89c6\u89c9\u5143\u7d20\u8bbe\u8ba1\u201d\u4e00\u8282\uff08\u8bd1\u6ce8\uff1a\u539f\u6587\u94fe\u63a5\u5df2\u5931\u6548\uff0c\u6309\u7167\u4e0b\u6587\u63d0\u53ca\u8be5\u8bbe\u8ba1\u539f\u5219\u4e3a1995\u5e74\u65f6\u7684\u4e8b\uff0c<a href=\"https:\/\/www.aoisnow.net\/blog\/wp-content\/uploads\/2019\/10\/Microsoft_WindowsGuidelines.pdf\" target=\"_blank\" rel=\"noopener\">\u53ef\u80fd\u6307\u7684\u662f\u8fd9\u672c\u4e66<\/a>\uff0c<a href=\"https:\/\/www.ics.uci.edu\/~kobsa\/courses\/ICS104\/course-notes\/Microsoft_WindowsGuidelines.pdf\" target=\"_blank\" rel=\"noopener\">PDF\u6587\u4ef6\u539f\u59cb\u94fe\u63a5\u5728\u6b64<\/a>\uff09\u4e2d\uff0c\u5c06\u51f9\u9677\u7684\u8fb9\u6846\u63cf\u8ff0\u4e3a\u201c\u7528\u4ee5\u5728\u7a97\u53e3\u4e2d\u5212\u5b9a\u5de5\u4f5c\u533a\u201d\u3002\u786e\u5207\u6765\u8bf4\uff0c\u5176\u542b\u4e49\u662f\u6307\u51f9\u9677\u7684\u7528\u6237\u533a\u57df\u8868\u660e\u8be5\u7a97\u53e3\u662f\u4e00\u4e2a\u300e\u5bb9\u5668\u300f\u3002\u56e0\u6b64\uff0c\u4ee5\u8d44\u6e90\u7ba1\u7406\u5668\u4e3a\u4f8b\uff0c\u5176\u5185\u5bb9\u9762\u677f\u5373\u4e3a\u4e00\u4e2a\u51f9\u9677\u7684\u7528\u6237\u533a\u57df\uff0c\u6b63\u662f\u7531\u4e8e\u6587\u4ef6\u5939\u300e\u5bb9\u7eb3\u300f\u4e86\u5176\u4e2d\u7684\u5143\u7d20\uff0c\u7528\u6237\u4f1a\u671f\u671b\u5728\u5bb9\u5668\u4e2d\u5bf9\u9879\u76ee\u8fdb\u884c\u64cd\u63a7\u3002\u53cd\u4e4b\uff0c\u5bf9\u8bdd\u6846\u5e76\u975e\u4e00\u4e2a\u300e\u5bb9\u5668\u300f\uff0c\u6545\u5176\u5916\u89c2\u4e0d\u4f1a\u8868\u73b0\u4e3a\u51f9\u9677\u7684\u7528\u6237\u533a\u57df\u3002<\/p>\n<p class=\"\">At least those were the rules back in 1995. Perhaps the rules have changed since then. (Indeed I wouldn\u2019t be surprised if they have.)<\/p>\n<p>\u81f3\u5c111995\u5e74\u7684\u65f6\u5019\u89c4\u5219\u662f\u8fd9\u6837\u7684\u3002\u5728\u90a3\u4ee5\u540e\uff0c\u89c4\u5219\u5927\u6982\u5df2\u7ecf\u53d1\u751f\u53d8\u5316\u4e86\u3002\uff08\u5982\u679c\u786e\u5b9e\u53d1\u751f\u4e86\u53d8\u5316\uff0c\u6211\u4e5f\u4e0d\u4f1a\u611f\u5230\u60ca\u8bb6\u5c31\u662f\u3002\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\u94fe\u63a5\uff1ahttps:\/\/devblogs.microsoft.com\/oldnewthing\/2004072 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-2961","post","type-post","status-publish","format-standard","hentry","category-tont_history"],"_links":{"self":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/posts\/2961","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/comments?post=2961"}],"version-history":[{"count":0,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/posts\/2961\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/media?parent=2961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/categories?post=2961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/tags?post=2961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}