From fa08cfd41dfb84b42a2183a08a6045528a4e5263 Mon Sep 17 00:00:00 2001 From: sje Date: Sat, 27 Jan 2007 14:26:48 +0000 Subject: 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 --- yapp/common.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'yapp/common.h') 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 -- cgit v1.2.3