c++课程设计钟表程序

时间:2012-06-24 06:24:40
【文件属性】:
文件名称:c++课程设计钟表程序
文件大小:1.85MB
文件格式:RAR
更新时间:2012-06-24 06:24:40
课程设计 // timer.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "timer.h" #include "timerDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CTimerApp BEGIN_MESSAGE_MAP(CTimerApp, CWinApp) //{{AFX_MSG_MAP(CTimerApp) // 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() ///////////////////////////////////////////////////////////////////////////// // CTimerApp construction CTimerApp::CTimerApp() { // TODO: add construction code here, // Place all significant initialization in InitInstance } ///////////////////////////////////////////////////////////////////////////// // The one and only CTimerApp object CTimerApp theApp; ///////////////////////////////////////////////////////////////////////////// // CTimerApp initialization BOOL CTimerApp::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 CTimerDlg 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; }
【文件预览】:
新建文件夹 (2)
----timer.h(1KB)
----StdAfx.cpp(207B)
----timer.rc(7KB)
----timer.aps(22KB)
----timer.dsp(4KB)
----timerDlg.opt(53KB)
----10.cpp(0B)
----timerDlg.dsw(524B)
----timer.plg(951B)
----timerDlg.cpp(11KB)
----timer.dsw(535B)
----timer.clw(2KB)
----timerDlg.plg(1KB)
----Debug()
--------timerDlg.pdb(25KB)
--------timer.res(3KB)
--------vc60.pdb(356KB)
--------vc60.idb(329KB)
--------timer.exe(112KB)
--------timer.ilk(216KB)
--------10.obj(1014B)
--------timer.pch(5.37MB)
--------StdAfx.obj(103KB)
--------timer.obj(14KB)
--------timerDlg.pch(182KB)
--------timerDlg.obj(38KB)
--------timer.pdb(353KB)
----timer.opt(54KB)
----timerDlg.dsp(3KB)
----ReadMe.txt(3KB)
----StdAfx.h(1KB)
----timer.ncb(105KB)
----timer.cpp(2KB)
----Resource.h(2KB)
----timerDlg.ncb(41KB)
----res()
--------timer.ico(1KB)
--------timer.rc2(397B)
----timerDlg.h(2KB)

网友评论