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

📄 page3.cpp

📁 用Emebedded Visual C++编写的“阴历阳历换算器”程序。
💻 CPP
字号:
// Page3.cpp : implementation file
//

#include "stdafx.h"
#include "Calend_CE.h"
#include "Page3.h"
#include "Pubdata2.h"

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

/////////////////////////////////////////////////////////////////////////////
// CPage3 property page

IMPLEMENT_DYNCREATE(CPage3, CPropertyPage)

CPage3::CPage3() : CPropertyPage(CPage3::IDD)
{
	//{{AFX_DATA_INIT(CPage3)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}

CPage3::~CPage3()
{
}

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


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

/////////////////////////////////////////////////////////////////////////////
// CPage3 message handlers

BOOL CPage3::OnInitDialog() 
{
	CPropertyPage::OnInitDialog();
GetDlgItem(IDC_STATIC2)->SetWindowText(_T("中外公历节假日:"));	
CListBox* pList2=(CListBox*)GetDlgItem(IDC_LIST2);
pList2->ResetContent();
CString s;
TCHAR tc[200];
for(int i=0;i<YangFestivalCount2;i++)
	{
	//pList2->AddString(YangFestivalName2[i]);
	wsprintf(tc,_T("%2d"),YangFestivalMonth2[i]);
	s=tc;
	s+=_T("月");
	wsprintf(tc,_T("%2d"),YangFestivalDay2[i]);
	s+=tc;
	s+=_T("日: ");
	s+=YangFestivalName2[i];
    pList2->AddString(s);
	}
pList2->AddString(_T(""));
pList2->AddString(_T("--- 以下是日期不固定的节日 ---") );
pList2->AddString(_T(""));
pList2->AddString(_T("复活节: 3月21日月圆后(当天非月圆时,延后至月圆后)的第一个星期日.") );
pList2->AddString(_T("母亲节: 5月的第二个星期日") );
pList2->AddString(_T("父亲节: 6月的第三个星期日") );
pList2->AddString(_T("感恩节: 11月的第四个星期四(美国)"));
pList2->SetHorizontalExtent(400);		
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

          

⌨️ 快捷键说明

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