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

📄 optionsdebugpage.cpp

📁 一个FTP下载的源代码。代码质量非常高
💻 CPP
字号:
// FileZilla - a Windows ftp client

// Copyright (C) 2002 - Tim Kosse <tim.kosse@gmx.de>

// This program 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.

// This program 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 this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

// OptionsDebugPage.cpp: Implementierungsdatei
//

#include "stdafx.h"
#include "filezilla.h"
#include "OptionsDebugPage.h"

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

/////////////////////////////////////////////////////////////////////////////
// Dialogfeld COptionsDebugPage 


COptionsDebugPage::COptionsDebugPage(CWnd* pParent /*=NULL*/)
	: CSAPrefsSubDlg(COptionsDebugPage::IDD, pParent)
{
	//{{AFX_DATA_INIT(COptionsDebugPage)
	m_bEngineTrace = FALSE;
	m_LogFile = _T("");
	m_bLogToFile = FALSE;
	m_bShowListing = FALSE;
	m_bDebugMenu = FALSE;
	//}}AFX_DATA_INIT
}


void COptionsDebugPage::DoDataExchange(CDataExchange* pDX)
{
	CSAPrefsSubDlg::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(COptionsDebugPage)
	DDX_Check(pDX, IDC_DEBUG_ENGINETRACE, m_bEngineTrace);
	DDX_Text(pDX, IDC_DEBUG_FILENAME, m_LogFile);
	DDX_Check(pDX, IDC_DEBUG_LOGTOFILE, m_bLogToFile);
	DDX_Check(pDX, IDC_DEBUG_SHOWRAWLISTING, m_bShowListing);
	DDX_Check(pDX, IDC_DEBUG_DEBUGMENU, m_bDebugMenu);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(COptionsDebugPage, CSAPrefsSubDlg)
	//{{AFX_MSG_MAP(COptionsDebugPage)
	ON_BN_CLICKED(IDC_DEBUG_LOGTOFILE, OnDebugLogtofile)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Behandlungsroutinen f黵 Nachrichten COptionsDebugPage 

void COptionsDebugPage::OnDebugLogtofile() 
{
	UpdateData(TRUE);
	GetDlgItem(IDC_DEBUG_FILENAME)->EnableWindow(m_bLogToFile);	
}

BOOL COptionsDebugPage::OnInitDialog() 
{
	CSAPrefsSubDlg::OnInitDialog();
	
	GetDlgItem(IDC_DEBUG_FILENAME)->EnableWindow(m_bLogToFile);		
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX-Eigenschaftenseiten sollten FALSE zur點kgeben
}

⌨️ 快捷键说明

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