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. how to add menu on dialog?

how to add menu on dialog?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestionlearning
5 Posts 4 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
    vividtang
    wrote on last edited by
    #1

    hi: all my program is based on dialog,but i want to add menu for it, i insert a menu resource and with the instruction of classwizard select associate the menu with my dialog,but when i do this ,once runing i found no menu on dialog,why , please lend me a hand. thx

    B T J 3 Replies Last reply
    0
    • V vividtang

      hi: all my program is based on dialog,but i want to add menu for it, i insert a menu resource and with the instruction of classwizard select associate the menu with my dialog,but when i do this ,once runing i found no menu on dialog,why , please lend me a hand. thx

      B Offline
      B Offline
      bikram singh
      wrote on last edited by
      #2

      would have loved to answer, but i dont care to experiment with MFC. MFC sucks big time. Stop using it dude! Give C++ Builder a try, and you'll never come back to VC++ for any of your UI-related tasks. Infact, the only reason VC++ is good is: fast "code-completion". Thats it. From a programmers perspective. Bikram Singh

      T 1 Reply Last reply
      0
      • V vividtang

        hi: all my program is based on dialog,but i want to add menu for it, i insert a menu resource and with the instruction of classwizard select associate the menu with my dialog,but when i do this ,once runing i found no menu on dialog,why , please lend me a hand. thx

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        rigth click onto your dialog and select properties in the context menu. there, you have a property called menu. select the menu you just created (and saved with an explicit name) in the associated combobox... there you dialog have its menu...


        TOXCCT >>> GEII power

        1 Reply Last reply
        0
        • B bikram singh

          would have loved to answer, but i dont care to experiment with MFC. MFC sucks big time. Stop using it dude! Give C++ Builder a try, and you'll never come back to VC++ for any of your UI-related tasks. Infact, the only reason VC++ is good is: fast "code-completion". Thats it. From a programmers perspective. Bikram Singh

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          hey, who do you think you are ??? if you don't like visual C++, don't use it... and don't register to codeproject either... moreover, vividtang was asking about adding a menu into a dialog, and your answer don't have any reason to be here... :mad: poor boy you are :suss: X|


          TOXCCT >>> GEII power

          1 Reply Last reply
          0
          • V vividtang

            hi: all my program is based on dialog,but i want to add menu for it, i insert a menu resource and with the instruction of classwizard select associate the menu with my dialog,but when i do this ,once runing i found no menu on dialog,why , please lend me a hand. thx

            J Offline
            J Offline
            Johan Rosengren
            wrote on last edited by
            #5

            You'll have to associate the resources, if you have not already done that. In MSVC++, you select the dialog box properties in the resource editor, and select the menu from the dropdown Menu. Note that you will not be able to see the menu in the resource editor - it only shows when running the program.

            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