Changeset 74473 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Sep 26, 2018 11:55:28 AM (6 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/VBoxTray
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp
r74442 r74473 173 173 } 174 174 175 reset();175 Reset(); 176 176 177 177 RTCritSectDelete(&mCritSect); … … 441 441 * - there was no drop data from the guest available and the user 442 442 * enters the guest screen again after this unsuccessful operation */ 443 reset();443 Reset(); 444 444 return 0; 445 445 } … … 615 615 case VBGLR3DNDEVENTTYPE_GH_ERROR: 616 616 { 617 reset();617 Reset(); 618 618 rc = VINF_SUCCESS; 619 619 break; … … 647 647 648 648 /* If anything went wrong, do a reset and start over. */ 649 reset();649 Reset(); 650 650 } 651 651 … … 783 783 #endif 784 784 785 reset();785 Reset(); 786 786 setMode(HG); 787 787 … … 972 972 LogRel(("DnD: Drag and drop operation aborted\n")); 973 973 974 reset();974 Reset(); 975 975 976 976 int rc = VINF_SUCCESS; … … 1091 1091 rc = rc2; 1092 1092 1093 reset();1093 Reset(); 1094 1094 1095 1095 return rc; … … 1245 1245 1246 1246 LogRel2(("DnD: Host refuses drag and drop operation from guest: %Rrc\n", rc2)); 1247 reset();1247 Reset(); 1248 1248 } 1249 1249 } 1250 1250 1251 1251 if (RT_FAILURE(rc)) 1252 reset(); /* Reset state on failure. */1252 Reset(); /* Reset state on failure. */ 1253 1253 1254 1254 LogFlowFuncLeaveRC(rc); … … 1280 1280 rc = pDropTarget->WaitForDrop(5 * 1000 /* 5s timeout */); 1281 1281 1282 reset();1282 Reset(); 1283 1283 } 1284 1284 else if (mState == Dropped) … … 1538 1538 * Resets the proxy window. 1539 1539 */ 1540 void VBoxDnDWnd:: reset(void)1540 void VBoxDnDWnd::Reset(void) 1541 1541 { 1542 1542 LogFlowThisFunc(("Resetting, old mMode=%ld, mState=%ld\n", … … 1833 1833 /* Make sure our proxy window is hidden when an error occured to 1834 1834 * not block the guest's UI. */ 1835 pWnd-> hide();1835 pWnd->Reset(); 1836 1836 1837 1837 int rc2 = VbglR3DnDGHSendError(&pCtx->cmdCtx, rc); -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.h
r74442 r74473 332 332 void OnDestroy(void); 333 333 334 /* H ->G*/334 /* Host -> Guest */ 335 335 int OnHgEnter(const RTCList<RTCString> &formats, VBOXDNDACTIONLIST dndLstActionsAllowed); 336 336 int OnHgMove(uint32_t u32xPos, uint32_t u32yPos, VBOXDNDACTION dndAction); … … 341 341 342 342 #ifdef VBOX_WITH_DRAG_AND_DROP_GH 343 /* Guest -> Host */ 343 344 int OnGhIsDnDPending(void); 344 345 int OnGhDrop(const RTCString &strFormat, VBOXDNDACTION dndActionDefault); … … 348 349 int ProcessEvent(PVBOXDNDEVENT pEvent); 349 350 350 public: 351 void Reset(void); 352 353 protected: 351 354 352 355 int hide(void); 353 354 protected:355 356 356 int makeFullscreen(void); 357 357 int mouseMove(int x, int y, DWORD dwMouseInputFlags); 358 358 int mouseRelease(void); 359 void reset(void);360 359 int setMode(Mode enmMode); 361 360 -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnDDropTarget.cpp
r74448 r74473 262 262 263 263 if (mpWndParent) 264 mpWndParent-> hide();264 mpWndParent->Reset(); 265 265 266 266 return S_OK; … … 549 549 550 550 if (mpWndParent) 551 mpWndParent-> hide();551 mpWndParent->Reset(); 552 552 553 553 LogFlowFunc(("Returning with hr=%Rhrc (%Rrc), mFormatEtc.cfFormat=%RI16 (%s), *pdwEffect=%RI32\n",
Note:
See TracChangeset
for help on using the changeset viewer.