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.
 
 
 
 
 

90 lines
2.1 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: SetupDlg.cpp
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Source file of SetupDlg.cpp
//----------------------------------------------------------------------------
// SetupDlg.cpp : implementation file
//
#include "stdafx.h"
#include "chicago.h"
#include "SetupDlg.h"
#include "..\..\LgLib\Version.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSetupDlg dialog
CSetupDlg::CSetupDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSetupDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CSetupDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
m_SetupName = _T("");
LGLOG( LOG_LEVEL_MEDIUM, LOG_TYPE_INFO, this, _T("CSetupDlg::CSetupDlg") );
}
void CSetupDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSetupDlg)
DDX_Control(pDX, IDC_LIST_SETUP, m_List);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSetupDlg, CDialog)
//{{AFX_MSG_MAP(CSetupDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSetupDlg message handlers
BOOL CSetupDlg::OnInitDialog()
{
CDialog::OnInitDialog();
SetWindowPos( &wndTopMost, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE );
CFileFind finder;
BOOL bWorking = finder.FindFile( _T("*.lgs") );
while( bWorking )
{
bWorking = finder.FindNextFile();
m_List.AddString( finder.GetFileName() );
}
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CSetupDlg::OnOK()
{
int nIndex = m_List.GetCurSel();
if( nIndex == LB_ERR )
{
CDialog::OnCancel();
return;
}
m_List.GetText( nIndex, m_SetupName );
CDialog::OnOK();
}