Click here to Skip to main content
15,867,949 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm new at mfc
I created a menu via the wizard and the Designer

I think I need to add HMENU MenuHandle; to set fonts and colors.
But I do not know where to add the hendle;

The only code I see the menu I created is here:
in myfileDlg.rc (resorce item)

// Menu
  //

  IDR_MENU1 MENU
  BEGIN
      POPUP "File"
      BEGIN
          MENUITEM "New Project",                 ID_MENU_NEWPROJECT
          MENUITEM "Open Project",                ID_MENU_OPENPROJECT
          MENUITEM "Save ",                       ID_MENU_SAVE
          MENUITEM "Save As...",                  ID_MENU_SAVE_AS
          MENUITEM SEPARATOR
          MENUITEM "Exit",                        ID_MENU_EXIT
      END
      POPUP "About"
      BEGIN
          MENUITEM "About As",                    ID_ABOUT_ABOUTAS
      END
  END
Posted

1 solution

hi,
I am not sure if this is allowed with the wizard drawn menu items but you can definitely do it with user drawn menus.
Take a look at this link for user drawn menus[^]

Also for helpful MFC articles check this out [^].

hope this helps!
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900