{"id":2276,"date":"2018-08-21T08:11:34","date_gmt":"2018-08-21T00:11:34","guid":{"rendered":"https:\/\/www.aoisnow.net\/blog\/?p=2276"},"modified":"2018-08-21T08:11:34","modified_gmt":"2018-08-21T00:11:34","slug":"tont-42293-%e4%b8%ba%e4%bb%80%e4%b9%88%e4%b8%8d%e8%83%bd%e5%9c%a8%e5%bc%80%e5%a7%8b%e8%8f%9c%e5%8d%95%e4%b8%ad%e4%bd%bf%e7%94%a8%e5%8a%a0%e9%80%9f%e5%99%a8%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.aoisnow.net\/blog\/archives\/2276","title":{"rendered":"TONT 42293 \u4e3a\u4ec0\u4e48\u4e0d\u80fd\u5728\u5f00\u59cb\u83dc\u5355\u4e2d\u4f7f\u7528&#038;\u52a0\u901f\u5668\uff1f"},"content":{"rendered":"<p>\u4e0d\uff0c\u4e0d\u53ef\u80fd\u6709\u4eba\u53eb\u8fd9\u4e2a\u540d\u5b57\u2026\u2026\u7b49\u7b49\uff1f<\/p>\n<p><!--more--><\/p>\n<p>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/20031003-00\/?p=42293\" target=\"_blank\" rel=\"noopener\">https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/20031003-00\/?p=42293<\/a><\/p>\n<p>The first letter of the program is the accelerator and there&#8217;s nothing you can do about it. So if you have ten programs by Microsoft, they all use the accelerator &#8220;M&#8221;. (Yes I hate this too. The first thing I do after installing a Microsoft program is go into the Start menu and delete the word &#8220;Microsoft&#8221; from the front.)<\/p>\n<p>\uff08\u5f00\u59cb\u83dc\u5355\u4e2d\u7684\uff09\u5e94\u7528\u7a0b\u5e8f\u9996\u5b57\u6bcd\u5c31\u662f\u52a0\u901f\u5668\uff08\u8bd1\u6ce8\uff1a\u52a0\u901f\u5668\u662f\u6307\u5355\u952e\u6216\u4e00\u4e2a\u7ec4\u5408\u952e\u5373\u53ef\u6fc0\u6d3b\u5bf9\u5e94\u529f\u80fd\u7684\u5feb\u6377\u952e\uff0c\u5982\u83dc\u5355\u9879\u4e2d\u5e38\u89c1\u7684\uff1a\u6253\u5f00\uff08<span style=\"text-decoration: underline;\">O<\/span>\uff09\uff0c\u8fd9\u4e2a\u300eO\u300f\u5c31\u662f\u300e\u52a0\u901f\u5668\u300f\uff09\uff0c\u5e76\u4e14\u4f60\u4e0d\u80fd\u5bf9\u8fd9\u4e2a\u8bbe\u8ba1\u8fdb\u884c\u4fee\u6539\u3002\u6240\u4ee5\uff0c\u5982\u679c\u4f60\u5b89\u88c5\u4e86\u5341\u4e2a\u5fae\u8f6f\u51fa\u54c1\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5b83\u4eec\u90fd\u4f1a\u7528\u4e0a\u52a0\u901f\u5668M\uff08\u8bd1\u6ce8\uff1a\u90fd\u662fM\u5f00\u5934\u7684\uff09\u3002\uff08\u6ca1\u9519\uff0c\u6211\u4e5f\u4e0d\u559c\u6b22\u8fd9\u6837\u3002\u6211\u4e2a\u4eba\u88c5\u5b8c\u5fae\u8f6f\uff08\u81ea\u5bb6\uff09\u7684\u4ea7\u54c1\u540e\u7b2c\u4e00\u4ef6\u4e8b\u5c31\u662f\u8dd1\u5230\u5f00\u59cb\u83dc\u5355\u91cc\uff0c\u5220\u6389\u7a0b\u5e8f\u9879\u5f00\u5934\u7684\u300eMicrosoft\u300f\u5b57\u6837\u3002\uff09<\/p>\n<p>For Win32 menus, the ampersand character acts as the marker for the menu accelerator. For example, you would set your menu text to &#8220;Save &amp;As&#8221; to set Alt+A as the accelerator for the menu item.<\/p>\n<p>\u5bf9Win32\u5e94\u7528\u7a0b\u5e8f\u7684\u83dc\u5355\u800c\u8a00\uff0c\u300e&amp;\u300f\u5b57\u7b26\u5c31\u662f\u83dc\u5355\u52a0\u901f\u5668\u7684\u524d\u5bfc\u5b57\u7b26\u3002\u4f8b\u5982\uff0c\u4f60\u8bbe\u8ba1\u7a0b\u5e8f\u65f6\u8bbe\u7f6e\u67d0\u4e2a\u83dc\u5355\u9879\u7684\u6587\u672c\u662f\u300eSave &amp;As\u300f\uff0c\u90a3\u4e48Alt+A\u5c31\u662f\u8fd9\u4e2a\u83dc\u5355\u9879\u7684\u52a0\u901f\u5668\u3002<\/p>\n<p>This isn&#8217;t done for the Start menu and for the Favorites menu because the ampersand appears in program names occasionally. Otherwise, &#8220;AT&amp;T Internet&#8221; would end up displaying as &#8220;AT<span style=\"text-decoration: underline;\">T<\/span> Internet&#8221;. (This was a real problem in Windows 95, where the Start menu was constructed from your old Program Manager groups, and occasionally we&#8217;d run across one that had an ampersand in its name.)<\/p>\n<p>\u8fd9\u4e2a\u8bbe\u8ba1\u6ca1\u6709\u5e94\u7528\u5230\u5f00\u59cb\u83dc\u5355\u548c\u6536\u85cf\u5939\u76ee\u5f55\u4e2d\uff0c\u56e0\u4e3a&amp;\u5b57\u7b26\u5076\u5c14\u4f1a\u51fa\u73b0\u5728\u7a0b\u5e8f\u7684\u540d\u5b57\u91cc\u3002\u4e0d\u7136\u7684\u8bdd\uff0c\u300eAT&amp;T Internet\u300f\u5c31\u4f1a\u53d8\u6210\u300eAT<span style=\"text-decoration: underline;\">T<\/span> Internet\u300f\uff08\u8bd1\u6ce8\uff1a\u6ce8\u610f\u7b2c\u4e8c\u4e2aT\u7684\u4e0b\u5212\u7ebf\uff09\u3002\uff08\u8fd9\u5728Windows 95\u7684\u5e74\u4ee3\u662f\u4e2a\u5927\u95ee\u9898\uff0c\u90a3\u65f6\u7684\u5f00\u59cb\u83dc\u5355\u53ef\u80fd\u662f\u4ece\uff08Windows 3.x\u7684\uff09\u7a0b\u5e8f\u7ba1\u7406\u5668\u7684\u7a0b\u5e8f\u7ec4\u5347\u7ea7\u800c\u6765\uff0c\u5076\u5c14\u5c31\u4f1a\u53d1\u73b0\u8f6c\u6362\u800c\u6765\u7684\u9879\u76ee\u4e2d\u5192\u51fa\u6765\u4e2a\u5e26\u300e&amp;\u300f\u5b57\u7b26\u7684\u60c5\u51b5\u3002\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0d\uff0c\u4e0d\u53ef\u80fd\u6709\u4eba\u53eb\u8fd9\u4e2a\u540d\u5b57\u2026\u2026\u7b49\u7b49\uff1f<\/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-2276","post","type-post","status-publish","format-standard","hentry","category-tont_history"],"_links":{"self":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/posts\/2276","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=2276"}],"version-history":[{"count":0,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/posts\/2276\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/media?parent=2276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/categories?post=2276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/tags?post=2276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}