用vc++6.0mfc做的钟表,功能齐全,代码清楚,很适合初学者。值得参考!祝你们成功!
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 35088 2013-05-23 13:46 clockclock.aps
文件 872 2013-05-23 23:52 clockclock.clw
文件 2049 2013-05-21 02:26 clockclock.cpp
文件 4141 2013-05-21 02:26 clockclock.dsp
文件 518 2013-05-21 17:22 clockclock.dsw
文件 1313 2013-05-21 02:26 clockclock.h
文件 48640 2013-05-23 23:52 clockclock.opt
文件 3446 2013-05-23 14:46 clockclock.plg
文件 4898 2013-05-23 13:46 clockclock.rc
文件 6500 2013-05-23 14:46 clockclockDlg.cpp
文件 1383 2013-05-21 02:29 clockclockDlg.h
文件 110644 2013-05-23 14:46 clockDebugclock.exe
文件 280864 2013-05-23 14:46 clockDebugclock.ilk
文件 12788 2013-05-21 02:29 clockDebugclock.obj
文件 5504752 2013-05-21 02:28 clockDebugclock.pch
文件 394240 2013-05-23 14:46 clockDebugclock.pdb
文件 2252 2013-05-23 13:46 clockDebugclock.res
文件 34426 2013-05-23 14:46 clockDebugclockDlg.obj
文件 105478 2013-05-21 02:28 clockDebugStdAfx.obj
文件 214016 2013-05-23 23:19 clockDebugvc60.idb
文件 364544 2013-05-23 14:46 clockDebugvc60.pdb
文件 3561 2013-05-21 02:26 clockReadMe.txt
文件 1078 2013-05-21 02:26 clock
esclock.ico
文件 397 2013-05-21 02:26 clock
esclock.rc2
文件 532 2013-05-21 02:26 clockResource.h
文件 207 2013-05-21 02:26 clockStdAfx.cpp
文件 1054 2013-05-21 02:26 clockStdAfx.h
目录 0 2013-05-23 14:46 clockDebug
目录 0 2013-05-23 11:03 clock
es
目录 0 2013-05-23 23:52 clock
............此处省略4个文件信息
// clock.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “clock.h“
#include “clockDlg.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)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
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
CClockDlg dlg;
m_pMainWnd = &dlg;
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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 35088 2013-05-23 13:46 clockclock.aps
文件 872 2013-05-23 23:52 clockclock.clw
文件 2049 2013-05-21 02:26 clockclock.cpp
文件 4141 2013-05-21 02:26 clockclock.dsp
文件 518 2013-05-21 17:22 clockclock.dsw
文件 1313 2013-05-21 02:26 clockclock.h
文件 48640 2013-05-23 23:52 clockclock.opt
文件 3446 2013-05-23 14:46 clockclock.plg
文件 4898 2013-05-23 13:46 clockclock.rc
文件 6500 2013-05-23 14:46 clockclockDlg.cpp
文件 1383 2013-05-21 02:29 clockclockDlg.h
文件 110644 2013-05-23 14:46 clockDebugclock.exe
文件 280864 2013-05-23 14:46 clockDebugclock.ilk
文件 12788 2013-05-21 02:29 clockDebugclock.obj
文件 5504752 2013-05-21 02:28 clockDebugclock.pch
文件 394240 2013-05-23 14:46 clockDebugclock.pdb
文件 2252 2013-05-23 13:46 clockDebugclock.res
文件 34426 2013-05-23 14:46 clockDebugclockDlg.obj
文件 105478 2013-05-21 02:28 clockDebugStdAfx.obj
文件 214016 2013-05-23 23:19 clockDebugvc60.idb
文件 364544 2013-05-23 14:46 clockDebugvc60.pdb
文件 3561 2013-05-21 02:26 clockReadMe.txt
文件 1078 2013-05-21 02:26 clock
esclock.ico
文件 397 2013-05-21 02:26 clock
esclock.rc2
文件 532 2013-05-21 02:26 clockResource.h
文件 207 2013-05-21 02:26 clockStdAfx.cpp
文件 1054 2013-05-21 02:26 clockStdAfx.h
目录 0 2013-05-23 14:46 clockDebug
目录 0 2013-05-23 11:03 clock
es
目录 0 2013-05-23 23:52 clock
............此处省略4个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)