Implementing WM_MENUDRAG & WM_MENUGETOBJECT in menus
-
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.
-
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.
-
benjamin23 wrote:
but i dont know how to continue processing this event
You call DoDragDrop[^]
led mike
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.