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 create dynamically popupmenu?

how to create dynamically popupmenu?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
8 Posts 7 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.
  • Y Offline
    Y Offline
    yogish293
    wrote on last edited by
    #1

    i wanted to create dynamically popupmenu on clicking rightclick... the item may very more than thousands worst case otherwise hundreds only. Is it possible?

    C C L J H 6 Replies Last reply
    0
    • Y yogish293

      i wanted to create dynamically popupmenu on clicking rightclick... the item may very more than thousands worst case otherwise hundreds only. Is it possible?

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #2

      yogish293 wrote:

      s it possible?

      Did you try? :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      1 Reply Last reply
      0
      • Y yogish293

        i wanted to create dynamically popupmenu on clicking rightclick... the item may very more than thousands worst case otherwise hundreds only. Is it possible?

        C Offline
        C Offline
        Cedric Moonen
        wrote on last edited by
        #3

        For how long are you going to repost the same question ? You already got a lot of answers suggesting that it was a very bad design. Why don't you look at it from the user point of view and see if you can't use a more user-friendly approach ?

        Cédric Moonen Software developer
        Charting control [v3.0] OpenGL game tutorial in C++

        1 Reply Last reply
        0
        • Y yogish293

          i wanted to create dynamically popupmenu on clicking rightclick... the item may very more than thousands worst case otherwise hundreds only. Is it possible?

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

          How much more information do you need on this? You have already been shown:

          1. This is not a good design, and you should consider alternatives.
          2. If you insist on doing it this way then you probably need to use a virtual menu - i.e. owner drawn.

          I must get a clever new signature for 2011.

          1 Reply Last reply
          0
          • Y yogish293

            i wanted to create dynamically popupmenu on clicking rightclick... the item may very more than thousands worst case otherwise hundreds only. Is it possible?

            J Offline
            J Offline
            jk chan
            wrote on last edited by
            #5

            In that case instead of using regular menu , create a WS_POPUP style window, and handle the drawing and messages for performance improvement.

            If u can Dream... U can do it

            1 Reply Last reply
            0
            • Y yogish293

              i wanted to create dynamically popupmenu on clicking rightclick... the item may very more than thousands worst case otherwise hundreds only. Is it possible?

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

              I guess you have to back to your class because its not a problem its very a basic question to write it,I think you dont know this secret(we have a site on the net its name is codeproject it has many articles(about menus and pop up menus,....) Please dont read this post its a secret.

              Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

              Y 1 Reply Last reply
              0
              • H Hamid Taebi

                I guess you have to back to your class because its not a problem its very a basic question to write it,I think you dont know this secret(we have a site on the net its name is codeproject it has many articles(about menus and pop up menus,....) Please dont read this post its a secret.

                Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

                Y Offline
                Y Offline
                yogish293
                wrote on last edited by
                #7

                thanks to all

                1 Reply Last reply
                0
                • Y yogish293

                  i wanted to create dynamically popupmenu on clicking rightclick... the item may very more than thousands worst case otherwise hundreds only. Is it possible?

                  J Offline
                  J Offline
                  JohnCz
                  wrote on last edited by
                  #8

                  Anything is possible; the question is: IS IT FEASABLE? Why would you want to create menu with hundreds, not to mention thousand items. Put yourself in a position of a user of your application and imagine browsing hundreds of items to find one to choose. You have to rethink your design.

                  JohnCz MS C++ MVP

                  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