#include "stdafx.h"
#include "merge.h"
#include "DirColsDlg.h"
-#include "dllver.h"
#include <algorithm>
#ifdef _DEBUG
void CDirColsDlg::InitList()
{
// Show selection across entire row.
- DWORD newstyle = LVS_EX_CHECKBOXES | LVS_EX_FULLROWSELECT;
- // Also enable infotips if they have new enough version for our
- // custom draw code
- // LPNMLVCUSTOMDRAW->iSubItem not supported before comctl32 4.71
- if (GetDllVersion(_T("comctl32.dll")) >= PACKVERSION(4,71))
- newstyle |= LVS_EX_INFOTIP;
- m_listColumns.SetExtendedStyle(m_listColumns.GetExtendedStyle() | newstyle);
+ // Also enable infotips.
+ m_listColumns.SetExtendedStyle(LVS_EX_CHECKBOXES | LVS_EX_FULLROWSELECT | LVS_EX_INFOTIP);
m_listColumns.InsertColumn(0, _T(""), LVCFMT_LEFT, 150);
}
#include "resource.h"
#include "coretools.h"
#include "WaitStatusCursor.h"
-#include "dllver.h"
#include "locality.h"
#include "FileTransform.h"
#include "SelectUnpackerDlg.h"
ReloadColumns();
// Show selection across entire row.
- // Also allow user to rearrange columns via drag&drop of headers
- // if they have a new enough common controls
- DWORD exstyle = LVS_EX_FULLROWSELECT | LVS_EX_HEADERDRAGDROP;
- // Also enable infotips if they have new enough version for our
- // custom draw code
- // LPNMLVCUSTOMDRAW->iSubItem not supported before comctl32 4.71
- if (GetDllVersion(_T("comctl32.dll")) >= PACKVERSION(4, 71))
- exstyle |= LVS_EX_INFOTIP;
+ // Also allow user to rearrange columns via drag&drop of headers.
+ // Also enable infotips.
+ DWORD exstyle = LVS_EX_FULLROWSELECT | LVS_EX_HEADERDRAGDROP | LVS_EX_INFOTIP;
m_pList->SetExtendedStyle(exstyle);
}
*/
void CDirView::FixReordering()
{
- // LVCOLUMN.iOrder is present with version 4.70+
- if (GetDllVersion(_T("shlwapi.dll")) < PACKVERSION(4, 70))
- return;
-
LVCOLUMN lvcol;
lvcol.mask = LVCF_ORDER;
lvcol.fmt = 0;
#include "MainFrm.h"
#include "FileFiltersDlg.h"
#include "coretools.h"
-#include "dllver.h"
#include "FileFilterMgr.h"
#include "paths.h"
#include "SharedFilterDlg.h"
void FileFiltersDlg::InitList()
{
// Show selection across entire row.
- DWORD newstyle = LVS_EX_FULLROWSELECT;
- // Also enable infotips if they have new enough version for our
- // custom draw code
- // LPNMLVCUSTOMDRAW->iSubItem not supported before comctl32 4.71
- if (GetDllVersion(_T("comctl32.dll")) >= PACKVERSION(4,71))
- newstyle |= LVS_EX_INFOTIP;
- m_listFilters.SetExtendedStyle(m_listFilters.GetExtendedStyle() | newstyle);
+ // Also enable infotips.
+ m_listFilters.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_INFOTIP);
String title = theApp.LoadString(IDS_FILTERFILE_NAMETITLE);
m_listFilters.InsertColumn(0, title.c_str(), LVCFMT_LEFT, 150);
NMLVGETINFOTIP * pInfoTip = reinterpret_cast<NMLVGETINFOTIP*>(pNMHDR);
ASSERT(pInfoTip);
- if (GetDllVersion(_T("comctl32.dll")) < PACKVERSION(4,71))
- {
- // LPNMLVCUSTOMDRAW->iSubItem not supported before comctl32 4.71
- return;
- }
-
// Get subitem under mouse cursor
lvhti.pt = m_ptLastMousePos;
m_listFilters.SubItemHitTest(&lvhti);
#include "UnicodeString.h"
#include "Merge.h"
#include "Plugins.h"
-#include "dllver.h"
#include "PluginsListDlg.h"
#include "OptionsDef.h"
void PluginsListDlg::InitList()
{
// Show selection across entire row.
- DWORD newstyle = LVS_EX_FULLROWSELECT;
- // Also enable infotips if they have new enough version for our
- // custom draw code
- // LPNMLVCUSTOMDRAW->iSubItem not supported before comctl32 4.71
- if (GetDllVersion(_T("comctl32.dll")) >= PACKVERSION(4,71))
- newstyle |= LVS_EX_INFOTIP;
- m_list.SetExtendedStyle(m_list.GetExtendedStyle() | newstyle);
+ // Also enable infotips.
+ m_list.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_INFOTIP);
String title = LoadResString(IDS_PLUGINSLIST_NAME);
m_list.InsertColumn(0, title.c_str(), LVCFMT_LEFT, 150);