summaryrefslogtreecommitdiff
path: root/plugins/QuickMessages
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-08 21:02:06 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-08 21:02:06 +0000
commit2840393bf5378c012577c4764dc4cbd162f85d4e (patch)
tree257a83be6f650415d8b47bb982b0bc700e6c9f8c /plugins/QuickMessages
parentd0ffabed30e05f6dc56e2e5231637f333bc16003 (diff)
GetWindowLong -> GetWindowLongPtr
git-svn-id: http://svn.miranda-ng.org/main/trunk@364 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/QuickMessages')
-rw-r--r--plugins/QuickMessages/options.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/QuickMessages/options.c b/plugins/QuickMessages/options.c
index 7e7aeb978e..833c546262 100644
--- a/plugins/QuickMessages/options.c
+++ b/plugins/QuickMessages/options.c
@@ -565,19 +565,19 @@ INT_PTR CALLBACK OptionsProc(HWND hdlg,UINT msg,WPARAM wparam,LPARAM lparam)
hButtonsList=GetDlgItem(hdlg,IDC_BUTTONSLIST);
hMenuTree=GetDlgItem(hdlg,IDC_MENUTREE);
- style = GetWindowLong(hButtonsList,GWL_STYLE);
+ style = GetWindowLongPtr(hButtonsList,GWL_STYLE);
style |=TVS_NOHSCROLL;
- SetWindowLong(hButtonsList,GWL_STYLE, style);
+ SetWindowLongPtr(hButtonsList,GWL_STYLE, style);
- style = GetWindowLong(hMenuTree,GWL_STYLE);
+ style = GetWindowLongPtr(hMenuTree,GWL_STYLE);
style |=TVS_NOHSCROLL;
- SetWindowLong(hMenuTree,GWL_STYLE, style);
+ SetWindowLongPtr(hMenuTree,GWL_STYLE, style);
BuildButtonsList(hButtonsList);
if (!TreeView_GetCount(hButtonsList)) EnableWindow(GetDlgItem(hdlg,IDC_RCLICKVALUE),FALSE);
- oldBNameProc = (WNDPROC) SetWindowLong(GetDlgItem(hdlg,IDC_BUTTONNAME), GWLP_WNDPROC, (LONG) EditSubclassProc);
- oldMNameProc = (WNDPROC) SetWindowLong(GetDlgItem(hdlg,IDC_MENUNAME) , GWLP_WNDPROC, (LONG) EditSubclassProc);
+ oldBNameProc = (WNDPROC) SetWindowLongPtr(GetDlgItem(hdlg,IDC_BUTTONNAME), GWLP_WNDPROC, (LONG) EditSubclassProc);
+ oldMNameProc = (WNDPROC) SetWindowLongPtr(GetDlgItem(hdlg,IDC_MENUNAME) , GWLP_WNDPROC, (LONG) EditSubclassProc);
EnableWindow(GetDlgItem(hdlg,IDC_MENUVALUE),FALSE);
@@ -758,7 +758,7 @@ INT_PTR CALLBACK OptionsProc(HWND hdlg,UINT msg,WPARAM wparam,LPARAM lparam)
case TVN_BEGINLABELEDITA:
case TVN_BEGINLABELEDITW:
hwndEdit=TreeView_GetEditControl(hMenuTree);
- oldEditProc = (WNDPROC) SetWindowLong(hwndEdit, GWLP_WNDPROC, (LONG) LabelEditSubclassProc);
+ oldEditProc = (WNDPROC) SetWindowLongPtr(hwndEdit, GWLP_WNDPROC, (LONG) LabelEditSubclassProc);
break;
case TVN_ENDLABELEDITA:
@@ -769,7 +769,7 @@ INT_PTR CALLBACK OptionsProc(HWND hdlg,UINT msg,WPARAM wparam,LPARAM lparam)
TCHAR strbuf[256];
TCHAR szLabel[256];
- SetWindowLong(hwndEdit, GWLP_WNDPROC, (LONG) oldEditProc);
+ SetWindowLongPtr(hwndEdit, GWLP_WNDPROC, (LONG) oldEditProc);
tvi.pszText = strbuf;
tvi.cchTextMax = sizeof(strbuf);
@@ -906,7 +906,7 @@ INT_PTR CALLBACK OptionsProc(HWND hdlg,UINT msg,WPARAM wparam,LPARAM lparam)
case TVN_BEGINLABELEDITA:
case TVN_BEGINLABELEDITW:
hwndEdit=TreeView_GetEditControl(hButtonsList);
- oldEditProc = (WNDPROC) SetWindowLong(hwndEdit, GWLP_WNDPROC, (LONG) LabelEditSubclassProc);
+ oldEditProc = (WNDPROC) SetWindowLongPtr(hwndEdit, GWLP_WNDPROC, (LONG) LabelEditSubclassProc);
break;
case TVN_ENDLABELEDITA:
@@ -915,7 +915,7 @@ INT_PTR CALLBACK OptionsProc(HWND hdlg,UINT msg,WPARAM wparam,LPARAM lparam)
TCHAR strbuf[128];
TCHAR szLabel[128];
- SetWindowLong(hwndEdit, GWLP_WNDPROC, (LONG) oldEditProc);
+ SetWindowLongPtr(hwndEdit, GWLP_WNDPROC, (LONG) oldEditProc);
tvi.pszText = strbuf;
tvi.cchTextMax = sizeof(strbuf);
@@ -1135,8 +1135,8 @@ INT_PTR CALLBACK OptionsProc(HWND hdlg,UINT msg,WPARAM wparam,LPARAM lparam)
}break;
case WM_NCDESTROY:
- if(oldBNameProc) SetWindowLong(GetDlgItem(hdlg,IDC_BUTTONNAME), GWLP_WNDPROC, (LONG) oldBNameProc);
- if(oldMNameProc) SetWindowLong(GetDlgItem(hdlg,IDC_MENUNAME) , GWLP_WNDPROC, (LONG) oldMNameProc);
+ if(oldBNameProc) SetWindowLongPtr(GetDlgItem(hdlg,IDC_BUTTONNAME), GWLP_WNDPROC, (LONG) oldBNameProc);
+ if(oldMNameProc) SetWindowLongPtr(GetDlgItem(hdlg,IDC_MENUNAME) , GWLP_WNDPROC, (LONG) oldMNameProc);
break;
case WM_CLOSE: