VirtualBox

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


Ignore:
Timestamp:
Feb 14, 2014 9:46:58 AM (11 years ago)
Author:
vboxsync
Message:

DnD: Update.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/Makefile.kmk

    r50101 r50460  
    5151        VBoxDnDDropSource.cpp \
    5252        VBoxDnDDropTarget.cpp
     53 VBoxTray_LIBS     += \
     54        $(PATH_STAGE_LIB)/additions/VBoxDnDGuestR3Lib$(VBOX_SUFF_LIB)
    5355endif
    5456ifdef VBOX_WITH_GUEST_PROPS
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp

    r50399 r50460  
    14021402
    14031403        rc = VbglR3DnDProcessNextMessage(uClientID, &pEvent->Event);
    1404         LogFlowFunc(("VbglR3DnDProcessNextMessage returned rc=%Rrc\n", rc));
     1404        LogFlowFunc(("VbglR3DnDProcessNextMessage returned uType=%RU32, rc=%Rrc\n",
     1405                     pEvent->Event.uType, rc));
    14051406
    14061407        if (ASMAtomicReadBool(&pCtx->fShutdown))
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnDDataObject.cpp

    r50101 r50460  
    2727#include "VBoxDnD.h"
    2828
     29#ifdef DEBUG
     30 /* Enable the following line to get much more debug output about
     31  * (un)known clipboard formats. */
     32 //#define VBOX_DND_DEBUG_FORMATS
     33#endif
     34
    2935/** @todo Implement IDataObjectAsyncCapability interface? */
    3036
     
    188194    AssertPtrReturn(pMedium, DV_E_FORMATETC);
    189195
    190     LogFlowFunc(("pFormatEtc=%p, pMedium=%p\n", pFormatEtc, pMedium));
    191 
    192196    ULONG lIndex;
    193197    if (!LookupFormatEtc(pFormatEtc, &lIndex)) /* Format supported? */
     
    195199    if (lIndex >= mcFormats) /* Paranoia. */
    196200        return DV_E_FORMATETC;
     201
     202    LogFlowFunc(("pFormatEtc=%p, pMedium=%p\n", pFormatEtc, pMedium));
    197203
    198204    FORMATETC *pThisFormat = &mpFormatEtc[lIndex];
     
    474480const char* VBoxDnDDataObject::ClipboardFormatToString(CLIPFORMAT fmt)
    475481{
     482#ifdef VBOX_DND_DEBUG_FORMATS
    476483    char szFormat[128];
    477484    if (GetClipboardFormatName(fmt, szFormat, sizeof(szFormat)))
    478485        LogFlowFunc(("wFormat=%RI16, szName=%s\n", fmt, szFormat));
     486#endif
    479487
    480488    switch (fmt)
     
    572580    }
    573581
     582#ifdef VBOX_DND_DEBUG_FORMATS
    574583    LogFlowFunc(("Format NOT found: tyMed=%RI32, cfFormat=%RI16, sFormats=%s, dwAspect=%RI32\n",
    575584                 pFormatEtc->tymed, pFormatEtc->cfFormat, VBoxDnDDataObject::ClipboardFormatToString(pFormatEtc->cfFormat),
    576585                 pFormatEtc->dwAspect));
    577 
     586#endif
    578587    return false;
    579588}
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