📄 generalpage.cpp
字号:
//////////////////////////////////////////////////////////////////////
// FileFury
// Copyright (c) 2000 Tenebril Incorporated
// All rights reserved.
//
// This source code is governed by the Tenebril open source
// license (http://www.tenebril.com/developers/opensource/license.html)
//
// For more information on this and other open source applications,
// visit the Tenebril OpenSource page:
// http://www.tenebril.com/developers/opensource
//
//////////////////////////////////////////////////////////////////////
// GeneralPage.cpp : implementation file
//
#include "stdafx.h"
#include "Oscar.h"
#include "GeneralPage.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGeneralPage property page
IMPLEMENT_DYNCREATE(CGeneralPage, CPropertyPage)
CGeneralPage::CGeneralPage() : CPropertyPage(CGeneralPage::IDD)
{
//{{AFX_DATA_INIT(CGeneralPage)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
m_bHasInit = FALSE;
m_pArchive = NULL;
}
CGeneralPage::~CGeneralPage()
{
}
void CGeneralPage::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CGeneralPage)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CGeneralPage, CPropertyPage)
//{{AFX_MSG_MAP(CGeneralPage)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGeneralPage message handlers
BOOL CGeneralPage::OnSetActive()
{
if(!m_bHasInit && m_pArchive)
{
m_bHasInit = TRUE;
// Setup the items.
if(m_pArchive->m_arch1.bShowMainOnStart)
CheckDlgButton(IDC_SHOWONSTART, 1);
else
CheckDlgButton(IDC_SHOWONSTART, 0);
}
return CPropertyPage::OnSetActive();
}
void CGeneralPage::SetArchive(CSettingsArchive * pArchive)
{
m_pArchive = pArchive;
}
void CGeneralPage::SaveSettings()
{
if(m_bHasInit && m_pArchive)
{
m_pArchive->m_arch1.bShowMainOnStart = IsDlgButtonChecked(IDC_SHOWONSTART);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -