OSDN Git Service

CSortHeaderCtrl: Replace GetDllVersion() by SendMessage(CCM_GETVERSION), which works...
authorJochen Tucht <jtuc@users.sourceforge.net>
Sun, 13 Jun 2010 12:18:30 +0000 (12:18 +0000)
committerJochen Tucht <jtuc@users.sourceforge.net>
Sun, 13 Jun 2010 12:18:30 +0000 (12:18 +0000)
As this removes the last reference to GetDllVersion(), we are now ready to drop dllver.cpp/.h.

Src/Common/SortHeaderCtrl.cpp

index 5e23208..1758e4c 100644 (file)
@@ -9,7 +9,6 @@
 
 #include "StdAfx.h"
 #include "SortHeaderCtrl.h"
-#include "dllver.h"
 
 #ifndef HDF_SORTUP
 #define HDF_SORTUP              0x0400
@@ -60,7 +59,7 @@ int CSortHeaderCtrl::SetSortImage(int nCol, BOOL bAsc)
        }
 
        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);