summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/optionsctrlimpl_item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/HistoryStats/src/optionsctrlimpl_item.cpp')
-rw-r--r--plugins/HistoryStats/src/optionsctrlimpl_item.cpp8
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);
}