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

📄 renumwizwafflepage.cpp

📁 一个vc中管理资源文件ID的插件
💻 CPP
字号:
/************************************************************************
 *
 *                 Resource ID Organiser Utility Library
 *
 *       (c) Copyright 2000-2001 by Andy Metcalfe (andy.metcalfe@lineone.net)
 *                         All rights reserved.
 *
 ************************************************************************
 *                                                                       
 *  Filename    : RenumWizWafflePage.cpp
 *
 *  Description : CRenumWizWafflePage - Symbol Renumbering Wizard
 *                "Waffle" page class
 *                
 *  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/RenumWizWafflePage.cpp $
 *   $Revision: 6 $
 *       $Date: 4/05/01 22:37 $
 *     $Author: Andy $
 *
 *    $History: RenumWizWafflePage.cpp $
 * 
 * *****************  Version 6  *****************
 * User: Andy         Date: 4/05/01    Time: 22:37
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Implemented resizing
 * 
 * *****************  Version 5  *****************
 * User: Andy         Date: 23/04/01   Time: 21:18
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Added a subtitle and icon
 * 
 * *****************  Version 4  *****************
 * User: Andy         Date: 21/04/01   Time: 7:24
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Integrated "Options" and "Symbol Selection" pages
 * 
 * *****************  Version 3  *****************
 * User: Andy         Date: 2/04/01    Time: 17:03
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Removed LoadRtfString() helper function (relocated to NGLibrary)
 * 
 * *****************  Version 2  *****************
 * User: Andy         Date: 29/11/00   Time: 18:38
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 *  Added file banners
 *
 * $Nokeywords: $
 *
 ************************************************************************/

// RenumWizWafflePage.cpp : implementation file
//

#include "StdAfx.h"
#include "ResOrgUtils_Res.h"

#include "RenumWizWafflePage.h"


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


/////////////////////////////////////////////////////////////////////////////
// CRenumWizWafflePage class

IMPLEMENT_DYNCREATE(CRenumWizWafflePage, CRenumWizWafflePage_BASE)

CRenumWizWafflePage::CRenumWizWafflePage(void)
 : CRenumWizWafflePage_BASE(CRenumWizWafflePage::IDD,
							IDS_RENUMWIZ,
							IDS_RENUMWIZ_WAFFLE_PAGE_TITLE,
							IDS_RENUMWIZ_WAFFLE_PAGE_SUBTITLE)
{
	//{{AFX_DATA_INIT(CRenumWizWafflePage)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT

	AfxInitRichEdit();		// Just in case nobody else has...
}


CRenumWizWafflePage::~CRenumWizWafflePage(void)
{
}

void CRenumWizWafflePage::DoDataExchange(CDataExchange* pDX)
{
	CRenumWizWafflePage_BASE::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CRenumWizWafflePage)
	DDX_Control(pDX,		IDC_RENUMWIZ_ICON,			m_ctrlIcon);
	DDX_Control(pDX,		IDC_RENUMWIZ_WAFFLE,		m_ctrlWaffle);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CRenumWizWafflePage, CRenumWizWafflePage_BASE)
	//{{AFX_MSG_MAP(CRenumWizWafflePage)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()



/////////////////////////////////////////////////////////////////////////////
// CRenumWizWafflePage overrides

BOOL CRenumWizWafflePage::OnInitDialog(void)
{
	CRenumWizWafflePage_BASE::OnInitDialog();

	if (IsResizeable())
	{
		m_Resizer.Add( IDC_RENUMWIZ_WAFFLE,			0, 0, 100, 100);
	}

	// Load the icon
	HICON hIcon = AfxGetApp()->LoadStandardIcon(IDI_INFORMATION);
	ASSERT(NULL != hIcon);

	m_ctrlIcon.SetIcon(hIcon);

	// Set the background colour of the rich edit control to the
	// same as the dialog, so nobody realises what it really is....
	m_ctrlWaffle.SetBackgroundColor(FALSE, ::GetSysColor(COLOR_3DFACE) );
	m_ctrlWaffle.SetFont( GetFont() );

	// Set the text
	CString sWaffle = ::LoadRtfString(IDR_RENUMWIZ_WAFFLE);
	m_ctrlWaffle.SetRTF(sWaffle);

	// Hide the current selection
	// Note that for this to work the control must NOT
	// have the "Tab Stop" property set in the resource
	// editor...this took me AGES to figure out...
	m_ctrlWaffle.HideSelection(TRUE, TRUE);

	return TRUE;
}


LRESULT CRenumWizWafflePage::OnWizardBack(void) 
{
	return IDD_RENUMWIZ_INTRO_PAGE;
}


LRESULT CRenumWizWafflePage::OnWizardNext(void) 
{
	return IDD_RENUMWIZ_OPTIONS_PAGE;
}



/////////////////////////////////////////////////////////////////////////////
// CRenumWizWafflePage message handlers



/////////////////////////////////////////////////////////////////////////////
// CRenumWizWafflePage implementation

⌨️ 快捷键说明

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