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.
69 lines
1.8 KiB
69 lines
1.8 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: SettingsDlg.cpp
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Source file of SettingsDlg.cpp
|
|
//----------------------------------------------------------------------------
|
|
// SettingsDlg.cpp : implementation file
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "setuplgs.h"
|
|
#include "SettingsDlg.h"
|
|
|
|
#ifdef _DEBUG
|
|
#define new DEBUG_NEW
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CSettingsDlg dialog
|
|
|
|
|
|
CSettingsDlg::CSettingsDlg(CWnd* pParent /*=NULL*/)
|
|
: CDialog(CSettingsDlg::IDD, pParent)
|
|
{
|
|
//{{AFX_DATA_INIT(CSettingsDlg)
|
|
m_bTroubleWindowShowFirstImage = FALSE;
|
|
//}}AFX_DATA_INIT
|
|
}
|
|
|
|
|
|
void CSettingsDlg::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
//{{AFX_DATA_MAP(CSettingsDlg)
|
|
DDX_Check(pDX, IDC_CHECK_TROUBLE_WINDOW_SHOW_FIRST_IMAGE, m_bTroubleWindowShowFirstImage);
|
|
//}}AFX_DATA_MAP
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CSettingsDlg, CDialog)
|
|
//{{AFX_MSG_MAP(CSettingsDlg)
|
|
// NOTE: the ClassWizard will add message map macros here
|
|
//}}AFX_MSG_MAP
|
|
END_MESSAGE_MAP()
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CSettingsDlg message handlers
|
|
|
|
int CSettingsDlg::DoModal( CObjectFactory *pObjectFactory )
|
|
{
|
|
m_bTroubleWindowShowFirstImage = pObjectFactory->GetSettings().bTroubleWindowShowFirstImage;
|
|
|
|
if( CDialog::DoModal() == IDOK )
|
|
{
|
|
pObjectFactory->GetSettings().bTroubleWindowShowFirstImage = m_bTroubleWindowShowFirstImage;
|
|
return IDOK;
|
|
}
|
|
|
|
return IDCANCEL;
|
|
}
|