diff options
Diffstat (limited to 'plugins/WhenWasIt')
-rw-r--r-- | plugins/WhenWasIt/src/commonheaders.h | 1 | ||||
-rw-r--r-- | plugins/WhenWasIt/src/dlg_handlers.cpp | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins/WhenWasIt/src/commonheaders.h b/plugins/WhenWasIt/src/commonheaders.h index 3434e38223..a0435abcc1 100644 --- a/plugins/WhenWasIt/src/commonheaders.h +++ b/plugins/WhenWasIt/src/commonheaders.h @@ -25,6 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define _CRT_NON_CONFORMING_SWPRINTFS
#include <windows.h>
+#include <windowsx.h>
#include <time.h>
#include <math.h>
#include <commctrl.h>
diff --git a/plugins/WhenWasIt/src/dlg_handlers.cpp b/plugins/WhenWasIt/src/dlg_handlers.cpp index c07570e24b..1f9ae0e06f 100644 --- a/plugins/WhenWasIt/src/dlg_handlers.cpp +++ b/plugins/WhenWasIt/src/dlg_handlers.cpp @@ -640,7 +640,6 @@ int UpdateBirthdayEntry(HWND hList, MCONTACT hContact, int entry, int bShowAll, static LRESULT CALLBACK BirthdaysListSubclassProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
LVITEM item = { 0 };
- POINT pt = { 0 };
MCONTACT hContact;
int i, count;
@@ -670,8 +669,7 @@ static LRESULT CALLBACK BirthdaysListSubclassProc(HWND hWnd, UINT msg, WPARAM wP break;
case WM_CONTEXTMENU:
- pt.x = (short)LOWORD(lParam);
- pt.y = (short)HIWORD(lParam);
+ POINT pt = { GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam) };
count = ListView_GetItemCount(hWnd);
item.mask = LVIF_PARAM;
for (i = 0; i < count; i++) {
|