diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-11 18:30:49 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-11 18:30:49 +0000 |
commit | 009c7a01b9399f14be5c85b9343c3063b12e5c7e (patch) | |
tree | 1c0396712141c4b79f2a8478d19bc1d15321bf11 /plugins/HistoryStats/src/optionsctrlimpl_item.cpp | |
parent | 5dffb8d954968e1bd715bc62d0e3d51d5afb67c4 (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_item.cpp')
-rw-r--r-- | plugins/HistoryStats/src/optionsctrlimpl_item.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/HistoryStats/src/optionsctrlimpl_item.cpp b/plugins/HistoryStats/src/optionsctrlimpl_item.cpp index 998496bbc9..01df06d643 100644 --- a/plugins/HistoryStats/src/optionsctrlimpl_item.cpp +++ b/plugins/HistoryStats/src/optionsctrlimpl_item.cpp @@ -5,8 +5,8 @@ * OptionsCtrlImpl::Item
*/
-OptionsCtrlImpl::Item::Item(OptionsCtrlImpl* pCtrl, ItemType ItemType, const TCHAR* szLabel, DWORD dwFlags, DWORD dwData)
- : m_pCtrl(pCtrl), m_hItem(NULL), m_nRef(1), m_ItemType(ItemType), m_strLabel(szLabel), m_dwData(dwData)
+OptionsCtrlImpl::Item::Item(OptionsCtrlImpl* pCtrl, ItemType ItemType, const TCHAR* szLabel, DWORD dwFlags, INT_PTR dwData) :
+ m_pCtrl(pCtrl), m_hItem(NULL), m_nRef(1), m_ItemType(ItemType), m_strLabel(szLabel), m_dwData(dwData)
{
m_bEnabled = !(dwFlags & OCF_DISABLED);
m_bDisableChilds = !(dwFlags & OCF_NODISABLECHILDS);
@@ -15,15 +15,11 @@ OptionsCtrlImpl::Item::Item(OptionsCtrlImpl* pCtrl, ItemType ItemType, const TCH void OptionsCtrlImpl::Item::enableChilds(bool bEnable)
{
HTREEITEM hChild = TreeView_GetChild(m_pCtrl->m_hTree, m_hItem);
-
while (hChild)
{
Item* pItem = m_pCtrl->getItem(hChild);
-
if (pItem)
- {
pItem->setEnabled(bEnable);
- }
hChild = TreeView_GetNextSibling(m_pCtrl->m_hTree, hChild);
}
|