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

📄 iconpropertypage.cpp

📁 UHF RFID Reader Program
💻 CPP
字号:
// PageIcon.cpp : implementation file
//
///////////////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "IconPropertyPage.h"

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

namespace techwin
{
	/////////////////////////////////////////////////////////////////////////////
	// CIconPropertyPage property page

	IMPLEMENT_DYNAMIC(CIconPropertyPage, CPropertyPage)
/*
		CIconPropertyPage::CIconPropertyPage(LPCWSTR lpszTitle, UINT nIconID)
		: CPropertyPage(CIconPropertyPage::IDD),
		m_nIconID(nIconID),
		m_hIcon(NULL)
	{
		//{{AFX_DATA_INIT(CIconPropertyPage)
		//}}AFX_DATA_INIT

		// Set the title and icon.
		if( NULL != m_nIconID )
		{
			m_psp.dwFlags |= PSP_USEHICON;
			HICON hIconTab = AfxGetApp()->LoadIcon( m_nIconID );
			m_psp.hIcon = hIconTab;
		}
	}
*/
	CIconPropertyPage::CIconPropertyPage(LPCWSTR lpszTitle, HICON hIcon)
		: CPropertyPage(CIconPropertyPage::IDD)
		, m_hIcon(hIcon)
	{
		//{{AFX_DATA_INIT(CIconPropertyPage)
		//}}AFX_DATA_INIT

		// Set the title and icon.
		if( NULL != hIcon )
		{
			m_psp.dwFlags |= PSP_USEHICON;
//			HICON hIconTab = AfxGetApp()->LoadIcon( m_nIconID );
			m_psp.hIcon = hIcon;
		}
	}

	CIconPropertyPage::~CIconPropertyPage()
	{
	}

	BEGIN_MESSAGE_MAP(CIconPropertyPage, CPropertyPage)
		//{{AFX_MSG_MAP(CIconPropertyPage)
		//}}AFX_MSG_MAP
	END_MESSAGE_MAP()

	/////////////////////////////////////////////////////////////////////////////
	// CIconPropertyPage message handlers
};

⌨️ 快捷键说明

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