summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/optionsctrlimpl.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-11 18:30:49 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-11 18:30:49 +0000
commit009c7a01b9399f14be5c85b9343c3063b12e5c7e (patch)
tree1c0396712141c4b79f2a8478d19bc1d15321bf11 /plugins/HistoryStats/src/optionsctrlimpl.cpp
parent5dffb8d954968e1bd715bc62d0e3d51d5afb67c4 (diff)
SetWindowLong -> SetWindowLongPtr;
GetWindowLong -> GetWindowLongPtr; LONG -> LONG_PTR git-svn-id: http://svn.miranda-ng.org/main/trunk@8559 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryStats/src/optionsctrlimpl.cpp')
-rw-r--r--plugins/HistoryStats/src/optionsctrlimpl.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/HistoryStats/src/optionsctrlimpl.cpp b/plugins/HistoryStats/src/optionsctrlimpl.cpp
index 445fc10340..b986888864 100644
--- a/plugins/HistoryStats/src/optionsctrlimpl.cpp
+++ b/plugins/HistoryStats/src/optionsctrlimpl.cpp
@@ -26,7 +26,7 @@ LRESULT CALLBACK OptionsCtrlImpl::staticWndProc(HWND hWnd, UINT msg, WPARAM wPar
pCS->dwExStyle &= ~(WS_EX_CLIENTEDGE | WS_EX_STATICEDGE | WS_EX_WINDOWEDGE);
pCtrl = new OptionsCtrlImpl(hWnd, reinterpret_cast<int>(pCS->hMenu));
- SetWindowLong(hWnd, 0, reinterpret_cast<LONG>(pCtrl));
+ SetWindowLongPtr(hWnd, 0, reinterpret_cast<LONG_PTR>(pCtrl));
}
return pCtrl ? TRUE : FALSE;
@@ -36,7 +36,7 @@ LRESULT CALLBACK OptionsCtrlImpl::staticWndProc(HWND hWnd, UINT msg, WPARAM wPar
case WM_DESTROY:
pCtrl->onWMDestroy();
delete pCtrl;
- SetWindowLong(hWnd, 0, 0);
+ SetWindowLongPtr(hWnd, 0, 0);
return 0;
case WM_SETFOCUS:
@@ -448,7 +448,7 @@ LRESULT OptionsCtrlImpl::onWMCreate(CREATESTRUCT* pCS)
return -1;
// subclass tree view
- m_pfnOldTreeProc = reinterpret_cast<WNDPROC>(SetWindowLong(m_hTree, GWLP_WNDPROC, reinterpret_cast<LONG>(staticTreeProc)));
+ m_pfnOldTreeProc = reinterpret_cast<WNDPROC>(SetWindowLongPtr(m_hTree, GWLP_WNDPROC, reinterpret_cast<LONG_PTR>(staticTreeProc)));
// create/set state icons
staticInitStateImages();
@@ -466,7 +466,7 @@ void OptionsCtrlImpl::onWMDestroy()
staticFreeStateImages();
// undo subclassing of tree view
- SetWindowLong(m_hTree, GWLP_WNDPROC, reinterpret_cast<LONG>(m_pfnOldTreeProc));
+ SetWindowLongPtr(m_hTree, GWLP_WNDPROC, reinterpret_cast<LONG_PTR>(m_pfnOldTreeProc));
m_pfnOldTreeProc = NULL;
// destroy tree view before invalidating 'this'
@@ -865,7 +865,7 @@ DWORD OptionsCtrlImpl::onOCMGetItemData(HTREEITEM hItem)
return getItem(hItem)->m_dwData;
}
-void OptionsCtrlImpl::onOCMSetItemData(HTREEITEM hItem, DWORD dwData)
+void OptionsCtrlImpl::onOCMSetItemData(HTREEITEM hItem, INT_PTR dwData)
{
getItem(hItem)->m_dwData = dwData;
}