summaryrefslogtreecommitdiff
path: root/plugins/Clist_mw/src
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-03-12 13:26:44 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-03-12 13:26:44 +0000
commit263990471dfd375089cf7044d660a0aec62c5fb8 (patch)
tree74890cae94eee37102c8cf343a1f83bcfe9ff050 /plugins/Clist_mw/src
parent5aca7788f891521104f8bed712672af236465cc1 (diff)
Some fixes for x64: SetWindowLong -> SetWindowLongPtr, GetWindowLong -> GetWindowLongPtr
git-svn-id: http://svn.miranda-ng.org/main/trunk@8572 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_mw/src')
-rw-r--r--plugins/Clist_mw/src/CLUIFrames/cluiframes.cpp9
-rw-r--r--plugins/Clist_mw/src/clc.cpp2
2 files changed, 6 insertions, 5 deletions
diff --git a/plugins/Clist_mw/src/CLUIFrames/cluiframes.cpp b/plugins/Clist_mw/src/CLUIFrames/cluiframes.cpp
index b6b51de7c7..64b23ae937 100644
--- a/plugins/Clist_mw/src/CLUIFrames/cluiframes.cpp
+++ b/plugins/Clist_mw/src/CLUIFrames/cluiframes.cpp
@@ -910,7 +910,7 @@ INT_PTR CLUIFramesSetFrameOptions(WPARAM wParam, LPARAM lParam)
switch(LOWORD(wParam) & ~FO_UNICODETEXT) {
case FO_FLAGS:{
int flag = lParam;
- int style;
+ LONG_PTR style;
Frames[pos].dwFlags = flag;
Frames[pos].visible = FALSE;
@@ -936,7 +936,7 @@ INT_PTR CLUIFramesSetFrameOptions(WPARAM wParam, LPARAM lParam)
style = (int)GetWindowLongPtr(Frames[pos].hWnd,GWL_STYLE);
style |= WS_BORDER;
if (flag&F_NOBORDER) {style &= (~WS_BORDER);}
- SetWindowLongPtr(Frames[pos].hWnd,GWL_STYLE,(LONG)style);
+ SetWindowLongPtr(Frames[pos].hWnd,GWL_STYLE,(LONG_PTR)style);
ulockfrm();
CLUIFramesOnClistResize((WPARAM)pcli->hwndContactList,0);
return 0;
@@ -1418,7 +1418,8 @@ static int UpdateTBToolTip(int framepos)
//wparam = (CLISTFrame*)clfrm
INT_PTR CLUIFramesAddFrame(WPARAM wParam, LPARAM lParam)
{
- int style,retval;
+ int retval;
+ LONG_PTR style;
CLISTFrame *clfrm = (CLISTFrame *)wParam;
if (pcli->hwndContactList == 0) return -1;
@@ -2634,7 +2635,7 @@ INT_PTR CLUIFrameSetFloat(WPARAM wParam, LPARAM lParam)
}
else {
RECT recttb,rectw,border;
- int temp;
+ LONG_PTR temp;
int neww,newh;
BOOLEAN locked;
diff --git a/plugins/Clist_mw/src/clc.cpp b/plugins/Clist_mw/src/clc.cpp
index eb93367b70..7f2c6c618d 100644
--- a/plugins/Clist_mw/src/clc.cpp
+++ b/plugins/Clist_mw/src/clc.cpp
@@ -136,7 +136,7 @@ LRESULT CALLBACK ContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, L
switch (msg) {
case WM_CREATE:
dat = (struct ClcData*)mir_calloc( sizeof(struct ClcData));
- SetWindowLongPtr(hwnd,0,(LPARAM)dat);
+ SetWindowLongPtr(hwnd,0,(LONG_PTR)dat);
InitDisplayNameCache(&dat->lCLCContactsCache);
break;