summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-07-24 20:46:33 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-07-24 20:46:33 (GMT)
commitac1112ad06eea51d0ce9b02cdd3c5a8bda8b3db0 (patch)
treec5d06bdd7924d5a0866261354d9743c493dd2571 /Source/MFCDialog
parent1f2c84f2844067e83dfeea7d728fbc4e44c70547 (diff)
downloadCMake-ac1112ad06eea51d0ce9b02cdd3c5a8bda8b3db0.zip
CMake-ac1112ad06eea51d0ce9b02cdd3c5a8bda8b3db0.tar.gz
CMake-ac1112ad06eea51d0ce9b02cdd3c5a8bda8b3db0.tar.bz2
BUG: fix on scroll with buttons
Diffstat (limited to 'Source/MFCDialog')
-rw-r--r--Source/MFCDialog/CMakeSetupDialog.cpp3
-rw-r--r--Source/MFCDialog/PropertyList.cpp22
-rw-r--r--Source/MFCDialog/PropertyList.h2
-rw-r--r--Source/MFCDialog/resource.h3
4 files changed, 28 insertions, 2 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp
index cf22c10..d9ca2de 100644
--- a/Source/MFCDialog/CMakeSetupDialog.cpp
+++ b/Source/MFCDialog/CMakeSetupDialog.cpp
@@ -406,7 +406,8 @@ void CMakeSetupDialog::OnBuildProjects()
}
}
// set the wait cursor
- ::SetCursor(LoadCursor(NULL, IDC_WAIT));
+ ::SetCursor(LoadCursor(NULL, IDC_WAIT));
+
// get all the info from the dialog
this->UpdateData();
if(!m_BuildPathChanged)
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);
diff --git a/Source/MFCDialog/PropertyList.h b/Source/MFCDialog/PropertyList.h
index 235588b..9224e6d 100644
--- a/Source/MFCDialog/PropertyList.h
+++ b/Source/MFCDialog/PropertyList.h
@@ -104,6 +104,8 @@ protected:
afx_msg void OnDelete();
afx_msg void OnHelp();
afx_msg void OnCheckBox();
+ afx_msg void OnVScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar );
+
DECLARE_MESSAGE_MAP()
diff --git a/Source/MFCDialog/resource.h b/Source/MFCDialog/resource.h
index 1a7c3d3..faa5626 100644
--- a/Source/MFCDialog/resource.h
+++ b/Source/MFCDialog/resource.h
@@ -17,6 +17,7 @@
#define IDC_CMAKE_VERSION 1014
#define IDC_FRAME 1015
#define IDC_MouseHelpCaption 1016
+#define IDC_CompilingText 1017
// Next default values for new objects
//
@@ -24,7 +25,7 @@
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 133
#define _APS_NEXT_COMMAND_VALUE 32771
-#define _APS_NEXT_CONTROL_VALUE 1017
+#define _APS_NEXT_CONTROL_VALUE 1018
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif