summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleo2005-06-03 21:45:04 +0000
committerleo2005-06-03 21:45:04 +0000
commit6ebd2ed9b1bd07d0420d0ba6cd79ce3a62cb63a4 (patch)
tree8339693c5796e1ce321bf51bae4ce09cf65701b2
parent0f0c35b9a49652f968bdd3ee12abb6f6c62eff3a (diff)
Correctly enable/disable options when the dialog appears.
git-svn-id: http://svn.leocad.org/trunk@401 c7d43263-9d01-0410-8a33-9dba5d9f93d6
-rw-r--r--win/Htmldlg.cpp10
-rw-r--r--win/Htmldlg.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/win/Htmldlg.cpp b/win/Htmldlg.cpp
index 88864e7..811647d 100644
--- a/win/Htmldlg.cpp
+++ b/win/Htmldlg.cpp
@@ -93,3 +93,13 @@ void CHTMLDlg::OnHtmdlgBrowsefolder()
UpdateData (FALSE);
}
}
+
+BOOL CHTMLDlg::OnInitDialog()
+{
+ CDialog::OnInitDialog();
+
+ GetDlgItem(IDC_HTMDLG_LISTIMAGES)->EnableWindow(m_bListStep || m_bListEnd);
+ GetDlgItem(IDC_HTMDLG_INDEX)->EnableWindow(m_nLayout != 0);
+
+ return TRUE;
+}
diff --git a/win/Htmldlg.h b/win/Htmldlg.h
index de5b4f2..97e1f4c 100644
--- a/win/Htmldlg.h
+++ b/win/Htmldlg.h
@@ -47,6 +47,7 @@ protected:
afx_msg void OnListClick();
afx_msg void OnLayoutClick();
afx_msg void OnHtmdlgBrowsefolder();
+ virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};