========================================================================
MICROSOFT FOUNDATION CLASS LIBRARY : myclock
========================================================================
AppWizard has created this myclock application for you. This application
not only demonstrates the basics of using the Microsoft Foundation classes
but is also a starting point for writing your application.
This file contains a summary of what you will find in each of the files that
make up your myclock application.
myclock.dsp
This file (the project file) contains information at the project level and
is used to build a single project or subproject. Other users can share the
project (.dsp) file, but they should export the makefiles locally.
myclock.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CMyclockApp application class.
myclock.cpp
This is the main application source file that contains the application
class CMyclockApp.
myclock.rc
This is a listing of all of the Microsoft Windows resources that the
program uses. It includes the icons, bitmaps, and cursors that are stored
in the RES subdirectory. This file can be directly edited in Microsoft
Visual C++.
myclock.clw
This file contains information used by ClassWizard to edit existing
classes or add new classes. ClassWizard also uses this file to store
information needed to create and edit message maps and dialog data
maps and to create prototype member functions.
res\myclock.ico
This is an icon file, which is used as the application's icon. This
icon is included by the main resource file myclock.rc.
res\myclock.rc2
This file contains resources that are not edited by Microsoft
Visual C++. You should place all resources not editable by
the resource editor in this file.
/////////////////////////////////////////////////////////////////////////////
For the main frame window:
MainFrm.h, MainFrm.cpp
These files contain the frame class CMainFrame, which is derived from
CFrameWnd and controls all SDI frame features.
res\Toolbar.bmp
This bitmap file is used to create tiled images for the toolbar.
The initial toolbar and status bar are constructed in the CMainFrame
class. Edit this toolbar bitmap using the resource editor, and
update the IDR_MAINFRAME TOOLBAR array in myclock.rc to add
toolbar buttons.
/////////////////////////////////////////////////////////////////////////////
AppWizard creates one document type and one view:
myclockDoc.h, myclockDoc.cpp - the document
These files contain your CMyclockDoc class. Edit these files to
add your special document data and to implement file saving and loading
(via CMyclockDoc::Serialize).
myclockView.h, myclockView.cpp - the view of the document
These files contain your CMyclockView class.
CMyclockView objects are used to view CMyclockDoc objects.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named myclock.pch and a precompiled types file named StdAfx.obj.
Resource.h
This is the standard header file, which defines new resource IDs.
Microsoft Visual C++ reads and updates this file.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.
If your application uses MFC in a shared DLL, and your application is
in a language other than the operating system's current language, you
will need to copy the corresponding localized resources MFC42XXX.DLL
from the Microsoft Visual C++ CD-ROM onto the system or system32 directory,
and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation.
For example, MFC42DEU.DLL contains resources translated to German.) If you
don't do this, some of the UI elements of your application will remain in the
language of the operating system.
/////////////////////////////////////////////////////////////////////////////
没有合适的资源?快使用搜索试试~ 我知道了~
用MFC编写的简单时钟
共35个文件
h:6个
cpp:5个
obj:5个
3星 · 超过75%的资源 需积分: 33 16 下载量 63 浏览量
2008-12-02
16:41:25
上传
评论 1
收藏 1.87MB RAR 举报
温馨提示
仿Windows的时钟 void CMyclockView::OnTimer(UINT nIDEvent) { InvalidateRect(NULL,true); UpdateWindow(); CView::OnTimer(nIDEvent); } int CMyclockView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CView::OnCreate(lpCreateStruct) == -1) return -1; SetTimer(1,1000,NULL); return 0; }
资源推荐
资源详情
资源评论
收起资源包目录
myclock.rar (35个子文件)
myclock
Resource.h 495B
myclock.dsw 539B
res
Toolbar.bmp 1KB
StdAfx.cpp 209B
myclockDoc.ico 1KB
myclock.ico 1KB
myclock.rc2 399B
myclockView.cpp 4KB
myclockDoc.h 1KB
myclock.h 1KB
myclock.opt 53KB
MainFrm.cpp 2KB
myclock.dsp 4KB
myclockView.h 2KB
MainFrm.h 2KB
StdAfx.h 1KB
myclock.aps 28KB
myclock.cpp 4KB
myclock.plg 1KB
Debug
StdAfx.obj 103KB
myclock.pdb 457KB
myclock.res 7KB
myclock.exe 116KB
vc60.idb 209KB
myclockView.obj 27KB
myclock.obj 22KB
vc60.pdb 356KB
myclock.pch 5.26MB
MainFrm.obj 19KB
myclockDoc.obj 14KB
myclock.ilk 422KB
myclock.clw 2KB
myclockDoc.cpp 2KB
myclock.rc 10KB
ReadMe.txt 4KB
共 35 条
- 1
资源评论
- xidianbill2012-07-30整体来还不错,可是程序貌似有点问题,时间显示有点不对啊~~
- olve2013-01-19程序有问题,我用VS2008总是有错误。
ln252780142
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (源码)基于C++的简易操作系统模拟器.zip
- (源码)基于ROS和PCL的激光与UWB定位仿真系统.zip
- (源码)基于Arduino的iBeacon发送系统.zip
- (源码)基于C语言和汇编语言的简单操作系统内核.zip
- (源码)基于Spring Boot框架的AntOA后台管理系统.zip
- (源码)基于Arduino的红外遥控和灯光控制系统.zip
- (源码)基于STM32的简易音乐键盘系统.zip
- (源码)基于Spring Boot和Vue的管理系统.zip
- (源码)基于Spring Boot框架的报表管理系统.zip
- (源码)基于树莓派和TensorFlow Lite的智能厨具环境监测系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功