windows - What does & mean in a MENUITEM in a .rc file? -


i beginner in windows programming. have seen .rc file looks

idr_mainframe menu preload discardable   begin      popup "&file"      begin          menuitem "&new",                        id_file_new          menuitem "&open...\tctrl+o",            id_file_open          menuitem separator          menuitem "p&rint setup...",             id_file_print_setup          menuitem separator          menuitem "recent file",                 id_file_mru_file1, grayed          menuitem separator          menuitem "e&xit",                       id_app_exit      end  end 

can explain me & mean in menuitem "&new"
, mean in menuitem "e&xit" ?

& defines accelerator entry - menu entry corresponding "&file" can selected pressing "f" when menu active or "alt+f" top level choices.

same applies dialog resources.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -