From 2fa7c1956dad31d16807511b135c7f4ddc9107fe Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sat, 4 Jan 2014 12:19:31 +0100 Subject: [PATCH] Drop unneeded SDK definitions Inspired by TortoiseSVN revision #25112. Signed-off-by: Sven Strickroth --- src/TortoiseProc/GitLogListBase.h | 22 ------- .../RevisionGraph/RevisionGraphWnd.cpp | 5 -- src/Utils/DragDropImpl.h | 75 ---------------------- 3 files changed, 102 deletions(-) diff --git a/src/TortoiseProc/GitLogListBase.h b/src/TortoiseProc/GitLogListBase.h index cd5538d5f..ca94279e1 100644 --- a/src/TortoiseProc/GitLogListBase.h +++ b/src/TortoiseProc/GitLogListBase.h @@ -39,28 +39,6 @@ #include "FindDlg.h" // CGitLogList -#if (NTDDI_VERSION < NTDDI_LONGHORN) - -enum LISTITEMSTATES_MINE { - LISS_NORMAL = 1, - LISS_HOT = 2, - LISS_SELECTED = 3, - LISS_DISABLED = 4, - LISS_SELECTEDNOTFOCUS = 5, - LISS_HOTSELECTED = 6, -}; - -// these defines must be in the order the columns are inserted! - - -#define MCS_NOTRAILINGDATES 0x0040 -#define MCS_SHORTDAYSOFWEEK 0x0080 -#define MCS_NOSELCHANGEONNAV 0x0100 - -#define DTM_SETMCSTYLE (DTM_FIRST + 11) - -#endif - #define ICONITEMBORDER 5 #define GITLOG_START 0 diff --git a/src/TortoiseProc/RevisionGraph/RevisionGraphWnd.cpp b/src/TortoiseProc/RevisionGraph/RevisionGraphWnd.cpp index 8c1ea23cf..6090dd15f 100644 --- a/src/TortoiseProc/RevisionGraph/RevisionGraphWnd.cpp +++ b/src/TortoiseProc/RevisionGraph/RevisionGraphWnd.cpp @@ -55,11 +55,6 @@ static char THIS_FILE[] = __FILE__; using namespace Gdiplus; using namespace ogdf; -#if (_WIN32_WINNT < 0x0600) -#define WM_MOUSEHWHEEL 0x020E -#endif - - enum RevisionGraphContextMenuCommands { // needs to start with 1, since 0 is the return value if *nothing* is clicked on in the context menu diff --git a/src/Utils/DragDropImpl.h b/src/Utils/DragDropImpl.h index e4d8e9de6..7f05e8d50 100644 --- a/src/Utils/DragDropImpl.h +++ b/src/Utils/DragDropImpl.h @@ -12,81 +12,6 @@ #include #include - -// problem: the interface IDragSourceHelper2 is only available if compiled -// for Vista, so we copy here that part from the SDK headers to get the interface -// even if not compiled for Vista - - -/* interface __MIDL_itf_shobjidl_0000_0053 */ -/* [local] */ - -#if (NTDDI_VERSION < NTDDI_LONGHORN) -typedef -enum tagDSH_FLAGS -{ DSH_ALLOWDROPDESCRIPTIONTEXT = 0x1 -} DSH_FLAGS; - - - -extern RPC_IF_HANDLE __MIDL_itf_shobjidl_0000_0053_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_shobjidl_0000_0053_v0_0_s_ifspec; - -#ifndef __IDragSourceHelper2_INTERFACE_DEFINED__ -#define __IDragSourceHelper2_INTERFACE_DEFINED__ - -/* interface IDragSourceHelper2 */ -/* [object][unique][local][uuid] */ - - -EXTERN_C const IID IID_IDragSourceHelper2; - -MIDL_INTERFACE("83E07D0D-0C5F-4163-BF1A-60B274051E40") -IDragSourceHelper2 : public IDragSourceHelper -{ -public: - virtual HRESULT STDMETHODCALLTYPE SetFlags( - /* [in] */ - __in DWORD dwFlags) = 0; - -}; - - -#endif /* __IDragSourceHelper2_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_shobjidl_0000_0054 */ -/* [local] */ - - -typedef enum -{ - DROPIMAGE_INVALID = -1, // no drop image at all - DROPIMAGE_NONE = 0, // red "no" circle - DROPIMAGE_COPY = DROPEFFECT_COPY, // plus for copy - DROPIMAGE_MOVE = DROPEFFECT_MOVE, // movement arrow for move - DROPIMAGE_LINK = DROPEFFECT_LINK, // link arrow for link - DROPIMAGE_LABEL = 6, // tag icon to indicate metadata will be changed - DROPIMAGE_WARNING = 7, // yellow exclamation, something is amiss with the operation -} DROPIMAGETYPE; - -typedef struct -{ - DROPIMAGETYPE type; // indicates the stock image to use - - // text such as "Move to %1" - WCHAR szMessage[MAX_PATH]; - - // text such as "Documents", inserted as specified by szMessage - WCHAR szInsert[MAX_PATH]; - - // some UI coloring is applied to the text in szInsert, if used by specifying %1 in szMessage. - // %% and %1 are the subset of FormatMessage markers that are processed here. -} DROPDESCRIPTION; - -#endif // NTDDI_LONGHORN - - /////////////////////////////////////////////////////////////////////////////////////////////// class CDragSourceNotify : IDropSourceNotify { -- 2.11.4.GIT