资源简介
用VC来做清明上河图的屏保程序,图片是清明上河图,自己慢慢移动显示的,我还加了音乐,这更加有意思。
根据网上资料:http://hi.baidu.com/daigongacm/blog/item/d26c87128bcd7eccc3fd78d4.html
自己写了下。他的好像会出错,我在使用双内存时做了下调整,应该不出错了~``
由于只能上传15MB,所以图片,歌曲自己上网下就好了。
代码片段和文件信息
// Screen1.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Screen1.h“
#include “Screen1Dlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CScreen1App
BEGIN_MESSAGE_MAP(CScreen1App CWinApp)
//{{AFX_MSG_MAP(CScreen1App)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CScreen1App construction
CScreen1App::CScreen1App()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CScreen1App object
CScreen1App theApp;
/////////////////////////////////////////////////////////////////////////////
// CScreen1App initialization
BOOL CScreen1App::InitInstance()
{
AfxEnableControlContainer();
/*LPTSTR lpszArgv = __argv[1];
if(lpszArgv[0]==‘/‘)
lpszArgv++;
if(lstrcmpi(lpszArgv_T(“s“))==0){
CScreen1Dlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
return true;
}*/
// 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
CScreen1Dlg 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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 667 2009-09-10 18:48 Screen1\Screen1.clw
文件 3597 2009-09-10 15:49 Screen1\ReadMe.txt
文件 1335 2009-09-10 15:49 Screen1\Screen1.h
文件 1054 2009-09-10 15:49 Screen1\StdAfx.h
文件 209 2009-09-10 15:49 Screen1\StdAfx.cpp
文件 399 2009-09-10 15:49 Screen1\res\Screen1.rc2
文件 1078 2009-09-10 15:49 Screen1\res\Screen1.ico
文件 522 2009-09-10 15:49 Screen1\Screen1.dsw
文件 41984 2009-09-10 19:23 Screen1\Screen1.ncb
文件 5964940 2009-09-10 19:17 Screen1\Debug\Screen1.res
文件 197632 2009-09-10 19:17 Screen1\Debug\vc60.idb
文件 5497796 2009-09-10 19:17 Screen1\Debug\Screen1.pch
文件 372736 2009-09-10 19:17 Screen1\Debug\vc60.pdb
文件 105974 2009-09-10 19:17 Screen1\Debug\StdAfx.obj
文件 31029 2009-09-10 19:17 Screen1\Debug\Screen1Dlg.obj
文件 18583 2009-09-10 19:17 Screen1\Debug\Screen1.obj
文件 214028 2009-09-10 19:17 Screen1\Debug\Screen1.ilk
文件 7266384 2009-09-10 19:17 Screen1\Debug\Screen1.exe
文件 287744 2009-09-10 19:17 Screen1\Debug\Screen1.pdb
文件 1801 2009-09-10 19:17 Screen1\Screen1.plg
文件 546 2009-09-10 16:03 Screen1\Resource.h
文件 5997564 2009-09-10 16:12 Screen1\Screen1.aps
文件 4512 2009-09-10 16:12 Screen1\Screen1.rc
文件 2316 2009-09-10 16:47 Screen1\Screen1.cpp
文件 1950 2009-09-10 18:55 Screen1\Screen1Dlg.h
文件 5897 2009-09-10 19:17 Screen1\Screen1Dlg.cpp
文件 49664 2009-09-10 19:23 Screen1\Screen1.opt
文件 4241 2009-09-10 19:23 Screen1\Screen1.dsp
目录 0 2009-09-10 15:49 Screen1\res
目录 0 2009-09-10 15:49 Screen1\Debug
............此处省略4个文件信息
评论
共有 条评论