Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

FileInfoDialog.cpp

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 // FileInfoDialog.cpp : implementation file
00006 //
00007 
00008 #include "stdafx.h"
00009 #include "3dvis.h"
00010 #include "FileInfoDialog.h"
00011 
00012 #ifdef _DEBUG
00013 #define new DEBUG_NEW
00014 #undef THIS_FILE
00015 static char THIS_FILE[] = __FILE__;
00016 #endif
00017 
00019 // CFileInfoDialog dialog
00020 
00021 
00022 CFileInfoDialog::CFileInfoDialog(CWnd* pParent /*=NULL*/)
00023         : CDialog(CFileInfoDialog::IDD, pParent)
00024 {
00025         //{{AFX_DATA_INIT(CFileInfoDialog)
00026         m_sFilename = _T("");
00027         m_sDimX = _T("");
00028         m_sDimY = _T("");
00029         m_sDimZ = _T("");
00030         //}}AFX_DATA_INIT
00031 }
00032 
00033 
00034 void CFileInfoDialog::SetInfo(string filename, int dimx, int dimy, int dimz) {
00035         m_sFilename = filename.c_str();
00036         char number[20];
00037         _itoa(dimx, number, 10);
00038         m_sDimX = number;
00039         _itoa(dimy, number, 10);
00040         m_sDimY = number;
00041         _itoa(dimz, number, 10);
00042         m_sDimZ = number;
00043 }
00044 
00045 
00046 void CFileInfoDialog::DoDataExchange(CDataExchange* pDX)
00047 {
00048         CDialog::DoDataExchange(pDX);
00049         //{{AFX_DATA_MAP(CFileInfoDialog)
00050         DDX_Text(pDX, IDC_STATIC_INFO_FILENAME, m_sFilename);
00051         DDX_Text(pDX, IDC_STATIC_INFO_DIMX, m_sDimX);
00052         DDX_Text(pDX, IDC_STATIC_INFO_DIMY, m_sDimY);
00053         DDX_Text(pDX, IDC_STATIC_INFO_DIMZ, m_sDimZ);
00054         //}}AFX_DATA_MAP
00055 }
00056 
00057 
00058 BEGIN_MESSAGE_MAP(CFileInfoDialog, CDialog)
00059         //{{AFX_MSG_MAP(CFileInfoDialog)
00060         ON_WM_SHOWWINDOW()
00061         //}}AFX_MSG_MAP
00062 END_MESSAGE_MAP()
00063 
00064 
00065 // CFileInfoDialog message handlers
00066 
00067 void CFileInfoDialog::OnShowWindow(BOOL bShow, UINT nStatus) 
00068 {
00069         CDialog::OnShowWindow(bShow, nStatus);
00070         
00071         // TODO: Add your message handler code here
00072         if (!bShow)
00073                 return;
00074 
00075         UpdateData(FALSE);
00076 }

Generated on Thu Jan 30 21:35:43 2003 for 3DVis by doxygen1.3-rc2