From 2840393bf5378c012577c4764dc4cbd162f85d4e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 8 Jun 2012 21:02:06 +0000 Subject: GetWindowLong -> GetWindowLongPtr git-svn-id: http://svn.miranda-ng.org/main/trunk@364 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/dialogs.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'protocols/FacebookRM') diff --git a/protocols/FacebookRM/dialogs.cpp b/protocols/FacebookRM/dialogs.cpp index da897e0073..02ce022d5b 100644 --- a/protocols/FacebookRM/dialogs.cpp +++ b/protocols/FacebookRM/dialogs.cpp @@ -47,7 +47,7 @@ INT_PTR CALLBACK FBAccountProc( HWND hwnd, UINT message, WPARAM wparam, LPARAM l TranslateDialogDefault(hwnd); proto = reinterpret_cast(lparam); - SetWindowLong(hwnd,GWLP_USERDATA,lparam); + SetWindowLongPtr(hwnd,GWLP_USERDATA,lparam); DBVARIANT dbv; if ( !DBGetContactSettingString(0,proto->ModuleName(),FACEBOOK_KEY_LOGIN,&dbv) ) @@ -92,7 +92,7 @@ INT_PTR CALLBACK FBAccountProc( HWND hwnd, UINT message, WPARAM wparam, LPARAM l case WM_NOTIFY: if ( reinterpret_cast(lparam)->code == PSN_APPLY ) { - proto = reinterpret_cast(GetWindowLong(hwnd,GWLP_USERDATA)); + proto = reinterpret_cast(GetWindowLongPtr(hwnd,GWLP_USERDATA)); char str[128]; GetDlgItemTextA(hwnd,IDC_UN,str,sizeof(str)); @@ -123,7 +123,7 @@ INT_PTR CALLBACK FBMindProc( HWND hwnd, UINT message, WPARAM wparam, LPARAM lpar TranslateDialogDefault(hwnd); proto = reinterpret_cast(lparam); - SetWindowLong(hwnd,GWLP_USERDATA,lparam); + SetWindowLongPtr(hwnd,GWLP_USERDATA,lparam); SendDlgItemMessage(hwnd,IDC_MINDMSG,EM_LIMITTEXT,FACEBOOK_MIND_LIMIT,0); DBVARIANT dbv = { DBVT_TCHAR }; @@ -153,7 +153,7 @@ INT_PTR CALLBACK FBMindProc( HWND hwnd, UINT message, WPARAM wparam, LPARAM lpar else if ( LOWORD( wparam ) == IDOK ) { TCHAR mindMessage[FACEBOOK_MIND_LIMIT+1]; - proto = reinterpret_cast(GetWindowLong(hwnd,GWLP_USERDATA)); + proto = reinterpret_cast(GetWindowLongPtr(hwnd,GWLP_USERDATA)); GetDlgItemText(hwnd,IDC_MINDMSG,mindMessage,SIZEOF(mindMessage)); ShowWindow(hwnd,SW_HIDE); @@ -182,7 +182,7 @@ INT_PTR CALLBACK FBMindProc( HWND hwnd, UINT message, WPARAM wparam, LPARAM lpar INT_PTR CALLBACK FBOptionsProc( HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam ) { - FacebookProto *proto = reinterpret_cast(GetWindowLong(hwnd,GWLP_USERDATA)); + FacebookProto *proto = reinterpret_cast(GetWindowLongPtr(hwnd,GWLP_USERDATA)); switch ( message ) { @@ -192,7 +192,7 @@ INT_PTR CALLBACK FBOptionsProc( HWND hwnd, UINT message, WPARAM wparam, LPARAM l TranslateDialogDefault(hwnd); proto = reinterpret_cast(lparam); - SetWindowLong(hwnd,GWLP_USERDATA,lparam); + SetWindowLongPtr(hwnd,GWLP_USERDATA,lparam); DBVARIANT dbv; if ( !DBGetContactSettingString(0,proto->ModuleName(),FACEBOOK_KEY_LOGIN,&dbv) ) @@ -284,7 +284,7 @@ INT_PTR CALLBACK FBOptionsProc( HWND hwnd, UINT message, WPARAM wparam, LPARAM l INT_PTR CALLBACK FBOptionsAdvancedProc( HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam ) { - FacebookProto *proto = reinterpret_cast(GetWindowLong(hwnd,GWLP_USERDATA)); + FacebookProto *proto = reinterpret_cast(GetWindowLongPtr(hwnd,GWLP_USERDATA)); switch ( message ) { @@ -294,7 +294,7 @@ INT_PTR CALLBACK FBOptionsAdvancedProc( HWND hwnd, UINT message, WPARAM wparam, TranslateDialogDefault(hwnd); proto = reinterpret_cast(lparam); - SetWindowLong(hwnd,GWLP_USERDATA,lparam); + SetWindowLongPtr(hwnd,GWLP_USERDATA,lparam); LoadDBCheckState(proto, hwnd, IDC_SECURE, FACEBOOK_KEY_FORCE_HTTPS, DEFAULT_FORCE_HTTPS); LoadDBCheckState(proto, hwnd, IDC_SECURE_CHANNEL, FACEBOOK_KEY_FORCE_HTTPS_CHANNEL, DEFAULT_FORCE_HTTPS_CHANNEL); @@ -357,7 +357,7 @@ INT_PTR CALLBACK FBOptionsAdvancedProc( HWND hwnd, UINT message, WPARAM wparam, INT_PTR CALLBACK FBEventsProc( HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam ) { - FacebookProto *proto = reinterpret_cast(GetWindowLong(hwnd,GWLP_USERDATA)); + FacebookProto *proto = reinterpret_cast(GetWindowLongPtr(hwnd,GWLP_USERDATA)); switch(message) { @@ -367,7 +367,7 @@ INT_PTR CALLBACK FBEventsProc( HWND hwnd, UINT message, WPARAM wparam, LPARAM lp TranslateDialogDefault(hwnd); proto = reinterpret_cast(lparam); - SetWindowLong(hwnd,GWLP_USERDATA,lparam); + SetWindowLongPtr(hwnd,GWLP_USERDATA,lparam); for(size_t i=0; i