summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorleo2001-01-02 17:41:18 +0000
committerleo2001-01-02 17:41:18 +0000
commitc050e5b4f2e57eba6ca9ae5b66a701eef9a89dd5 (patch)
tree03a07952ed934c044d280f00a56a0fb475825573 /win
parent0b2a355e9425c3e1b2a2ef1ea7229f407072682c (diff)
Save HTML dialog options
git-svn-id: http://svn.leocad.org/trunk@197 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win')
-rw-r--r--win/System.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/win/System.cpp b/win/System.cpp
index 7fcf8d6..c26e71d 100644
--- a/win/System.cpp
+++ b/win/System.cpp
@@ -1173,7 +1173,14 @@ bool SystemDoDialog(int nMode, void* param)
LC_HTMLDLG_OPTS* opts = (LC_HTMLDLG_OPTS*)param;
CHTMLDlg dlg(&opts->imdlg);
- if (dlg.DoModal() == IDOK)
+ dlg.m_nLayout = opts->singlepage ? 0 : 1;
+ dlg.m_bIndex = opts->index;
+ dlg.m_bImages = opts->images;
+ dlg.m_bListEnd = opts->listend;
+ dlg.m_bListStep = opts->liststep;
+ dlg.m_bHighlight = opts->highlight;
+
+ if (dlg.DoModal() == IDOK)
{
strcpy(opts->path, dlg.m_strFolder);
opts->singlepage = (dlg.m_nLayout == 0);
@@ -1181,7 +1188,7 @@ bool SystemDoDialog(int nMode, void* param)
opts->images = dlg.m_bImages == TRUE;
opts->listend = dlg.m_bListEnd == TRUE;
opts->liststep = dlg.m_bListStep == TRUE;
- opts->hilite = dlg.m_bHighlight == TRUE;
+ opts->highlight = dlg.m_bHighlight == TRUE;
return true;
}
} break;