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

Generated on Thu Jan 23 12:32:15 2003 by doxygen1.3-rc2