资源简介
VC6.0环境下写的MFC程序。实现的功能是模拟表盘时钟,可以控制时钟开始结束等等,还有一个对话框可以显示年、月、日、时、分、秒。对于VC学习来说是不错的学习程序。
代码片段和文件信息
// 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;
}
///////// 属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2763 2014-02-13 14:19 Clock\Clock.clw
文件 4287 2014-02-12 17:40 Clock\ReadMe.txt
文件 1345 2014-02-12 17:40 Clock\Clock.h
文件 4191 2014-02-12 17:40 Clock\Clock.cpp
文件 1054 2014-02-12 17:40 Clock\StdAfx.h
文件 207 2014-02-12 17:40 Clock\StdAfx.cpp
文件 1581 2014-02-12 17:40 Clock\MainFrm.h
文件 2506 2014-02-12 17:40 Clock\MainFrm.cpp
文件 1464 2014-02-12 17:40 Clock\ClockDoc.h
文件 1722 2014-02-12 17:40 Clock\ClockDoc.cpp
文件 397 2014-02-12 17:40 Clock\res\Clock.rc2
文件 1078 2014-02-12 17:40 Clock\res\ClockDoc.ico
文件 1078 2014-02-12 17:40 Clock\res\Clock.ico
文件 1078 2014-02-12 17:40 Clock\res\Toolbar.bmp
文件 58368 2014-02-13 14:20 Clock\Clock.ncb
文件 7328 2014-02-12 20:53 Clock\Debug\Clock.res
文件 222208 2014-02-13 14:14 Clock\Debug\vc60.idb
文件 5494828 2014-02-12 20:54 Clock\Debug\Clock.pch
文件 364544 2014-02-13 14:14 Clock\Debug\vc60.pdb
文件 105660 2014-02-12 20:54 Clock\Debug\StdAfx.obj
文件 14682 2014-02-12 20:54 Clock\Debug\ClockDoc.obj
文件 19929 2014-02-12 20:54 Clock\Debug\MainFrm.obj
文件 22906 2014-02-12 20:57 Clock\Debug\Clock.obj
文件 351628 2014-02-13 14:14 Clock\Debug\Clock.ilk
文件 131124 2014-02-13 14:14 Clock\Debug\Clock.exe
文件 451584 2014-02-13 14:14 Clock\Debug\Clock.pdb
文件 10963 2014-02-12 21:09 Clock\Debug\SetTimeDlg.obj
文件 45700 2014-02-13 14:14 Clock\Debug\ClockView.obj
文件 1298 2014-02-12 17:57 Clock\SetTimeDlg.h
文件 1054 2014-02-12 20:53 Clock\Resource.h
............此处省略15个文件信息
- 上一篇:MFC画图小程序
- 下一篇:利用MFC绘制B样条曲线
相关资源
- 基于MFC的TCP调试助手源码95706
- 基于mfc的多线程文件传输
- VC++ 多线程文件读写操作
- 移木块游戏,可以自编自玩,vc6.0编写
- MFC数字钟(基于VC6.0)
- 安科瑞智能电能表MODBUS通讯程序 VC6
- VC++MFC小游戏实例教程(实例)+MFC类库
- VC6LineNumberAddin.dll
- 用VC6.0实现多边形扫描线填充算法
- VC++实现CMD命令执行与获得返回信息
- VC助手 VC6.0助手
- ChartCtrl控件库(可在VS2019中使用)
- 商品库存管理系统 C++ MFC
- mfc 调用redis
- MFC视频播放器源码(支持avi/wma/mp3等格
- VC++基于OpenGL模拟的一个3维空间模型
- mfc绘图大全(画直线、矩形、椭圆)
- MFC控件重绘
- hook,捕获所有案件,查找所有窗口,
- (学习)VS2010之MFC入门到精通教程
- 基于VC++的SolidWorks二次开发SolidWorks
- VC6 USB开发源码
- MFC文档_视图_框架_模板结构体系深入
- 简单员工管理系统(适合初学MFC)
- VC操作SQLSERVER数据库
- aes加解密(vc源程序)
- vc_串口通讯
- 吕鑫vc6c++数据结构视频源码
- 派克变换VC++源码(附文档)
- 基于opencv漫水填充算法综合
川公网安备 51152502000135号
评论
共有 条评论