Changeset 97770 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray
- Timestamp:
- Dec 9, 2022 11:51:14 AM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 154837
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp
r97764 r97770 55 55 56 56 #include <VBox/err.h> 57 #include <VBox/version.h> 57 58 58 59 … … 65 66 /** @todo Merge this with messages from VBoxTray.h. */ 66 67 #define WM_VBOXTRAY_DND_MESSAGE WM_APP + 401 68 69 /** The notification header text for hlpShowBalloonTip(). */ 70 #define VBOX_DND_SHOWBALLOON_HEADER VBOX_PRODUCT " Drag'n Drop" 67 71 68 72 … … 840 844 return rc; 841 845 842 if (g_cVerbosity)843 {844 RTCString strMsg("Enter: Host -> Guest\n\n");845 strMsg += RTCStringFmt("Allowed actions: %#x\n", a_fDndLstActionsAllowed);846 strMsg += "Formats:\n";847 for (size_t i = 0; i < this->m_lstFmtSup.size(); i++)848 {849 if (i > 0)850 strMsg += "\n";851 strMsg += this->m_lstFmtSup.at(i);852 }853 854 hlpShowBalloonTip(g_hInstance, g_hwndToolWindow, ID_TRAYICON,855 strMsg.c_str(), "VirtualBox Drag'n Drop",856 15 * 1000 /* Time to display in msec */, NIIF_INFO);857 }858 859 846 /* Save all allowed actions. */ 860 847 this->m_lstActionsAllowed = a_fDndLstActionsAllowed; … … 924 911 } 925 912 913 if (g_cVerbosity) 914 { 915 RTCString strMsg("Enter: Host -> Guest\n"); 916 strMsg += RTCStringFmt("Allowed actions: "); 917 char *pszActions = DnDActionListToStrA(a_fDndLstActionsAllowed); 918 AssertPtrReturn(pszActions, VERR_NO_STR_MEMORY); 919 strMsg += pszActions; 920 RTStrFree(pszActions); 921 strMsg += "\nFormats: "; 922 for (size_t i = 0; i < this->m_lstFmtActive.size(); i++) 923 { 924 if (i > 0) 925 strMsg += ", "; 926 strMsg += this->m_lstFmtActive[i]; 927 } 928 929 hlpShowBalloonTip(g_hInstance, g_hwndToolWindow, ID_TRAYICON, 930 strMsg.c_str(), VBOX_DND_SHOWBALLOON_HEADER, 931 15 * 1000 /* Time to display in msec */, NIIF_INFO); 932 } 933 926 934 /* 927 935 * Warn in the log if this guest does not accept anything. … … 1045 1053 if (g_cVerbosity) 1046 1054 hlpShowBalloonTip(g_hInstance, g_hwndToolWindow, ID_TRAYICON, 1047 "Leave: Host -> Guest", "VirtualBox Drag'n Drop",1055 "Leave: Host -> Guest", VBOX_DND_SHOWBALLOON_HEADER, 1048 1056 15 * 1000 /* Time to display in msec */, NIIF_INFO); 1049 1057 … … 1072 1080 if (g_cVerbosity) 1073 1081 hlpShowBalloonTip(g_hInstance, g_hwndToolWindow, ID_TRAYICON, 1074 "Drop: Host -> Guest", "VirtualBox Drag'n Drop",1082 "Drop: Host -> Guest", VBOX_DND_SHOWBALLOON_HEADER, 1075 1083 15 * 1000 /* Time to display in msec */, NIIF_INFO); 1076 1084 … … 1374 1382 1375 1383 hlpShowBalloonTip(g_hInstance, g_hwndToolWindow, ID_TRAYICON, 1376 strMsg.c_str(), "VirtualBox Drag'n Drop",1384 strMsg.c_str(), VBOX_DND_SHOWBALLOON_HEADER, 1377 1385 15 * 1000 /* Time to display in msec */, NIIF_INFO); 1378 1386 } … … 1912 1920 hlpShowBalloonTip(g_hInstance, g_hwndToolWindow, ID_TRAYICON, 1913 1921 RTCStringFmt("Running (worker client ID %RU32)", pCtx->cmdCtx.uClientID).c_str(), 1914 "VirtualBox Drag'n Drop",1922 VBOX_DND_SHOWBALLOON_HEADER, 1915 1923 15 * 1000 /* Time to display in msec */, NIIF_INFO); 1916 1924
Note:
See TracChangeset
for help on using the changeset viewer.