资源简介
用MFC开发的万年历,里面有源代码是学习的很好资料
代码片段和文件信息
// calendar1.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “calendar1.h“
#include “calendar1Dlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCalendar1App
BEGIN_MESSAGE_MAP(CCalendar1App CWinApp)
//{{AFX_MSG_MAP(CCalendar1App)
//}}AFX_MSG_MAP
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCalendar1App construction
CCalendar1App::CCalendar1App()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CCalendar1App object
CCalendar1App theApp;
/////////////////////////////////////////////////////////////////////////////
// CCalendar1App initialization
BOOL CCalendar1App::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
CCalendar1Dlg dlg;
m_pMainWnd = &dlg;
this->SetDialogBkColor(RGB(0150100)RGB(500150));
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed return FALSE so that we exit the
// application rather than start the application‘s message pump.
return FALSE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2005-07-07 07:41 calendar1
文件 58368 2005-07-09 09:34 calendar1\calendar1.ncb
文件 36864 2005-07-09 09:34 calendar1\calendar1.exe
文件 3011 2005-07-09 09:31 calendar1\calendar1.dsp
文件 543 2005-07-05 10:58 calendar1\calendar1.dsw
文件 1650 2005-07-09 09:34 calendar1\calendar1.clw
文件 683 2005-07-09 09:34 calendar1\calendar1.plg
文件 36496 2005-07-09 09:27 calendar1\calendar1.aps
文件 6604 2005-07-09 09:27 calendar1\calendar1.rc
文件 3350 2005-07-09 09:29 calendar1\calendar1Dlg.h
文件 1052 2005-07-09 09:25 calendar1\resource.h
文件 3633 2005-07-05 10:58 calendar1\ReadMe.txt
文件 211 2005-07-05 10:58 calendar1\StdAfx.cpp
文件 1054 2005-07-05 10:58 calendar1\StdAfx.h
目录 0 2005-07-07 07:41 calendar1\res
文件 400 2000-03-22 16:05 calendar1\res\calendar1.rc2
文件 1078 2005-07-23 16:47 calendar1\res\calendar1.ico
文件 2030 2005-07-09 09:26 calendar1\calendar1.cpp
文件 53760 2005-07-09 09:34 calendar1\calendar1.opt
文件 1215 2005-07-09 09:26 calendar1\calendar1.h
文件 32127 2005-07-09 09:29 calendar1\calendar1Dlg.cpp
-rw-r--r-- 227 2011-08-12 15:27 readme_verysource.com.txt
----------- --------- ---------- ----- ----
244356 22
- 上一篇:隐含马尔科夫链的C语言实现
- 下一篇:链表的归并 数据结构 C语言实现
评论
共有 条评论