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

📄 renumwizintropage.cpp

📁 ResOrg 图形化管理Vc项目的资源ID的工具的源代码。 ResOrg - Manage and Renumber Resource Symbol IDs Introduction The
💻 CPP
字号:
/************************************************************************
 *
 *                 Resource ID Organiser Core Library
 *
 * (c) Copyright 2000-2003 by Anna-Jayne Metcalfe (resorg@annasplace.me.uk)
 *                         All rights reserved.
 *
 ************************************************************************
 *                                                                       
 *  Filename    : RenumWizIntroPage.cpp
 *
 *  Description : CRenumWizIntroPage - Symbol Renumbering Wizard
 *                "Introductory" page class
 *                
 *
 *  Compiler    : Microsoft Visual C++ 6.0, Service Pack 3 or later
 *                Microsoft Visual C++ .NET 2002
 *                                                                       
 *  Target                                                               
 *  Environment : Windows 98/NT/2000/XP
 *
 *  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 Anna-Jayne 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.annasplace.me.uk/resorg 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/ResOrgCore/RenumWizIntroPage.cpp $
 *   $Revision: 7 $
 *       $Date: 15/04/03 20:38 $
 *     $Author: Anna $
 *
 *    $History: RenumWizIntroPage.cpp $
 * 
 * *****************  Version 7  *****************
 * User: Anna         Date: 15/04/03   Time: 20:38
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * 1.  Removed unnecessary file guards (#pragma once works well enough)
 * 2.  Updated file banners
 * 
 * *****************  Version 6  *****************
 * User: Anna         Date: 25/11/02   Time: 15:10
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Changed website address in banner
 * 
 * *****************  Version 5  *****************
 * User: Anna         Date: 22/10/02   Time: 13:24
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Changed name/mail address (at last!)
 * 
 * *****************  Version 4  *****************
 * User: Andy         Date: 7/06/02    Time: 17:04
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Renamed the ResOrgUtils module to ResOrgCore. Updated file banners
 * accordingly
 * 
 * *****************  Version 3  *****************
 * User: Andy         Date: 4/05/01    Time: 22:37
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Implemented resizing
 * 
 * *****************  Version 2  *****************
 * User: Andy         Date: 29/11/00   Time: 18:37
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 *  Added file banners
 *
 * $Nokeywords: $
 *
 ************************************************************************/

// RenumWizIntroPage.cpp : implementation file
//

#include "StdAfx.h"
#include "ResOrgCore_Priv.h"

#include "RenumWizIntroPage.h"


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

/////////////////////////////////////////////////////////////////////////////
// CRenumWizIntroPage property page

IMPLEMENT_DYNCREATE(CRenumWizIntroPage, CRenumWizIntroPage_BASE)

CRenumWizIntroPage::CRenumWizIntroPage(void) : CRenumWizIntroPage_BASE(	CRenumWizIntroPage::IDD,
																		IDS_RENUMWIZ)
{
	//{{AFX_DATA_INIT(CRenumWizIntroPage)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	// Don't show the header bitmap on the first page
	m_psp.dwFlags |= PSP_HIDEHEADER;
}


CRenumWizIntroPage::~CRenumWizIntroPage(void)
{
}

void CRenumWizIntroPage::DoDataExchange(CDataExchange* pDX)
{
	CRenumWizIntroPage_BASE::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CRenumWizIntroPage)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CRenumWizIntroPage, CRenumWizIntroPage_BASE)
	//{{AFX_MSG_MAP(CRenumWizIntroPage)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// CRenumWizIntroPage overrides

BOOL CRenumWizIntroPage::OnInitDialog(void) 
{
	CRenumWizIntroPage_BASE::OnInitDialog();
	
	if (IsResizeable())
	{
		m_Resizer.Add( IDC_RENUMWIZ_INTRO,			50, 50, 0, 0);
		m_Resizer.Add( IDC_RENUMWIZ_INTRO_WAFFLE,	50, 50, 0, 0);
	}
	// Set the font for the introductory text
	// The Wizard97 Specification specifies a 12 point
	// bold Verdana font, hence the following code
	//
	// TO DO: get the font name and size from the string table
	//
	// Refer to the article "Creating Wizards" in the User Interface Services
	// section of the Win32 SDK documentation for further information
	CWnd* pWnd = GetDlgItem(IDC_RENUMWIZ_INTRO);
	if (NULL != pWnd)
	{
		HDC hDC = ::GetDC(NULL);
		int nFontSize = 12;
		LONG nHeight = 0 - ::GetDeviceCaps(hDC, LOGPIXELSY) * nFontSize / 72;
		::ReleaseDC(NULL, hDC);

		m_fontTitle.SetFaceName( _T("Verdana Bold") );
		m_fontTitle.SetBold(TRUE);
		m_fontTitle.SetHeight(nHeight);

		pWnd->SetFont(&m_fontTitle);
	}
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}


//	Override to disable the "Next" button, and enable the "Finish"
//	button (this is the last page)
//
//	Also sets the displayed text
BOOL CRenumWizIntroPage::OnSetActive(void)
{
	if (!IsInitialising())
	{
		EnableWizardButtons(PSWIZB_BACK, FALSE);
		EnableWizardButtons(PSWIZB_NEXT, TRUE);
	}
	return CRenumWizIntroPage_BASE::OnSetActive();
}


LRESULT CRenumWizIntroPage::OnWizardNext(void) 
{
	// Re-enable the "Back" button before moving to the next page
	EnableWizardButtons(PSWIZB_BACK, TRUE);

	return IDD_RENUMWIZ_WAFFLE_PAGE;
}

/////////////////////////////////////////////////////////////////////////////
// CRenumWizIntroPage message handlers

⌨️ 快捷键说明

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