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. Implementing WM_MENUDRAG & WM_MENUGETOBJECT in menus

Implementing WM_MENUDRAG & WM_MENUGETOBJECT in menus

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

    I believe everyone has seen the “favorites” or bookmarks menu in IE, it has the amazing ability to allow the user to drag object from outside the application (the desktop, exporer you choose), the user can also accommodate the menu items inside the menu by dragging them around. I know I’ve to set MNS_DRAGDROP dwStyle for the menu by using SetMenuInfo. I’m able to catch WM_MENUDRAG messages when I start dragging menuItems but i dont know how to continue processing this event, i know i've to return either MND_ENDMENU or MND_CONTINUE. Im barley at the beginning and I was looking for tome tips and notes about this issue, maybe someone has already done something similar before. Thanks.

    L 1 Reply Last reply
    0
    • B benjamin23

      I believe everyone has seen the “favorites” or bookmarks menu in IE, it has the amazing ability to allow the user to drag object from outside the application (the desktop, exporer you choose), the user can also accommodate the menu items inside the menu by dragging them around. I know I’ve to set MNS_DRAGDROP dwStyle for the menu by using SetMenuInfo. I’m able to catch WM_MENUDRAG messages when I start dragging menuItems but i dont know how to continue processing this event, i know i've to return either MND_ENDMENU or MND_CONTINUE. Im barley at the beginning and I was looking for tome tips and notes about this issue, maybe someone has already done something similar before. Thanks.

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      benjamin23 wrote:

      but i dont know how to continue processing this event

      You call DoDragDrop[^]

      led mike

      B 1 Reply Last reply
      0
      • L led mike

        benjamin23 wrote:

        but i dont know how to continue processing this event

        You call DoDragDrop[^]

        led mike

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

        Well, i´ve done that, i can drag things arround in a verry wird way, only works for items inside the menu, drop doesnt work it will refuse to, items dont change, im starting to think that this will be a little more difficult than i think. 1 Lots of OLE shit involved, implement DragDropHelper, IDropTargetHelper and maybe IDragSourceHelper ? 2 What about dynamic menus & ownerdraw ? 3 No code examples not even at msdn, and i mean no where, im starting to browse chinese web pages.

        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