GME  13
FilesInUseDlg.cpp
Go to the documentation of this file.
00001 // FilesInUseDlg.cpp : implementation file
00002 //
00003 
00004 #include "stdafx.h"
00005 #include "resource.h"
00006 #include "FilesInUseDlg.h"
00007 
00008 #ifdef _DEBUG
00009 #define new DEBUG_NEW
00010 #undef THIS_FILE
00011 static char THIS_FILE[] = __FILE__;
00012 #endif
00013 
00015 // CFilesInUseDlg dialog
00016 
00017 
00018 CFilesInUseDlg::CFilesInUseDlg(CWnd* pParent /*=NULL*/, bool changeText /* = false */)
00019         : CDialog(CFilesInUseDlg::IDD, pParent)
00020         , m_alternateText( changeText)
00021 {
00022         //{{AFX_DATA_INIT(CFilesInUseDlg)
00023                 // NOTE: the ClassWizard will add member initialization here
00024         //}}AFX_DATA_INIT
00025 }
00026 
00027 
00028 void CFilesInUseDlg::DoDataExchange(CDataExchange* pDX)
00029 {
00030         CDialog::DoDataExchange(pDX);
00031         //{{AFX_DATA_MAP(CFilesInUseDlg)
00032                 // NOTE: the ClassWizard will add DDX and DDV calls here
00033         //}}AFX_DATA_MAP
00034 }
00035 
00036 
00037 BEGIN_MESSAGE_MAP(CFilesInUseDlg, CDialog)
00038         //{{AFX_MSG_MAP(CFilesInUseDlg)
00039                 // NOTE: the ClassWizard will add message map macros here
00040         //}}AFX_MSG_MAP
00041 END_MESSAGE_MAP()
00042 
00044 // CFilesInUseDlg message handlers
00045 
00046 BOOL CFilesInUseDlg::OnInitDialog()
00047 {
00048         CDialog::OnInitDialog();
00049 
00050         // TODO:  Add extra initialization here
00051         if( m_alternateText)
00052         {
00053                 SetWindowText( "Files have been changed");
00054                 CStatic * p = (CStatic* ) GetDlgItem( IDC_STATIC);
00055                 if( p)
00056                         p->SetWindowText( "Cannot perform this operation because certain parts of the model have been changed and saved by other users.");
00057         }
00058 
00059         return TRUE;  // return TRUE unless you set the focus to a control
00060         // EXCEPTION: OCX Property Pages should return FALSE
00061 }