Browse Source

BUG: fix on scroll with buttons

Bill Hoffman 24 years ago
parent
commit
ac1112ad06

+ 2 - 1
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)

+ 22 - 0
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);

+ 2 - 0
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()
 

+ 2 - 1
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