diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-08 21:02:06 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-08 21:02:06 +0000 |
commit | 2840393bf5378c012577c4764dc4cbd162f85d4e (patch) | |
tree | 257a83be6f650415d8b47bb982b0bc700e6c9f8c /plugins/Modernb/modern_aniavatars.cpp | |
parent | d0ffabed30e05f6dc56e2e5231637f333bc16003 (diff) |
GetWindowLong -> GetWindowLongPtr
git-svn-id: http://svn.miranda-ng.org/main/trunk@364 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Modernb/modern_aniavatars.cpp')
-rw-r--r-- | plugins/Modernb/modern_aniavatars.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Modernb/modern_aniavatars.cpp b/plugins/Modernb/modern_aniavatars.cpp index 5e060c2028..dcad45f439 100644 --- a/plugins/Modernb/modern_aniavatars.cpp +++ b/plugins/Modernb/modern_aniavatars.cpp @@ -940,9 +940,9 @@ static void _AniAva_RenderAvatar(ANIAVA_WINDOWINFO * dat, HDC hdcParent /* = NUL else if (!g_proc_UpdateLayeredWindow(dat->hWindow, hDC_animation, &ptWnd, &szWnd, copyFromDC, &pt_from, RGB(0,0,0), &bf, ULW_ALPHA ))
{
LONG exStyle;
- exStyle=GetWindowLong(dat->hWindow,GWL_EXSTYLE);
+ exStyle=GetWindowLongPtr(dat->hWindow,GWL_EXSTYLE);
exStyle|=WS_EX_LAYERED;
- SetWindowLong(dat->hWindow,GWL_EXSTYLE,exStyle);
+ SetWindowLongPtr(dat->hWindow,GWL_EXSTYLE,exStyle);
if ( !IMMEDIATE_DRAW )
SetWindowPos( pcli->hwndContactTree, dat->hWindow, 0, 0, 0, 0, SWP_ASYNCWINDOWPOS | SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOSENDCHANGING );
g_proc_UpdateLayeredWindow(dat->hWindow, hDC_animation, &ptWnd, &szWnd, copyFromDC, &pt_from, RGB(0,0,0), &bf, ULW_ALPHA );
@@ -1198,7 +1198,7 @@ static LRESULT CALLBACK _AniAva_WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR else
{
LONG exStyle;
- exStyle=GetWindowLong(pcli->hwndContactList,GWL_EXSTYLE);
+ exStyle=GetWindowLongPtr(pcli->hwndContactList,GWL_EXSTYLE);
SetWindowPos(pcli->hwndContactList,hwnd,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE|SWP_NOACTIVATE/*|SWP_ASYNCWINDOWPOS*/);
if (!(exStyle&WS_EX_TOPMOST))
SetWindowPos(pcli->hwndContactList,HWND_NOTOPMOST,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE|SWP_NOACTIVATE/*|SWP_ASYNCWINDOWPOS*/);
@@ -1217,7 +1217,7 @@ static LRESULT CALLBACK _AniAva_WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR else
{
LONG exStyle;
- exStyle=GetWindowLong(pcli->hwndContactList,GWL_EXSTYLE);
+ exStyle=GetWindowLongPtr(pcli->hwndContactList,GWL_EXSTYLE);
SetWindowPos(pcli->hwndContactList,hwnd,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE|SWP_NOACTIVATE/*|SWP_ASYNCWINDOWPOS*/);
if (!(exStyle&WS_EX_TOPMOST))
SetWindowPos(pcli->hwndContactList,HWND_NOTOPMOST,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE|SWP_NOACTIVATE/*|SWP_ASYNCWINDOWPOS*/);
@@ -1249,11 +1249,11 @@ static LRESULT CALLBACK _AniAva_WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR //change layered mode
exStyle=GetWindowLongPtr(dat->hWindow,GWL_EXSTYLE);
exStyle|=WS_EX_LAYERED;
- SetWindowLong(dat->hWindow,GWL_EXSTYLE,exStyle);
- exStyle=GetWindowLong(dat->hWindow,GWL_STYLE);
+ SetWindowLongPtr(dat->hWindow,GWL_EXSTYLE,exStyle);
+ exStyle=GetWindowLongPtr(dat->hWindow,GWL_STYLE);
exStyle&=~WS_POPUP;
exStyle|=WS_CHILD;
- SetWindowLong(dat->hWindow,GWL_STYLE,exStyle);
+ SetWindowLongPtr(dat->hWindow,GWL_STYLE,exStyle);
break;
}
case WM_TIMER:
|