summaryrefslogtreecommitdiff
path: root/yapp/common.h
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-01-27 14:26:48 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-01-27 14:26:48 +0000
commitfa08cfd41dfb84b42a2183a08a6045528a4e5263 (patch)
tree86b172e7ac6a3d7ab20878f3196d69179da58001 /yapp/common.h
parent155c12bafe3a30b502f8effc07e2ef258cdee85b (diff)
oops - re-applied popup history renderer patch from Eblis
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@81 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'yapp/common.h')
-rw-r--r--yapp/common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/yapp/common.h b/yapp/common.h
index 114aa47..48d85ee 100644
--- a/yapp/common.h
+++ b/yapp/common.h
@@ -67,3 +67,13 @@ extern int code_page;
// work around a bug in neweventnotify, possibly httpserver
// ignore the address passed to the 'get plugin data' service
extern bool ignore_gpd_passed_addy;
+
+// win32 defines for mingw version of windows headers :(
+#ifndef LVM_SORTITEMSEX
+#define LVM_SORTITEMSEX (LVM_FIRST + 81)
+
+typedef int (CALLBACK *PFNLVCOMPARE)(LPARAM, LPARAM, LPARAM);
+
+#define ListView_SortItemsEx(hwndLV, _pfnCompare, _lPrm) \
+ (BOOL)SendMessage((hwndLV), LVM_SORTITEMSEX, (WPARAM)(LPARAM)(_lPrm), (LPARAM)(PFNLVCOMPARE)(_pfnCompare))
+#endif