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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MDI frame "Window" menu / submenu dynamics - where to start?

MDI frame "Window" menu / submenu dynamics - where to start?

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
6 Posts 2 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.
  • V Offline
    V Offline
    Vaclav_
    wrote on last edited by
    #1

    Standard MFC MDI adds new view(s) to “Window” menu submenu. Could someone give me a hint how is it accomplished when the application starts? I am little familiar with dynamic menu / submenu operation but I cannot find how it gets started in creation of submenu under “Window” menu item. I did not get very far tracing the creation of the main frame. Any help will be as always appreciated. Cheers

    L 1 Reply Last reply
    0
    • V Vaclav_

      Standard MFC MDI adds new view(s) to “Window” menu submenu. Could someone give me a hint how is it accomplished when the application starts? I am little familiar with dynamic menu / submenu operation but I cannot find how it gets started in creation of submenu under “Window” menu item. I did not get very far tracing the creation of the main frame. Any help will be as always appreciated. Cheers

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

      It uses CMenu::InsertMenuItem[^]. MDI is now largely deprecated in favour of CTabbedPane[^].

      V 1 Reply Last reply
      0
      • L Lost User

        It uses CMenu::InsertMenuItem[^]. MDI is now largely deprecated in favour of CTabbedPane[^].

        V Offline
        V Offline
        Vaclav_
        wrote on last edited by
        #3

        Thanks Richard, I know about InsertMenuItem, I was looking for where in the initial setup is it used and I found it. As far as CTabbedPane I have made two decisions - if I get an income from my programming hobby I'll spring for the latest MS VS or I'll ditch my VC6.0 and start over using Linux. Just for illustration - I did checked MS site for "2013 requirements" and my IE locked up. Unless I am wrong - MS express / semifree stuff does not come with MFC.

        L 1 Reply Last reply
        0
        • V Vaclav_

          Thanks Richard, I know about InsertMenuItem, I was looking for where in the initial setup is it used and I found it. As far as CTabbedPane I have made two decisions - if I get an income from my programming hobby I'll spring for the latest MS VS or I'll ditch my VC6.0 and start over using Linux. Just for illustration - I did checked MS site for "2013 requirements" and my IE locked up. Unless I am wrong - MS express / semifree stuff does not come with MFC.

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

          True, MFC is not provided free with the Express editions. However, if you decide to switch to C# you get the complete .NET development library, which provides everything that MFC does, and more.

          V 1 Reply Last reply
          0
          • L Lost User

            True, MFC is not provided free with the Express editions. However, if you decide to switch to C# you get the complete .NET development library, which provides everything that MFC does, and more.

            V Offline
            V Offline
            Vaclav_
            wrote on last edited by
            #5

            But ... don't I have to "upgrade" to windows x.y to keep the .NET current? If so it is still spending $ on this hobby which I could use on bying beer.

            L 1 Reply Last reply
            0
            • V Vaclav_

              But ... don't I have to "upgrade" to windows x.y to keep the .NET current? If so it is still spending $ on this hobby which I could use on bying beer.

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

              Your choice, of course. Stick with whichever technology you prefer.

              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