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. Dragable Menu Items

Dragable Menu Items

Scheduled Pinned Locked Moved C / C++ / MFC
algorithms
8 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.
  • B Offline
    B Offline
    benjamin23
    wrote on last edited by
    #1

    Anyone has seen the start menu, there's a cool thing about it. You can edit each menuitem position by dragging items, you can even create application links by dragging things in it, its a really cool feature. You can edit your menu on the fly ! I've searching in the net for something like this but nothing came up, i think this would requiere a lot of codding correct me if im wrong. Maybe on of you guys know the anwser for this little but awezome hidden abillity of the menus. :)

    N M B 3 Replies Last reply
    0
    • B benjamin23

      Anyone has seen the start menu, there's a cool thing about it. You can edit each menuitem position by dragging items, you can even create application links by dragging things in it, its a really cool feature. You can edit your menu on the fly ! I've searching in the net for something like this but nothing came up, i think this would requiere a lot of codding correct me if im wrong. Maybe on of you guys know the anwser for this little but awezome hidden abillity of the menus. :)

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      start menu is not a menu... start menu is created using list view

      nave

      B 1 Reply Last reply
      0
      • B benjamin23

        Anyone has seen the start menu, there's a cool thing about it. You can edit each menuitem position by dragging items, you can even create application links by dragging things in it, its a really cool feature. You can edit your menu on the fly ! I've searching in the net for something like this but nothing came up, i think this would requiere a lot of codding correct me if im wrong. Maybe on of you guys know the anwser for this little but awezome hidden abillity of the menus. :)

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        Check out WM_MENUDRAG and WM_MENUGETOBJECT and related messages.

        --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

        B 1 Reply Last reply
        0
        • N Naveen

          start menu is not a menu... start menu is created using list view

          nave

          B Offline
          B Offline
          benjamin23
          wrote on last edited by
          #4

          I know its not a normal menu, but are you really shure about that, it seems a bit complex for a custom draw list view.

          N 1 Reply Last reply
          0
          • M Michael Dunn

            Check out WM_MENUDRAG and WM_MENUGETOBJECT and related messages.

            --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

            B Offline
            B Offline
            benjamin23
            wrote on last edited by
            #5

            Exelent ! quote from MSDN: "To create a drag-and-drop menu, call SetMenuInfo with MNS_DRAGDROP." http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/menus/menureference/menumessages/wm\_menudrag.asp Thanks a lot. :)

            B 1 Reply Last reply
            0
            • B benjamin23

              I know its not a normal menu, but are you really shure about that, it seems a bit complex for a custom draw list view.

              N Offline
              N Offline
              Naveen
              wrote on last edited by
              #6

              yes. its list view. i checked it by taking the class name of that window

              nave

              1 Reply Last reply
              0
              • B benjamin23

                Anyone has seen the start menu, there's a cool thing about it. You can edit each menuitem position by dragging items, you can even create application links by dragging things in it, its a really cool feature. You can edit your menu on the fly ! I've searching in the net for something like this but nothing came up, i think this would requiere a lot of codding correct me if im wrong. Maybe on of you guys know the anwser for this little but awezome hidden abillity of the menus. :)

                B Offline
                B Offline
                benjamin23
                wrote on last edited by
                #7

                Internet explorer handles drag and drop menu items in the "Favorites" menu, you can drag items from inside the menu, or outside like the desktop, wow this is really cool, i need to get my hands on IE source code :laugh:

                1 Reply Last reply
                0
                • B benjamin23

                  Exelent ! quote from MSDN: "To create a drag-and-drop menu, call SetMenuInfo with MNS_DRAGDROP." http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/menus/menureference/menumessages/wm\_menudrag.asp Thanks a lot. :)

                  B Offline
                  B Offline
                  benjamin23
                  wrote on last edited by
                  #8

                  Are you trying to be funny ? You mush think that im so stupid that i dont know what MSDN is. I appretiate your help i really do, but i believe you get the impression that im a noob here, in fact am not, i been searching the net for the last week and there's no single example on how to handle menus drag and drop operations, yes there are tons of examples on how to properly manage OLE Drag and Drop operations, and i read many of the tutorials specially the one at http://www.catch22.net/tuts/dragdrop.asp. I also know about the existence of these two messages, but thats it, i was hoping to find something a little more concrete. Thanks my fiend.

                  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