Old fashion design for PC-104
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright � 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: PropFixedCameraDlg.cpp
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Source file of PropFixedCameraDlg.cpp
//----------------------------------------------------------------------------
// PropFixedCameraDlg.cpp : implementation file
//
#include "stdafx.h"
#include "setuplgs.h"
#include "PropFixedCameraDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;#endif
/////////////////////////////////////////////////////////////////////////////
// CPropFixedCameraDlg dialog
CPropFixedCameraDlg::CPropFixedCameraDlg(CWnd* pParent /*=NULL*/) : CDialog(CPropFixedCameraDlg::IDD, pParent){ //{{AFX_DATA_INIT(CPropFixedCameraDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CPropFixedCameraDlg::DoDataExchange(CDataExchange* pDX){ CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CPropFixedCameraDlg)
DDX_Control(pDX, IDC_EDIT_NAME, m_EditName); //}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPropFixedCameraDlg, CDialog) //{{AFX_MSG_MAP(CPropFixedCameraDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPropFixedCameraDlg message handlers
void CPropFixedCameraDlg::OnOK() { CString name; m_EditName.GetWindowText( name ); m_pDevice->SetName( name );
CDialog::OnOK();}
BOOL CPropFixedCameraDlg::OnInitDialog() { CDialog::OnInitDialog(); m_EditName.SetWindowText( m_pDevice->GetName() ); return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
int CPropFixedCameraDlg::DoModal(COFDevice *pDevice){ ASSERT( pDevice );
m_pDevice = pDevice;
return CDialog::DoModal();}
|