Revision: 7188
http://winmerge.svn.sourceforge.net/winmerge/?rev=7188&view=rev
Author: jtuc
Date: 2010-06-13 12:18:30 +0000 (Sun, 13 Jun 2010)
Log Message:
-----------
CSortHeaderCtrl: Replace GetDllVersion() by SendMessage(CCM_GETVERSION), which works for comctl32.dll 5.80 and better.
As this removes the last reference to GetDllVersion(), we are now ready to drop dllver.cpp/.h.
Modified Paths:
--------------
trunk/Src/Common/SortHeaderCtrl.cpp
Modified: trunk/Src/Common/SortHeaderCtrl.cpp
===================================================================
--- trunk/Src/Common/SortHeaderCtrl.cpp 2010-06-13 12:10:45 UTC (rev 7187)
+++ trunk/Src/Common/SortHeaderCtrl.cpp 2010-06-13 12:18:30 UTC (rev 7188)
@@ -9,7 +9,6 @@
#include "StdAfx.h"
#include "SortHeaderCtrl.h"
-#include "dllver.h"
#ifndef HDF_SORTUP
#define HDF_SORTUP 0x0400
@@ -60,7 +59,7 @@
}
GetItem( nCol, &hditem );
- if (GetDllVersion(_T("comctl32.dll")) >= PACKVERSION(6,00))
+ if (SendMessage(CCM_GETVERSION) >= 6)
{
// We can use HDF_SORTUP and HDF_SORTDOWN flag to draw a sort arrow on the header.
hditem.fmt &= ~(HDF_SORTUP | HDF_SORTDOWN);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|