GME  13
FilesInUseDetailsDlg.cpp
Go to the documentation of this file.
00001 // FilesInUseDetailsDlg.cpp : implementation file
00002 //
00003 
00004 #include "stdafx.h"
00005 #include "resource.h"
00006 #include "FilesInUseDetailsDlg.h"
00007 
00008 #ifdef _DEBUG
00009 #define new DEBUG_NEW
00010 #undef THIS_FILE
00011 static char THIS_FILE[] = __FILE__;
00012 #endif
00013 
00015 // CFilesInUseDetailsDlg dialog
00016 
00017 
00018 CFilesInUseDetailsDlg::CFilesInUseDetailsDlg(CWnd* pParent /*=NULL*/, bool p_alternateText /*= false*/)
00019         : CDialog(CFilesInUseDetailsDlg::IDD, pParent)
00020         , m_alternateText( p_alternateText)
00021 {
00022         //{{AFX_DATA_INIT(CFilesInUseDetailsDlg)
00023                 // NOTE: the ClassWizard will add member initialization here
00024         //}}AFX_DATA_INIT
00025 }
00026 
00027 
00028 void CFilesInUseDetailsDlg::DoDataExchange(CDataExchange* pDX)
00029 {
00030         CDialog::DoDataExchange(pDX);
00031         //{{AFX_DATA_MAP(CFilesInUseDetailsDlg)
00032         DDX_Control(pDX, IDC_LIST, m_list);
00033         //}}AFX_DATA_MAP
00034 }
00035 
00036 
00037 BEGIN_MESSAGE_MAP(CFilesInUseDetailsDlg, CDialog)
00038         //{{AFX_MSG_MAP(CFilesInUseDetailsDlg)
00039         //}}AFX_MSG_MAP
00040 END_MESSAGE_MAP()
00041 
00043 // CFilesInUseDetailsDlg message handlers
00044 
00045 BOOL CFilesInUseDetailsDlg::OnInitDialog() 
00046 {
00047         CDialog::OnInitDialog();
00048 
00049     if( m_alternateText)
00050         {
00051                 SetWindowText( "Files changed and saved by other users");
00052                 CStatic * p = (CStatic* ) GetDlgItem( IDC_STATIC);
00053                 if( p)
00054                         p->SetWindowText( "Latent changed files: user, model/folder name, type (model/folder)");
00055         }
00056 
00057         for( unsigned int i=0; i<m_fileList.size(); ++i )
00058         m_list.AddString( m_fileList[i].c_str() );
00059  
00060         
00061         return TRUE;
00062 }