From fc4ce5a1e786192c86f14e9d99ad9b14eab201ef Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 11 Mar 2014 19:30:22 +0000 Subject: some GetWindowLong survived in HistoryStats... git-svn-id: http://svn.miranda-ng.org/main/trunk@8560 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryStats/src/bandctrlimpl.cpp | 2 +- plugins/HistoryStats/src/dlgconfigure.cpp | 2 +- plugins/HistoryStats/src/dlgfilterwords.cpp | 2 +- plugins/HistoryStats/src/dlgoption.cpp | 2 +- plugins/HistoryStats/src/dlgoption_subbase.cpp | 2 +- plugins/HistoryStats/src/dlgoption_subglobal.cpp | 2 +- plugins/HistoryStats/src/optionsctrlimpl.cpp | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins') diff --git a/plugins/HistoryStats/src/bandctrlimpl.cpp b/plugins/HistoryStats/src/bandctrlimpl.cpp index 8445debf64..b68dadee1d 100644 --- a/plugins/HistoryStats/src/bandctrlimpl.cpp +++ b/plugins/HistoryStats/src/bandctrlimpl.cpp @@ -14,7 +14,7 @@ const int BandCtrlImpl::m_PollDelay = 50; LRESULT CALLBACK BandCtrlImpl::staticWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { - BandCtrlImpl* pCtrl = reinterpret_cast(GetWindowLong(hWnd, 0)); + BandCtrlImpl* pCtrl = reinterpret_cast(GetWindowLongPtr(hWnd, 0)); switch (msg) { case WM_NCCREATE: diff --git a/plugins/HistoryStats/src/dlgconfigure.cpp b/plugins/HistoryStats/src/dlgconfigure.cpp index 55382f7e32..7edc52c919 100644 --- a/plugins/HistoryStats/src/dlgconfigure.cpp +++ b/plugins/HistoryStats/src/dlgconfigure.cpp @@ -15,7 +15,7 @@ bool DlgConfigure::m_bHookedEvent = false; INT_PTR CALLBACK DlgConfigure::staticConfigureProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) { - DlgConfigure* pDlg = reinterpret_cast(GetWindowLong(hDlg, DWLP_USER)); + DlgConfigure* pDlg = reinterpret_cast(GetWindowLongPtr(hDlg, DWLP_USER)); switch (msg) { case WM_INITDIALOG: diff --git a/plugins/HistoryStats/src/dlgfilterwords.cpp b/plugins/HistoryStats/src/dlgfilterwords.cpp index 4f8682183c..36fdf6b26a 100644 --- a/plugins/HistoryStats/src/dlgfilterwords.cpp +++ b/plugins/HistoryStats/src/dlgfilterwords.cpp @@ -8,7 +8,7 @@ INT_PTR CALLBACK DlgFilterWords::staticDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) { - DlgFilterWords* pDlg = reinterpret_cast(GetWindowLong(hDlg, DWLP_USER)); + DlgFilterWords* pDlg = reinterpret_cast(GetWindowLongPtr(hDlg, DWLP_USER)); switch (msg) { case WM_INITDIALOG: diff --git a/plugins/HistoryStats/src/dlgoption.cpp b/plugins/HistoryStats/src/dlgoption.cpp index b5dc1a43de..2bfbf7e019 100644 --- a/plugins/HistoryStats/src/dlgoption.cpp +++ b/plugins/HistoryStats/src/dlgoption.cpp @@ -11,7 +11,7 @@ INT_PTR CALLBACK DlgOption::staticDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) { - DlgOption* pDlg = reinterpret_cast(GetWindowLong(hDlg, DWLP_USER)); + DlgOption* pDlg = reinterpret_cast(GetWindowLongPtr(hDlg, DWLP_USER)); switch (msg) { case WM_INITDIALOG: diff --git a/plugins/HistoryStats/src/dlgoption_subbase.cpp b/plugins/HistoryStats/src/dlgoption_subbase.cpp index 820ed37645..1e920e437d 100644 --- a/plugins/HistoryStats/src/dlgoption_subbase.cpp +++ b/plugins/HistoryStats/src/dlgoption_subbase.cpp @@ -9,7 +9,7 @@ INT_PTR CALLBACK DlgOption::SubBase::staticDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) { - SubBase* pDlg = reinterpret_cast(GetWindowLong(hDlg, DWLP_USER)); + SubBase* pDlg = reinterpret_cast(GetWindowLongPtr(hDlg, DWLP_USER)); switch (msg) { case WM_INITDIALOG: diff --git a/plugins/HistoryStats/src/dlgoption_subglobal.cpp b/plugins/HistoryStats/src/dlgoption_subglobal.cpp index c34752dbdc..056c13c72a 100644 --- a/plugins/HistoryStats/src/dlgoption_subglobal.cpp +++ b/plugins/HistoryStats/src/dlgoption_subglobal.cpp @@ -346,7 +346,7 @@ void DlgOption::SubGlobal::initSupportInfo() HWND hInfo = GetDlgItem(getHWnd(), IDC_INFO); - SetWindowLongPtr(hInfo, GWL_STYLE, GetWindowLong(hInfo, GWL_STYLE) | TVS_NOHSCROLL); + SetWindowLongPtr(hInfo, GWL_STYLE, GetWindowLongPtr(hInfo, GWL_STYLE) | TVS_NOHSCROLL); SendMessage(hInfo, WM_SETREDRAW, FALSE, 0); diff --git a/plugins/HistoryStats/src/optionsctrlimpl.cpp b/plugins/HistoryStats/src/optionsctrlimpl.cpp index b986888864..748364bec8 100644 --- a/plugins/HistoryStats/src/optionsctrlimpl.cpp +++ b/plugins/HistoryStats/src/optionsctrlimpl.cpp @@ -14,7 +14,7 @@ int OptionsCtrlImpl::m_nStateIconsRef = 0; LRESULT CALLBACK OptionsCtrlImpl::staticWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { - OptionsCtrlImpl* pCtrl = reinterpret_cast(GetWindowLong(hWnd, 0)); + OptionsCtrlImpl* pCtrl = reinterpret_cast(GetWindowLongPtr(hWnd, 0)); switch (msg) { case WM_NCCREATE: @@ -262,7 +262,7 @@ LRESULT CALLBACK OptionsCtrlImpl::staticWndProc(HWND hWnd, UINT msg, WPARAM wPar LRESULT CALLBACK OptionsCtrlImpl::staticTreeProc(HWND hTree, UINT msg, WPARAM wParam, LPARAM lParam) { - OptionsCtrlImpl* pCtrl = reinterpret_cast(GetWindowLong(GetParent(hTree), 0)); + OptionsCtrlImpl* pCtrl = reinterpret_cast(GetWindowLongPtr(GetParent(hTree), 0)); switch (msg) { case WM_LBUTTONDOWN: -- cgit v1.2.3