📄 calendar.cpp
字号:
// ------------------------------------------------------------------------------------------------------------------------------------------------------
// - -
// - File: calendar.cpp. -
// - -
// - Contents: Implementation of class CCalApp. -
// - -
// - Purpose: - -
// - -
// - Remarks: - -
// - -
// - Originator: Michael Mogensen, MM-IT Consult 2003. -
// - -
// - Compiler: MS Visual C++ ver6.0. -
// - -
// - Period: 29.04.03 - 00.00.00. -
// - -
// - Version: 1.00. -
// - -
// ------------------------------------------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------------------------------------------------------------------
// - Miscellaneous. -
// ------------------------------------------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------------------------------------------------------------------
// - Header(s). -
// ------------------------------------------------------------------------------------------------------------------------------------------------------
#pragma once
#include "stdafx.h"
#include "calendar.h" // Self.
#include "calendar_framewnd.h"
// ------------------------------------------------------------------------------------------------------------------------------------------------------
// - Miscellaneous. -
// ------------------------------------------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------------------------------------------------------------------
// - CCalApp. -
// ------------------------------------------------------------------------------------------------------------------------------------------------------
BEGIN_MESSAGE_MAP(CCalApp, CWinAppEx)
END_MESSAGE_MAP()
// 1. Object. (alphabetical).
CCalApp::CCalApp() :
CWinAppEx()
// Create.
{
}
CCalApp::~CCalApp()
// Kill.
{
}
// 2. Event's. (alphabetical).
BOOL CCalApp::InitInstance()
{
AfxEnableControlContainer();
#ifdef _AFXDLL
// Call this when using MFC in a shared DLL.
Enable3dControls();
#else
// Call this when linking to MFC statically.
Enable3dControlsStatic();
#endif
// Main window of the application.
try
{
AfxInitRichEdit();
m_pMainWnd = new CCalFrameWnd();
m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();
}
catch(...)
{
TRACE(_T("Bad BOOL CCalApp::InitInstance()\n"));
#if defined(NDEBUG)
::MessageBox((HWND)NULL, _T("Sorry to tell you but I've just crashed here: BOOL CCalApp::InitInstance()"), _T("Ooops..."), MB_ICONSTOP);
#endif
}
return TRUE;
}
// ------------------------------------------------------------------------------------------------------------------------------------------------------
// - Main intrance. -
// ------------------------------------------------------------------------------------------------------------------------------------------------------
CCalApp App;
// ------------------------------------------------------------------------------------------------------------------------------------------------------
// - -
// ------------------------------------------------------------------------------------------------------------------------------------------------------
// 0. Data. (alphabetical).
// 1. Object. (alphabetical).
// 2. Event's. (alphabetical).
// 3.0. Menu choice. (menu order).
// 3.1. Menu choice, enablers. (menu order).
// 4. Slaves. (alphabetical).
// 5. Other. (alphabetical).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -