Changeset 83823 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray
- Timestamp:
- Apr 19, 2020 1:18:53 AM (5 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/VBoxTray
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/Makefile.kmk
r82968 r83823 26 26 endif 27 27 VBoxTray_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST) 28 VBoxTray_DEFS = \ 29 VBOX_WITH_HGCM \ 30 VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\" 28 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING 29 VBoxTray_DEFS := VBOX_WITH_HGCM VBOX_BUILD_TARGET="$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" 30 else 31 VBoxTray_DEFS := VBOX_WITH_HGCM VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\" 32 endif 31 33 VBoxTray_INCS = \ 32 34 ../include \ -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp
r83624 r83823 257 257 * Report available formats to the host. */ 258 258 SHCLFORMATS fFormats; 259 intrc = SharedClipboardWinGetFormats(pWinCtx, &fFormats);259 rc = SharedClipboardWinGetFormats(pWinCtx, &fFormats); 260 260 if (RT_SUCCESS(rc)) 261 261 { -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp
r82968 r83823 124 124 * @param pCtx Pointer to context to use. 125 125 */ 126 int VBoxDnDWnd::Initialize(PVBOXDNDCONTEXT pCtx)127 { 128 AssertPtrReturn( pCtx, VERR_INVALID_POINTER);126 int VBoxDnDWnd::Initialize(PVBOXDNDCONTEXT a_pCtx) 127 { 128 AssertPtrReturn(a_pCtx, VERR_INVALID_POINTER); 129 129 130 130 /* Save the context. */ 131 this->pCtx = pCtx;131 this->pCtx = a_pCtx; 132 132 133 133 int rc = RTSemEventCreate(&mEventSem); … … 146 146 AssertRC(rc2); 147 147 148 if (! pCtx->fStarted) /* Did the thread fail to start? */148 if (!a_pCtx->fStarted) /* Did the thread fail to start? */ 149 149 rc = VERR_NOT_SUPPORTED; /* Report back DnD as not being supported. */ 150 150 } … … 394 394 * The proxy window's WndProc. 395 395 */ 396 LRESULT CALLBACK VBoxDnDWnd::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAMlParam)397 { 398 switch ( uMsg)396 LRESULT CALLBACK VBoxDnDWnd::WndProc(HWND a_hWnd, UINT a_uMsg, WPARAM a_wParam, LPARAM a_lParam) 397 { 398 switch (a_uMsg) 399 399 { 400 400 case WM_CREATE: … … 543 543 case WM_VBOXTRAY_DND_MESSAGE: 544 544 { 545 PVBOXDNDEVENT pEvent = (PVBOXDNDEVENT) lParam;545 PVBOXDNDEVENT pEvent = (PVBOXDNDEVENT)a_lParam; 546 546 if (!pEvent) 547 547 break; /* No event received, bail out. */ … … 665 665 } 666 666 667 return DefWindowProc( hWnd, uMsg, wParam,lParam);667 return DefWindowProc(a_hWnd, a_uMsg, a_wParam, a_lParam); 668 668 } 669 669 … … 802 802 * 803 803 * @return IPRT status code. 804 * @param lstFormatsSupported formats offered by the host.805 * @param dndLstActionsAllowedSupported actions offered by the host.806 */ 807 int VBoxDnDWnd::OnHgEnter(const RTCList<RTCString> & lstFormats, VBOXDNDACTIONLIST dndLstActionsAllowed)804 * @param a_lstFormats Supported formats offered by the host. 805 * @param a_fDndLstActionsAllowed Supported actions offered by the host. 806 */ 807 int VBoxDnDWnd::OnHgEnter(const RTCList<RTCString> &a_lstFormats, VBOXDNDACTIONLIST a_fDndLstActionsAllowed) 808 808 { 809 809 if (mMode == GH) /* Wrong mode? Bail out. */ … … 811 811 812 812 #ifdef DEBUG 813 LogFlowThisFunc(("dndActionList=0x%x, lstFormats=%zu: ", dndLstActionsAllowed,lstFormats.size()));814 for (size_t i = 0; i < lstFormats.size(); i++)815 LogFlow(("'%s' ", lstFormats.at(i).c_str()));813 LogFlowThisFunc(("dndActionList=0x%x, a_lstFormats=%zu: ", a_fDndLstActionsAllowed, a_lstFormats.size())); 814 for (size_t i = 0; i < a_lstFormats.size(); i++) 815 LogFlow(("'%s' ", a_lstFormats.at(i).c_str())); 816 816 LogFlow(("\n")); 817 817 #endif … … 828 828 { 829 829 /* Save all allowed actions. */ 830 this->dndLstActionsAllowed = dndLstActionsAllowed;830 this->dndLstActionsAllowed = a_fDndLstActionsAllowed; 831 831 832 832 /* … … 843 843 844 844 LogRel2(("DnD: Reported formats:\n")); 845 for (size_t i = 0; i < lstFormats.size(); i++)845 for (size_t i = 0; i < a_lstFormats.size(); i++) 846 846 { 847 847 bool fSupported = false; 848 848 for (size_t a = 0; a < this->lstFmtSup.size(); a++) 849 849 { 850 const char *pszFormat = lstFormats.at(i).c_str();850 const char *pszFormat = a_lstFormats.at(i).c_str(); 851 851 LogFlowThisFunc(("\t\"%s\" <=> \"%s\"\n", this->lstFmtSup.at(a).c_str(), pszFormat)); 852 852 … … 854 854 if (fSupported) 855 855 { 856 this->lstFmtActive.append( lstFormats.at(i));856 this->lstFmtActive.append(a_lstFormats.at(i)); 857 857 858 858 /** @todo Put this into a \#define / struct. */ … … 891 891 } 892 892 893 LogRel2(("DnD: \t%s: %RTbool\n", lstFormats.at(i).c_str(), fSupported));893 LogRel2(("DnD: \t%s: %RTbool\n", a_lstFormats.at(i).c_str(), fSupported)); 894 894 } 895 895 … … 913 913 /* Translate our drop actions into allowed Windows drop effects. */ 914 914 startupInfo.dwOKEffects = DROPEFFECT_NONE; 915 if ( dndLstActionsAllowed)916 { 917 if ( dndLstActionsAllowed & VBOX_DND_ACTION_COPY)915 if (a_fDndLstActionsAllowed) 916 { 917 if (a_fDndLstActionsAllowed & VBOX_DND_ACTION_COPY) 918 918 startupInfo.dwOKEffects |= DROPEFFECT_COPY; 919 if ( dndLstActionsAllowed & VBOX_DND_ACTION_MOVE)919 if (a_fDndLstActionsAllowed & VBOX_DND_ACTION_MOVE) 920 920 startupInfo.dwOKEffects |= DROPEFFECT_MOVE; 921 if ( dndLstActionsAllowed & VBOX_DND_ACTION_LINK)921 if (a_fDndLstActionsAllowed & VBOX_DND_ACTION_LINK) 922 922 startupInfo.dwOKEffects |= DROPEFFECT_LINK; 923 923 } -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp
r83072 r83823 1164 1164 fTrack |= TPM_RETURNCMD | TPM_NONOTIFY; 1165 1165 1166 UINTuMsg = TrackPopupMenu(hContextMenu, fTrack, lpCursor.x, lpCursor.y, 0, hWnd, NULL);1166 uMsg = TrackPopupMenu(hContextMenu, fTrack, lpCursor.x, lpCursor.y, 0, hWnd, NULL); 1167 1167 if ( uMsg 1168 1168 && fBlockWhileTracking)
Note:
See TracChangeset
for help on using the changeset viewer.