diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-07-24 20:46:33 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-07-24 20:46:33 (GMT) |
commit | ac1112ad06eea51d0ce9b02cdd3c5a8bda8b3db0 (patch) | |
tree | c5d06bdd7924d5a0866261354d9743c493dd2571 /Source/MFCDialog/PropertyList.cpp | |
parent | 1f2c84f2844067e83dfeea7d728fbc4e44c70547 (diff) | |
download | CMake-ac1112ad06eea51d0ce9b02cdd3c5a8bda8b3db0.zip CMake-ac1112ad06eea51d0ce9b02cdd3c5a8bda8b3db0.tar.gz CMake-ac1112ad06eea51d0ce9b02cdd3c5a8bda8b3db0.tar.bz2 |
BUG: fix on scroll with buttons
Diffstat (limited to 'Source/MFCDialog/PropertyList.cpp')
-rw-r--r-- | Source/MFCDialog/PropertyList.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Source/MFCDialog/PropertyList.cpp b/Source/MFCDialog/PropertyList.cpp index d18f30e..ebb26de 100644 --- a/Source/MFCDialog/PropertyList.cpp +++ b/Source/MFCDialog/PropertyList.cpp @@ -34,6 +34,7 @@ CPropertyList::~CPropertyList() BEGIN_MESSAGE_MAP(CPropertyList, CListBox) //{{AFX_MSG_MAP(CPropertyList) ON_WM_CREATE() + ON_WM_VSCROLL() ON_CONTROL_REFLECT(LBN_SELCHANGE, OnSelchange) ON_WM_LBUTTONUP() ON_WM_KILLFOCUS() @@ -356,6 +357,27 @@ void CPropertyList::OnChangeEditBox() } } +void CPropertyList::OnVScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar ) +{ + if(m_editBox) + { + m_editBox.ShowWindow(SW_HIDE); + } + if(m_cmbBox) + { + m_cmbBox.ShowWindow(SW_HIDE); + } + if(m_CheckBoxControl) + { + m_CheckBoxControl.ShowWindow(SW_HIDE); + } + if(m_btnCtrl) + { + m_btnCtrl.ShowWindow(SW_HIDE); + } + CListBox::OnVScroll(nSBCode, nPos, pScrollBar); +} + void CPropertyList::OnCheckBox() { CPropertyItem* pItem = (CPropertyItem*) GetItemDataPtr(m_curSel); |