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

IniFile.cpp

Go to the documentation of this file.
00001 // IniFile.cpp : implementation file
00002 //
00003 
00004 #include "stdafx.h"
00005 #include "3dvis.h"
00006 #include "IniFile.h"
00007 
00008 #ifdef _DEBUG
00009 #define new DEBUG_NEW
00010 #undef THIS_FILE
00011 static char THIS_FILE[] = __FILE__;
00012 #endif
00013 
00015 // IniFile dialog
00016 
00017 
00018 IniFile::IniFile(CWnd* pParent /*=NULL*/)
00019         : CDialog(IniFile::IDD, pParent)
00020 {
00021         //{{AFX_DATA_INIT(IniFile)
00022         m_dFileThres = 0;
00023         m_dPackSize = 0;
00024         //}}AFX_DATA_INIT
00025 }
00026 
00027 
00028 void IniFile::DoDataExchange(CDataExchange* pDX)
00029 {
00030         CDialog::DoDataExchange(pDX);
00031         //{{AFX_DATA_MAP(IniFile)
00032         DDX_Text(pDX, IDC_EDIT_INI_FILETHRES, m_dFileThres);
00033         DDV_MinMaxInt(pDX, m_dFileThres, 0, 1000);
00034         DDX_Text(pDX, IDC_EDIT_INI_PACKETSIZE, m_dPackSize);
00035         DDV_MinMaxInt(pDX, m_dPackSize, 0, 1000);
00036         //}}AFX_DATA_MAP
00037 }
00038 
00039 
00040 BEGIN_MESSAGE_MAP(IniFile, CDialog)
00041         //{{AFX_MSG_MAP(IniFile)
00042         ON_EN_CHANGE(IDC_EDIT_INI_FILETHRES, OnChangeEditIniFilethres)
00043         ON_EN_CHANGE(IDC_EDIT_INI_PACKETSIZE, OnChangeEditIniPacketsize)
00044         ON_WM_SHOWWINDOW()
00045         //}}AFX_MSG_MAP
00046 END_MESSAGE_MAP()
00047 
00048 
00049 // IniFile message handlers
00050 
00051 void IniFile::OnChangeEditIniFilethres() 
00052 {
00053         // TODO: If this is a RICHEDIT control, the control will not
00054         // send this notification unless you override the CDialog::OnInitDialog()
00055         // function and call CRichEditCtrl().SetEventMask()
00056         // with the ENM_CHANGE flag ORed into the mask.
00057         
00058         // TODO: Add your control notification handler code here
00059         UpdateData(TRUE);
00060 }
00061 
00062 void IniFile::OnChangeEditIniPacketsize() 
00063 {
00064         // TODO: If this is a RICHEDIT control, the control will not
00065         // send this notification unless you override the CDialog::OnInitDialog()
00066         // function and call CRichEditCtrl().SetEventMask()
00067         // with the ENM_CHANGE flag ORed into the mask.
00068         
00069         // TODO: Add your control notification handler code here
00070         UpdateData(TRUE);
00071 }
00072 
00073 void IniFile::OnShowWindow(BOOL bShow, UINT nStatus) 
00074 {
00075         CDialog::OnShowWindow(bShow, nStatus);
00076         
00077         // TODO: Add your message handler code here
00078         UpdateData(FALSE);
00079 }

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