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

📄 calend_cedlg.cpp

📁 在wince上运行的万年历程序
💻 CPP
字号:
// Calend_CEDlg.cpp : implementation file
//

#include "stdafx.h"
#include "Calend_CE.h"
#include "Calend_CEDlg.h"
//#include "YinYang.h"
#include "PropSheet.h"

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

/////////////////////////////////////////////////////////////////////////////
// CCalend_CEDlg dialog

CCalend_CEDlg::CCalend_CEDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CCalend_CEDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CCalend_CEDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}

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

BEGIN_MESSAGE_MAP(CCalend_CEDlg, CDialog)
	//{{AFX_MSG_MAP(CCalend_CEDlg)
// MM not needed in wce dialogs:	ON_WM_PAINT()
// MM not needed in wce dialogs:	ON_WM_QUERYDRAGICON()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCalend_CEDlg message handlers

BOOL CCalend_CEDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// Set the icon for this dialog.  The framework does this automatically
	//  when the application's main window is not a dialog
	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon
	
	CenterWindow(GetDesktopWindow());	// center to the hpc screen

	// TODO: Add extra initialization here

	CPropSheet propSheet(_T("阴阳历换算"),this,0);
	int result=propSheet.DoModal();

	return TRUE;  // return TRUE  unless you set the focus to a control
}

BOOL CCalend_CEDlg::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo) 
{
if(nID!=1)
	return CDialog::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);
else
	return 1;	
	
//	return CDialog::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);
}

⌨️ 快捷键说明

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