VirtualBox

Changeset 74473 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Sep 26, 2018 11:55:28 AM (6 years ago)
Author:
vboxsync
Message:

DnD/VBoxTray: Made the proxy window's reset() function public and use that one instead of hide() from other places.

Location:
trunk/src/VBox/Additions/WINNT/VBoxTray
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp

    r74442 r74473  
    173173    }
    174174
    175     reset();
     175    Reset();
    176176
    177177    RTCritSectDelete(&mCritSect);
     
    441441             * - there was no drop data from the guest available and the user
    442442             *   enters the guest screen again after this unsuccessful operation */
    443             reset();
     443            Reset();
    444444            return 0;
    445445        }
     
    615615                case VBGLR3DNDEVENTTYPE_GH_ERROR:
    616616                {
    617                     reset();
     617                    Reset();
    618618                    rc = VINF_SUCCESS;
    619619                    break;
     
    647647
    648648                /* If anything went wrong, do a reset and start over. */
    649                 reset();
     649                Reset();
    650650            }
    651651
     
    783783#endif
    784784
    785     reset();
     785    Reset();
    786786    setMode(HG);
    787787
     
    972972    LogRel(("DnD: Drag and drop operation aborted\n"));
    973973
    974     reset();
     974    Reset();
    975975
    976976    int rc = VINF_SUCCESS;
     
    10911091        rc = rc2;
    10921092
    1093     reset();
     1093    Reset();
    10941094
    10951095    return rc;
     
    12451245
    12461246            LogRel2(("DnD: Host refuses drag and drop operation from guest: %Rrc\n", rc2));
    1247             reset();
     1247            Reset();
    12481248        }
    12491249    }
    12501250
    12511251    if (RT_FAILURE(rc))
    1252         reset(); /* Reset state on failure. */
     1252        Reset(); /* Reset state on failure. */
    12531253
    12541254    LogFlowFuncLeaveRC(rc);
     
    12801280            rc = pDropTarget->WaitForDrop(5 * 1000 /* 5s timeout */);
    12811281
    1282             reset();
     1282            Reset();
    12831283        }
    12841284        else if (mState == Dropped)
     
    15381538 * Resets the proxy window.
    15391539 */
    1540 void VBoxDnDWnd::reset(void)
     1540void VBoxDnDWnd::Reset(void)
    15411541{
    15421542    LogFlowThisFunc(("Resetting, old mMode=%ld, mState=%ld\n",
     
    18331833            /* Make sure our proxy window is hidden when an error occured to
    18341834             * not block the guest's UI. */
    1835             pWnd->hide();
     1835            pWnd->Reset();
    18361836
    18371837            int rc2 = VbglR3DnDGHSendError(&pCtx->cmdCtx, rc);
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.h

    r74442 r74473  
    332332    void OnDestroy(void);
    333333
    334     /* H->G */
     334    /* Host -> Guest */
    335335    int OnHgEnter(const RTCList<RTCString> &formats, VBOXDNDACTIONLIST dndLstActionsAllowed);
    336336    int OnHgMove(uint32_t u32xPos, uint32_t u32yPos, VBOXDNDACTION dndAction);
     
    341341
    342342#ifdef VBOX_WITH_DRAG_AND_DROP_GH
     343    /* Guest -> Host */
    343344    int OnGhIsDnDPending(void);
    344345    int OnGhDrop(const RTCString &strFormat, VBOXDNDACTION dndActionDefault);
     
    348349    int ProcessEvent(PVBOXDNDEVENT pEvent);
    349350
    350 public:
     351    void Reset(void);
     352
     353protected:
    351354
    352355    int hide(void);
    353 
    354 protected:
    355 
    356356    int makeFullscreen(void);
    357357    int mouseMove(int x, int y, DWORD dwMouseInputFlags);
    358358    int mouseRelease(void);
    359     void reset(void);
    360359    int setMode(Mode enmMode);
    361360
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnDDropTarget.cpp

    r74448 r74473  
    262262
    263263    if (mpWndParent)
    264         mpWndParent->hide();
     264        mpWndParent->Reset();
    265265
    266266    return S_OK;
     
    549549
    550550    if (mpWndParent)
    551         mpWndParent->hide();
     551        mpWndParent->Reset();
    552552
    553553    LogFlowFunc(("Returning with hr=%Rhrc (%Rrc), mFormatEtc.cfFormat=%RI16 (%s), *pdwEffect=%RI32\n",
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette