⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 selectinterfacedialog.cpp

📁 VPN拨号程序源码(from sourceforge.net)
💻 CPP
字号:
// SelectInterfaceDialog.cpp : implementation file
//

/*******************************************************************************
 *                                                                             *
 *  This file is part of VPNDialer.                                            *
 *                                                                             *
 *  VPNDialer is free software; you can redistribute it and/or modify          *
 *  it under the terms of the GNU General Public License as published by       *
 *  the Free Software Foundation; either version 2 of the License, or          *
 *  (at your option) any later version.                                        *
 *                                                                             *
 *  VPNDialer is distributed in the hope that it will be useful,               *
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of             *
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
 *  GNU General Public License for more details.                               *
 *                                                                             *
 *  You should have received a copy of the GNU General Public License          *
 *  along with VPNDialer; if not, write to the Free Software                   *
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  *
 *                                                                             *
 *  Copyright (c) 2003 Evidian GmbH, written by Thomas Kriener                 *
 *                                                                             *
 *******************************************************************************/

#include "stdafx.h"
#include "VPNDialer.h"
#include "SelectInterfaceDialog.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSelectInterfaceDialog dialog


CSelectInterfaceDialog::CSelectInterfaceDialog(CWnd* pParent /*=NULL*/)
	: CDialog(CSelectInterfaceDialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSelectInterfaceDialog)
	//}}AFX_DATA_INIT
}


void CSelectInterfaceDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSelectInterfaceDialog)
	DDX_Control(pDX, IDC_COMBO_INTERFACE, m_interfacesCtrl);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSelectInterfaceDialog, CDialog)
	//{{AFX_MSG_MAP(CSelectInterfaceDialog)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSelectInterfaceDialog message handlers

BOOL CSelectInterfaceDialog::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	for(int i=0;i<m_interfaces->GetSize();i++)
	{
		m_interfacesCtrl.AddString(m_interfaces->GetAt(i));
	}

	m_interfacesCtrl.SetCurSel(0);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CSelectInterfaceDialog::OnOK() 
{
	m_selectedInterface=m_interfacesCtrl.GetCurSel();
	CDialog::OnOK();
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -