From 009c7a01b9399f14be5c85b9343c3063b12e5c7e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 11 Mar 2014 18:30:49 +0000 Subject: SetWindowLong -> SetWindowLongPtr; GetWindowLong -> GetWindowLongPtr; LONG -> LONG_PTR git-svn-id: http://svn.miranda-ng.org/main/trunk@8559 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryStats/src/dlgoption.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/HistoryStats/src/dlgoption.cpp') diff --git a/plugins/HistoryStats/src/dlgoption.cpp b/plugins/HistoryStats/src/dlgoption.cpp index fb4820f956..b5dc1a43de 100644 --- a/plugins/HistoryStats/src/dlgoption.cpp +++ b/plugins/HistoryStats/src/dlgoption.cpp @@ -16,13 +16,13 @@ INT_PTR CALLBACK DlgOption::staticDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LP switch (msg) { case WM_INITDIALOG: pDlg = new DlgOption(hDlg); - SetWindowLong(hDlg, DWLP_USER, reinterpret_cast(pDlg)); + SetWindowLongPtr(hDlg, DWLP_USER, reinterpret_cast(pDlg)); pDlg->onWMInitDialog(); return TRUE; case WM_DESTROY: delete pDlg; - SetWindowLong(hDlg, DWLP_USER, 0); + SetWindowLongPtr(hDlg, DWLP_USER, 0); break; case WM_WINDOWPOSCHANGED: @@ -171,7 +171,7 @@ void DlgOption::onRunStats() Statistic::run(*g_pSettings, Statistic::fromOptions, g_hInst, m_hWnd); } -void DlgOption::onBandClicked(HANDLE hButton, DWORD dwData) +void DlgOption::onBandClicked(HANDLE hButton, INT_PTR dwData) { if (dwData >= opFirstPage && dwData <= opLastPage && dwData != m_nCurPage) { if (m_nCurPage != dwData) { @@ -190,7 +190,7 @@ void DlgOption::onBandClicked(HANDLE hButton, DWORD dwData) onRunStats(); } -void DlgOption::onBandDropDown(HANDLE hButton, DWORD dwData) +void DlgOption::onBandDropDown(HANDLE hButton, INT_PTR dwData) { if (dwData == opCreate || dwData == opCreateWarn) { // determine position for popup menu -- cgit v1.2.3