Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MFC SDI popup menu

MFC SDI popup menu

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alexander 1983
    wrote on last edited by
    #1

    I have mfc sdi aplication and i need to change the popup menu text i can chage the submenu items by ading event handler ON_UPDATE_COMMAND but i cant do with the file menu because i dont have an id.Anyone knows a function to do that? Thank You.

    L N 2 Replies Last reply
    0
    • A alexander 1983

      I have mfc sdi aplication and i need to change the popup menu text i can chage the submenu items by ading event handler ON_UPDATE_COMMAND but i cant do with the file menu because i dont have an id.Anyone knows a function to do that? Thank You.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You can probably find some useful function in the CMenu[^] class.

      It's time for a new signature.

      1 Reply Last reply
      0
      • A alexander 1983

        I have mfc sdi aplication and i need to change the popup menu text i can chage the submenu items by ading event handler ON_UPDATE_COMMAND but i cant do with the file menu because i dont have an id.Anyone knows a function to do that? Thank You.

        N Offline
        N Offline
        Niklas L
        wrote on last edited by
        #3

        There are id's there too. Have a look in your menu resource, and you will find the appropriate identifiers. ID_FILE_OPEN ID_FILE_CLOSE ID_FILE_SAVE ID_FILE_SAVE_AS ... I hope you're not trying to use numbers instead of identifiers.

        home

        A 1 Reply Last reply
        0
        • N Niklas L

          There are id's there too. Have a look in your menu resource, and you will find the appropriate identifiers. ID_FILE_OPEN ID_FILE_CLOSE ID_FILE_SAVE ID_FILE_SAVE_AS ... I hope you're not trying to use numbers instead of identifiers.

          home

          A Offline
          A Offline
          alexander 1983
          wrote on last edited by
          #4

          thak you i find them but i cand find for the FILE i have FILE -??? NEW ID_FILE_NEW OPEN ID_FILE_OPEN but the File dont have

          N 1 Reply Last reply
          0
          • A alexander 1983

            thak you i find them but i cand find for the FILE i have FILE -??? NEW ID_FILE_NEW OPEN ID_FILE_OPEN but the File dont have

            N Offline
            N Offline
            Niklas L
            wrote on last edited by
            #5

            Ok, I misunderstood what item you wanted to change. See Richards answer above. You can get the menu of the CMainFrame using GetMenu() Look at this entry for a sample: CWnd::GetMenu()[^] The pMain will be your CMainFrame pointer.

            home

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups