Click here to Skip to main content
13,626,876 members
Rate this:
 
Please Sign up or sign in to vote.
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 18-Aug-14 6:27am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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!
  Permalink  
v2

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.180712.1 | Last Updated 18 Aug 2014
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100