From 2a3b48f91c74e4d0115c26af702a4d2ffccfc805 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 24 Apr 2015 21:25:59 +0000 Subject: end of zoo with various _WIN32_WINNT versions git-svn-id: http://svn.miranda-ng.org/main/trunk@13112 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CSList/src/cslist.cpp | 7 +------ plugins/CSList/src/cslist.h | 4 ---- 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'plugins/CSList') diff --git a/plugins/CSList/src/cslist.cpp b/plugins/CSList/src/cslist.cpp index c50e995702..3c1a3d8ebb 100644 --- a/plugins/CSList/src/cslist.cpp +++ b/plugins/CSList/src/cslist.cpp @@ -535,7 +535,6 @@ void CSAMWindow::checkFieldLimit(WORD action, WORD item) if (_tcslen(ptszInputText) > limit) { -#if ( WINVER >= 0x501 ) TCHAR tszPopupTip[MAX_PATH]; EDITBALLOONTIP ebt = { 0 }; ebt.cbStruct = sizeof(ebt); @@ -544,7 +543,7 @@ void CSAMWindow::checkFieldLimit(WORD action, WORD item) ebt.pszText = tszPopupTip; ebt.ttiIcon = TTI_WARNING; SendDlgItemMessage(m_handle, item, EM_SHOWBALLOONTIP, 0, (LPARAM)&ebt); -#endif + TCHAR* ptszOutputText = (TCHAR*)mir_alloc((limit + 1) * sizeof(TCHAR)); GetDlgItemText(m_handle, item, ptszOutputText, limit + 1); SetDlgItemText(m_handle, item, ptszOutputText); @@ -591,7 +590,6 @@ CSListView::CSListView(HWND hwnd, CSWindow* parent) m_handle = hwnd; m_parent = parent; -#if (_WIN32_WINNT >= 0x501) LVGROUP lg = { 0 }; lg.cbSize = sizeof(LVGROUP); lg.mask = LVGF_HEADER | LVGF_GROUPID; @@ -604,7 +602,6 @@ CSListView::CSListView(HWND hwnd, CSWindow* parent) lg.iGroupId = 1; ListView_InsertGroup(m_handle, -1, &lg); ListView_EnableGroupView(m_handle, TRUE); -#endif LVCOLUMN lvc = { 0 }; lvc.mask = LVCF_TEXT | LVCF_FMT | LVCF_WIDTH | LVCF_SUBITEM; @@ -620,9 +617,7 @@ CSListView::CSListView(HWND hwnd, CSWindow* parent) lvc.cx = 0xa8; SendMessage(m_handle, LVM_INSERTCOLUMN, 2, (LPARAM)&lvc); -#if (_WIN32_IE >= 0x0400) ListView_SetExtendedListViewStyleEx(m_handle, 0, LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES | LVS_EX_HEADERDRAGDROP | LVS_EX_INFOTIP); -#endif ListView_SetImageList(m_handle, m_parent->m_icons, LVSIL_SMALL); } diff --git a/plugins/CSList/src/cslist.h b/plugins/CSList/src/cslist.h index 8e0ec67f86..219a63771a 100644 --- a/plugins/CSList/src/cslist.h +++ b/plugins/CSList/src/cslist.h @@ -33,10 +33,6 @@ #ifndef __CSLIST_H #define __CSLIST_H 1 -#define WINVER 0x501 -#define _WIN32_WINNT 0x501 -#define _WIN32_IE 0x600 - #define _CRT_SECURE_NO_WARNINGS #include -- cgit v1.2.3