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. i want to use menu in dialog box.

i want to use menu in dialog box.

Scheduled Pinned Locked Moved C / C++ / MFC
question
9 Posts 5 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
    Amit Agarrwal
    wrote on last edited by
    #1

    i want to use menu in dialog box..how can i use it. thanx

    D _ W H 4 Replies Last reply
    0
    • A Amit Agarrwal

      i want to use menu in dialog box..how can i use it. thanx

      D Offline
      D Offline
      Dreamz
      wrote on last edited by
      #2

      1. Create a Menu Eg:IDR_MENU1 2. Open Dialog properties 3. Select IDR_MENU1 in Menu property.

      A 1 Reply Last reply
      0
      • A Amit Agarrwal

        i want to use menu in dialog box..how can i use it. thanx

        _ Offline
        _ Offline
        _AnsHUMAN_
        wrote on last edited by
        #3

        Go to Resources> Add A menu (SAY IDR_MYMENU) Go to dialog editor. Right click for the property window. In the property window select the menu you want to show Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

        A 1 Reply Last reply
        0
        • _ _AnsHUMAN_

          Go to Resources> Add A menu (SAY IDR_MYMENU) Go to dialog editor. Right click for the property window. In the property window select the menu you want to show Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

          A Offline
          A Offline
          Amit Agarrwal
          wrote on last edited by
          #4

          hello thanx..its working can i handle menu similarly as i handle for the Doc/View Archicture. thanx.

          _ 1 Reply Last reply
          0
          • D Dreamz

            1. Create a Menu Eg:IDR_MENU1 2. Open Dialog properties 3. Select IDR_MENU1 in Menu property.

            A Offline
            A Offline
            Amit Agarrwal
            wrote on last edited by
            #5

            hello thanx..its working can i handle menu similarly as i handle for the Doc/View Archicture. thanx.

            D 1 Reply Last reply
            0
            • A Amit Agarrwal

              i want to use menu in dialog box..how can i use it. thanx

              W Offline
              W Offline
              wlwlxj
              wrote on last edited by
              #6

              VC6 Dialog->Properties->General->Menu set Meun ID in the Combox ddddddddddddddddddddd

              1 Reply Last reply
              0
              • A Amit Agarrwal

                hello thanx..its working can i handle menu similarly as i handle for the Doc/View Archicture. thanx.

                _ Offline
                _ Offline
                _AnsHUMAN_
                wrote on last edited by
                #7

                Yeah In the OnCommand function of your dialog do this

                switch(wParam)
                {
                case ID_FILE_HELLO:
                              AfxMessageBox("i am here");
                              break;
                // etc follow with more options
                }
                

                Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

                1 Reply Last reply
                0
                • A Amit Agarrwal

                  hello thanx..its working can i handle menu similarly as i handle for the Doc/View Archicture. thanx.

                  D Offline
                  D Offline
                  Dreamz
                  wrote on last edited by
                  #8

                  Yes :)

                  1 Reply Last reply
                  0
                  • A Amit Agarrwal

                    i want to use menu in dialog box..how can i use it. thanx

                    H Offline
                    H Offline
                    Hamid Taebi
                    wrote on last edited by
                    #9

                    Create your program (for example CDialog) then go to resource and right click in resource and use Add resource in this window use Menu and ok now you can insert elements after insert item you can right click in each element and use Add event handler... in the class list you can select your class and click Add and edit then if it work you can see your function that depend to menu and write your code. ----------- (2) if you dont want to use resource you can create your menu (dymanic) that of course its not easy than to use above way_**


                    **_

                    whitesky


                    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