GME  13
ClosureSimple.cpp
Go to the documentation of this file.
00001 // ClosureSimple.cpp : implementation file
00002 //
00003 
00004 #include "stdafx.h"
00005 #include "MgaUtil.h"
00006 #include "ClosureSimple.h"
00007 
00008 
00009 // CClosureSimple dialog
00010 
00011 IMPLEMENT_DYNAMIC(CClosureSimple, CDialog)
00012 CClosureSimple::CClosureSimple(CWnd* pParent /*=NULL*/)
00013         : CDialog(CClosureSimple::IDD, pParent)
00014         , m_enableContainChkBox( true)
00015         , m_enableFolderChkBox( true)
00016         , m_bCont(FALSE)
00017         , m_bFoldCont(FALSE)
00018         , m_bConn(FALSE)
00019         , m_bRef(FALSE)
00020         , m_bAtom(FALSE)
00021         , m_bSet(FALSE)
00022 {
00023 }
00024 
00025 CClosureSimple::~CClosureSimple()
00026 {
00027 }
00028 
00029 void CClosureSimple::DoDataExchange(CDataExchange* pDX)
00030 {
00031         CDialog::DoDataExchange(pDX);
00032         DDX_Control(pDX, IDC_CHECK1, m_cont);
00033         DDX_Control(pDX, IDC_CHECK6, m_foldCont);
00034         DDX_Check(pDX, IDC_CHECK1, m_bCont);
00035         DDX_Check(pDX, IDC_CHECK6, m_bFoldCont);
00036         DDX_Check(pDX, IDC_EXCONN, m_bConn);
00037         DDX_Check(pDX, IDC_EXREF, m_bRef);
00038         DDX_Check(pDX, IDC_EXATOM, m_bAtom);
00039         DDX_Check(pDX, IDC_EXSET, m_bSet);
00040 }
00041 
00042 
00043 BEGIN_MESSAGE_MAP(CClosureSimple, CDialog)
00044 END_MESSAGE_MAP()
00045 
00046 
00047 // CClosureSimple message handlers
00048 BOOL CClosureSimple::OnInitDialog() 
00049 {
00050         m_bCont = m_enableContainChkBox?TRUE:FALSE;
00051         m_bFoldCont = m_enableContainChkBox && m_enableFolderChkBox?TRUE:FALSE;
00052         
00053         UpdateData( FALSE);
00054         CDialog::OnInitDialog();
00055 
00056         m_cont.EnableWindow( m_enableContainChkBox);
00057         m_foldCont.EnableWindow( m_enableContainChkBox && m_enableFolderChkBox);
00058         
00059         return TRUE;  // return TRUE unless you set the focus to a control
00060                       // EXCEPTION: OCX Property Pages should return FALSE
00061 }