Changeset 74442 in vbox
- Timestamp:
- Sep 24, 2018 1:09:14 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/DragAndDropSvc.h
r74439 r74442 67 67 #include <VBox/VMMDevCoreTypes.h> 68 68 #include <VBox/VBoxGuestCoreTypes.h> 69 70 #include <VBox/GuestHost/DragAndDropDefs.h> 69 71 70 72 namespace DragAndDropSvc { -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp
r74439 r74442 917 917 * @param u32yPos Absolute Y position (in pixels) of the host cursor 918 918 * inside the guest. 919 * @param uActionAction the host wants to perform while moving.919 * @param dndAction Action the host wants to perform while moving. 920 920 * Currently ignored. 921 921 */ 922 int VBoxDnDWnd::OnHgMove(uint32_t u32xPos, uint32_t u32yPos, uint32_t uAction)923 { 924 RT_NOREF( uAction);922 int VBoxDnDWnd::OnHgMove(uint32_t u32xPos, uint32_t u32yPos, VBOXDNDACTION dndAction) 923 { 924 RT_NOREF(dndAction); 925 925 int rc; 926 926 … … 928 928 if (mMode == HG) 929 929 { 930 LogFlowThisFunc(("u32xPos=%RU32, u32yPos=%RU32, uAction=0x%x\n",931 u32xPos, u32yPos, uAction));930 LogFlowThisFunc(("u32xPos=%RU32, u32yPos=%RU32, dndAction=0x%x\n", 931 u32xPos, u32yPos, dndAction)); 932 932 933 933 rc = mouseMove(u32xPos, u32yPos, MOUSEEVENTF_LEFTDOWN); … … 1264 1264 * @param pszFormat Format the host requests the data in. 1265 1265 * @param cbFormat Size (in bytes) of format string. 1266 * @param uDefActionDefault action on the host.1267 */ 1268 int VBoxDnDWnd::OnGhDrop(const RTCString &strFormat, uint32_t uDefAction)1269 { 1270 RT_NOREF( uDefAction);1271 1272 LogFlowThisFunc(("mMode=%ld, mState=%ld, pDropTarget=0x%p, strFormat=%s, uDefAction=0x%x\n",1273 mMode, mState, pDropTarget, strFormat.c_str(), uDefAction));1266 * @param dndActionDefault Default action on the host. 1267 */ 1268 int VBoxDnDWnd::OnGhDrop(const RTCString &strFormat, uint32_t dndActionDefault) 1269 { 1270 RT_NOREF(dndActionDefault); 1271 1272 LogFlowThisFunc(("mMode=%ld, mState=%ld, pDropTarget=0x%p, strFormat=%s, dndActionDefault=0x%x\n", 1273 mMode, mState, pDropTarget, strFormat.c_str(), dndActionDefault)); 1274 1274 int rc; 1275 1275 if (mMode == GH) -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.h
r74439 r74442 97 97 public: 98 98 99 uint32_t GetCurrentAction(void) { return muCurAction; }99 VBOXDNDACTION GetCurrentAction(void) { return mDnDActionCurrent; } 100 100 101 101 public: /* IUnknown methods. */ … … 119 119 DWORD mdwCurEffect; 120 120 /** Current action to perform on the host. */ 121 uint32_t muCurAction;121 VBOXDNDACTION mDnDActionCurrent; 122 122 }; 123 123 … … 333 333 334 334 /* H->G */ 335 int OnHgEnter(const RTCList<RTCString> &formats, uint32_t uAllActions);336 int OnHgMove(uint32_t u32xPos, uint32_t u32yPos, uint32_t uAllActions);335 int OnHgEnter(const RTCList<RTCString> &formats, VBOXDNDACTIONLIST dndLstActionsAllowed); 336 int OnHgMove(uint32_t u32xPos, uint32_t u32yPos, VBOXDNDACTION dndAction); 337 337 int OnHgDrop(void); 338 338 int OnHgLeave(void); … … 342 342 #ifdef VBOX_WITH_DRAG_AND_DROP_GH 343 343 int OnGhIsDnDPending(void); 344 int OnGhDrop(const RTCString &strFormat, uint32_t uDefAction);344 int OnGhDrop(const RTCString &strFormat, VBOXDNDACTION dndActionDefault); 345 345 #endif 346 346 -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnDDropSource.cpp
r74411 r74442 37 37 mpWndParent(pParent), 38 38 mdwCurEffect(0), 39 m uCurAction(VBOX_DND_ACTION_IGNORE)39 mDnDActionCurrent(VBOX_DND_ACTION_IGNORE) 40 40 { 41 41 LogFlowFuncEnter(); … … 97 97 { 98 98 #if 1 99 LogFlowFunc(("fEscapePressed=%RTbool, dwKeyState=0x%x, mdwCurEffect=%RI32, m uCurAction=%RU32\n",100 fEscapePressed, dwKeyState, mdwCurEffect, m uCurAction));99 LogFlowFunc(("fEscapePressed=%RTbool, dwKeyState=0x%x, mdwCurEffect=%RI32, mDnDActionCurrent=%RU32\n", 100 fEscapePressed, dwKeyState, mdwCurEffect, mDnDActionCurrent)); 101 101 #endif 102 102 … … 105 105 { 106 106 mdwCurEffect = 0; 107 m uCurAction= VBOX_DND_ACTION_IGNORE;107 mDnDActionCurrent = VBOX_DND_ACTION_IGNORE; 108 108 109 109 LogFlowFunc(("Canceled\n")); … … 146 146 147 147 mdwCurEffect = dwEffect; 148 m uCurAction= uAction;148 mDnDActionCurrent = uAction; 149 149 150 150 return DRAGDROP_S_USEDEFAULTCURSORS;
Note:
See TracChangeset
for help on using the changeset viewer.