summaryrefslogtreecommitdiff
path: root/lastseen-mod/history.c
diff options
context:
space:
mode:
Diffstat (limited to 'lastseen-mod/history.c')
-rw-r--r--lastseen-mod/history.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lastseen-mod/history.c b/lastseen-mod/history.c
index 9917d95..724cfd5 100644
--- a/lastseen-mod/history.c
+++ b/lastseen-mod/history.c
@@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
File name : $URL: http://svn.berlios.de/svnroot/repos/mgoodies/trunk/lastseen-mod/history.c $
Revision : $Rev: 1056 $
-Last change on : $Date: 2006-10-30 05:22:07 +0200 (Пн, 30 окт 2006) $
+Last change on : $Date: 2006-10-30 06:22:07 +0300 (Пн, 30 окт 2006) $
Last change by : $Author: y_b $
*/
#include "seen.h"
@@ -167,7 +167,7 @@ void MyResizeGetOffset (HWND hwndDlg, HWND hwndControl,
*nDy = nHeight - (rcinit.bottom - rcinit.top);
}
-BOOL CALLBACK HistoryDlgProc(HWND hwndDlg, UINT Message, WPARAM wparam, LPARAM lparam)
+INT_PTR CALLBACK HistoryDlgProc(HWND hwndDlg, UINT Message, WPARAM wparam, LPARAM lparam)
{
HANDLE hContact;
char sztemp[1024]="";
@@ -178,7 +178,7 @@ BOOL CALLBACK HistoryDlgProc(HWND hwndDlg, UINT Message, WPARAM wparam, LPARAM l
case WM_INITDIALOG:
TranslateDialogDefault(hwndDlg);
hContact = (HANDLE)lparam;
- SetWindowLong(hwndDlg,GWL_USERDATA,lparam);
+ SetWindowLongPtr(hwndDlg,GWLP_USERDATA,lparam);
strcpy(sztemp,(char *)CallService(MS_CLIST_GETCONTACTDISPLAYNAME,(WPARAM)hContact,0));
strcat(sztemp, ": ");
strcat(sztemp, Translate("last seen history"));
@@ -230,7 +230,7 @@ BOOL CALLBACK HistoryDlgProc(HWND hwndDlg, UINT Message, WPARAM wparam, LPARAM l
case WM_DRAWITEM:
return CallService(MS_CLIST_MENUDRAWITEM,wparam,lparam);
case WM_COMMAND:
- hContact=(HANDLE)GetWindowLong(hwndDlg,GWL_USERDATA);
+ hContact=(HANDLE)GetWindowLongPtr(hwndDlg,GWLP_USERDATA);
if(CallService(MS_CLIST_MENUPROCESSCOMMAND,MAKEWPARAM(LOWORD(wparam),MPCF_CONTACTMENU),(LPARAM)hContact))
break;
switch(LOWORD(wparam))