From 540a3ffe4a9be39c346973e1f958c02398ce3f8a Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 24 Apr 2005 01:44:23 +0000 Subject: Initial working version --- groupexplode/dialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'groupexplode/dialog.cpp') diff --git a/groupexplode/dialog.cpp b/groupexplode/dialog.cpp index 6816de9..c8d30f7 100644 --- a/groupexplode/dialog.cpp +++ b/groupexplode/dialog.cpp @@ -33,6 +33,7 @@ Dialog::Dialog(const StringList& groups) : m_ok(this,IDC_OKBUT,0) , m_cancel(this,IDC_CANCELBUT,0) , m_rmOrig(this,IDC_RMORIG,0) + , m_collate(this,IDC_COLLATE,0) , m_groups(this,IDC_GROUP,0) , m_sel(-1) , m_groupList(groups) @@ -67,6 +68,7 @@ void Dialog::OnInit() m_groups.SelectedIndex(0); + m_collate.SetState(Config::Collate()); m_rmOrig.SetState(Config::RemoveOriginal()); } @@ -82,7 +84,10 @@ int Dialog::GetSelectedGroup() BOOL Dialog::OnOK(UINT msg, WPARAM wp, LPARAM lp) { + Config::Collate(m_collate.GetState()); Config::RemoveOriginal(m_rmOrig.GetState()); + Config::Save(); + m_sel=m_groups.SelectedIndex(); Close(IDOK); -- cgit v1.2.3