资源简介
VC++6.0开发环境
MFC框架制作
包括数字时钟、表盘时钟、秒表程序

代码片段和文件信息
// Clock.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Clock.h“
#include “MainFrm.h“
#include “ClockDoc.h“
#include “ClockView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CClockApp
BEGIN_MESSAGE_MAP(CClockApp CWinApp)
//{{AFX_MSG_MAP(CClockApp)
ON_COMMAND(ID_APP_ABOUT OnAppAbout)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN CWinApp::OnFileOpen)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CClockApp construction
CClockApp::CClockApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CClockApp object
CClockApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CClockApp initialization
BOOL CClockApp::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
// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
// Register the application‘s document templates. Document templates
// serve as the connection between documents frame windows and views.
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CClockDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CClockView));
AddDocTemplate(pDocTemplate);
// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
// The one and only window has been initialized so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return TRUE;
}
/////////
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 44816 2011-08-25 13:24 Clock\Clock.aps
文件 3111 2011-08-29 13:41 Clock\Clock.clw
文件 4191 2011-08-25 09:24 Clock\Clock.cpp
文件 4670 2011-08-25 14:21 Clock\Clock.dsp
文件 533 2011-08-25 14:21 Clock\Clock.dsw
文件 1345 2011-08-25 09:24 Clock\Clock.h
文件 66560 2011-08-29 13:41 Clock\Clock.ncb
文件 427520 2011-08-29 13:41 Clock\Clock.opt
文件 1395 2011-08-29 13:41 Clock\Clock.plg
文件 12876 2011-08-25 13:24 Clock\Clock.rc
文件 1722 2011-08-25 09:24 Clock\ClockDoc.cpp
文件 1464 2011-08-25 09:24 Clock\ClockDoc.h
文件 7674 2011-08-26 14:56 Clock\ClockView.cpp
文件 2493 2011-08-25 10:07 Clock\ClockView.h
文件 3425280 2011-08-29 13:41 Clock\Debug\Clock.bsc
文件 127038 2011-08-29 13:41 Clock\Debug\Clock.exe
文件 440596 2011-08-29 13:41 Clock\Debug\Clock.ilk
文件 22850 2011-08-25 13:18 Clock\Debug\Clock.obj
文件 6942324 2011-08-25 13:18 Clock\Debug\Clock.pch
文件 492544 2011-08-29 13:41 Clock\Debug\Clock.pdb
文件 7804 2011-08-25 13:24 Clock\Debug\Clock.res
文件 0 2011-08-25 13:18 Clock\Debug\Clock.sbr
文件 14626 2011-08-25 13:18 Clock\Debug\ClockDoc.obj
文件 0 2011-08-25 13:18 Clock\Debug\ClockDoc.sbr
文件 40955 2011-08-29 13:41 Clock\Debug\ClockView.obj
文件 0 2011-08-29 13:41 Clock\Debug\ClockView.sbr
文件 19875 2011-08-25 13:18 Clock\Debug\MainFrm.obj
文件 0 2011-08-25 13:18 Clock\Debug\MainFrm.sbr
文件 12147 2011-08-25 13:27 Clock\Debug\SetTimeDlg.obj
文件 0 2011-08-25 13:27 Clock\Debug\SetTimeDlg.sbr
............此处省略23个文件信息
- 上一篇:C++经典教材
- 下一篇:MFC图像直方图均衡化、锐化、中值滤波
相关资源
- 基于mfc的多线程文件传输
- VC++ 多线程文件读写操作
- 移木块游戏,可以自编自玩,vc6.0编写
- MFC数字钟(基于VC6.0)
- VC++MFC小游戏实例教程(实例)+MFC类库
- VC++实现CMD命令执行与获得返回信息
- ChartCtrl控件库(可在VS2019中使用)
- 商品库存管理系统 C++ MFC
- mfc 调用redis
- MFC视频播放器源码(支持avi/wma/mp3等格
- VC++基于OpenGL模拟的一个3维空间模型
- mfc绘图大全(画直线、矩形、椭圆)
- MFC控件重绘
- hook,捕获所有案件,查找所有窗口,
- (学习)VS2010之MFC入门到精通教程
- 基于VC++的SolidWorks二次开发SolidWorks
- MFC文档_视图_框架_模板结构体系深入
- 简单员工管理系统(适合初学MFC)
- 派克变换VC++源码(附文档)
- VC++ 串口
- MFC五子棋游戏
- VC++ 大富翁4_大富翁游戏源码
- MFC UDP编程
- MFC的异步网络通讯应用程序
- VC++ 摄像头视频采集与回放源程序
- C++MFC模块讲解,黑发程序员课程整理
- 转 VC++ 实现电子邮件(Email)发送
- 一个简单而强大的基于MFC的web server源
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- VC++ 服务程序编写及安装与卸载
评论
共有 条评论