diff options
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); |