{"id":37713,"date":"2004-09-29T07:00:00","date_gmt":"2004-09-29T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2004\/09\/29\/what-does-boldface-on-a-menu-mean\/"},"modified":"2004-09-29T07:00:00","modified_gmt":"2004-09-29T07:00:00","slug":"what-does-boldface-on-a-menu-mean","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20040929-00\/?p=37713","title":{"rendered":"What does boldface on a menu mean?"},"content":{"rendered":"<p>On many context menus you will see an item in boldface. For example, if you right-click a text file, you will most likely see &#8220;Open&#8221; in boldface at the top of the mean. What does the boldface mean?<\/p>\n<p> The boldface menu item is the default command for that menu. It represents the action that would have occurred if you had double-clicked the item instead of viewing its context menu. <\/p>\n<p> In the above example, the fact that &#8220;Open&#8221; is in boldface means that if you had double-clicked the text file instead of right-clicked it, you would have opened the document. <\/p>\n<p> Programmatically, the default menu item is set via <a href=\"http:\/\/msdn.microsoft.com\/library\/en-us\/winui\/WinUI\/WindowsUserInterface\/Resources\/Menus\/MenuReference\/MenuFunctions\/SetMenuDefaultItem.asp\"> the SetMenuDefaultItem function<\/a> and can be retrieved with the corresponding <a href=\"http:\/\/msdn.microsoft.com\/library\/en-us\/winui\/WinUI\/WindowsUserInterface\/Resources\/Menus\/MenuReference\/MenuFunctions\/GetMenuDefaultItem.asp\"> GetMenuDefaultItem function<\/a> <\/p>\n<p> If you put a default menu item in a submenu, then Windows will invoke the default item in the submenu when you double-clicking the submenu&#8217;s parent. But if you put a default menu item in a top-level menu (i.e., not on a submenu), then it is your responsibility to invoke the default menu item when the user double-clicks the object that led to the menu. (This last bit should be obvious: It is the code for the object being clicked on which decides what to do on a double-click.) <\/p>\n<p> We&#8217;ll see more about default menu commands <a href=\"http:\/\/blogs.msdn.com\/oldnewthing\/archive\/2004\/09\/30\/236133.aspx\"> next time<\/a>. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>On many context menus you will see an item in boldface. For example, if you right-click a text file, you will most likely see &#8220;Open&#8221; in boldface at the top of the mean. What does the boldface mean? The boldface menu item is the default command for that menu. It represents the action that would [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-37713","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>On many context menus you will see an item in boldface. For example, if you right-click a text file, you will most likely see &#8220;Open&#8221; in boldface at the top of the mean. What does the boldface mean? The boldface menu item is the default command for that menu. It represents the action that would [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/37713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=37713"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/37713\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=37713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=37713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=37713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}