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

📄 resorgoptionsgeneralpage.cpp

📁 一个vc中管理资源文件ID的插件
💻 CPP
字号:
/************************************************************************
 *
 *                 Resource ID Organiser Utility Library
 *
 *       (c) Copyright 2000 by Andy Metcalfe (andy.metcalfe@lineone.net)
 *                         All rights reserved.
 *
 ************************************************************************
 *                                                                       
 *  Filename    : ResOrgOptionsGeneralPage.cpp
 *
 *  Description : CResOrgOptionsGeneralPage - Property page class for
 *                general program options
 *
 *  Compiler    : Microsoft Visual C++ 6.0, Service Pack 3 or 4
 *                                                                       
 *  Target                                                               
 *  Environment : Windows 98/NT
 *
 *  NOTE:
 *
 *    This software is provided "as is" free for personal use. All
 *    title and copyrights in and to the software, including but not
 *    limited to any images, text, etc. incorporated into it, are
 *    owned by Andy Metcalfe, except where acknowledged otherwise.
 *
 *    Your may freely to use this code in your own products, PROVIDED
 *    this notice is not removed or modified.
 *
 *
 *    Visit http://www.resorg.co.uk for latest updates
 *
 ************************************************************************
 *
 *   MODIFICATION HISTORY:
 *
 *           This is a controlled document. See project configuration
 *           control tool for latest version and full version history.
 *
 *    $Archive: /Projects/AddIns/ResOrg/ResOrgUtils/ResOrgOptionsGeneralPage.cpp $
 *   $Revision: 3 $
 *       $Date: 16/05/01 20:54 $
 *     $Author: Andy $
 *
 *    $History: ResOrgOptionsGeneralPage.cpp $
 * 
 * *****************  Version 3  *****************
 * User: Andy         Date: 16/05/01   Time: 20:54
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Renamed class for consistancy
 * 
 * *****************  Version 2  *****************
 * User: Andy         Date: 29/11/00   Time: 18:37
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 *  Added file banners
 *
 * $Nokeywords: $
 *
 ************************************************************************/

// ResOrgOptionsGeneralPage.cpp : implementation file
//

#include "StdAfx.h"
#include "ResOrgUtils_Priv.h"

#include "ResOrgOptionsGeneralPage.h"


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

/////////////////////////////////////////////////////////////////////////////
// CResOrgOptionsGeneralPage property page

IMPLEMENT_DYNCREATE(CResOrgOptionsGeneralPage, CResOrgOptionsGeneralPage_BASE)

CResOrgOptionsGeneralPage::CResOrgOptionsGeneralPage(void) : CResOrgOptionsGeneralPage_BASE(CResOrgOptionsGeneralPage::IDD)
{
	//{{AFX_DATA_INIT(CResOrgOptionsGeneralPage)
	m_bWarnOnSymbolChanges	= FALSE;
	m_bCleanProjects		= FALSE;
	m_eCleanProjectOptions	= 1;
	//}}AFX_DATA_INIT
}


CResOrgOptionsGeneralPage::~CResOrgOptionsGeneralPage(void)
{
}


void CResOrgOptionsGeneralPage::DoDataExchange(CDataExchange* pDX)
{
	CResOrgOptionsGeneralPage_BASE::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CResOrgOptionsGeneralPage)
	DDX_Check(pDX, IDC_SYM_WARN_NAME,				m_bWarnOnSymbolChanges);
	DDX_Check(pDX, IDC_PRJ_CLEAN,					m_bCleanProjects);
	DDX_Radio(pDX, IDC_PRJ_CLEAN_OPTION_AUTO,		m_eCleanProjectOptions);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CResOrgOptionsGeneralPage, CResOrgOptionsGeneralPage_BASE)
	//{{AFX_MSG_MAP(CResOrgOptionsGeneralPage)
	ON_COMMAND(		IDC_PRJ_CLEAN,					OnCmdCleanProjects)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CResOrgOptionsGeneralPage overrides

BOOL CResOrgOptionsGeneralPage::OnInitDialog(void)
{
	CResOrgOptionsGeneralPage_BASE::OnInitDialog();

	SetAvailableControls();

	return TRUE;
}


/////////////////////////////////////////////////////////////////////////////
// CResOrgOptionsGeneralPage implementation

void CResOrgOptionsGeneralPage::SetAvailableControls(void)
{
	EnableDlgControl(IDC_PRJ_CLEAN_OPTION_AUTO,		m_bCleanProjects);
	EnableDlgControl(IDC_PRJ_CLEAN_OPTION_PROMPT,	m_bCleanProjects);
}


/////////////////////////////////////////////////////////////////////////////
// CResOrgOptionsGeneralPage message handlers

void CResOrgOptionsGeneralPage::OnCmdCleanProjects(void) 
{
	SetAvailableControls();
}


⌨️ 快捷键说明

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