資源簡介
一個用MFC做的字幕滾動,我曾經看了很多別人的代碼,都感覺很復雜,后來我就自己想了一個,很簡單,不腦殘的人一看就明白

代碼片段和文件信息
//?StaticScroolTest.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“StaticScroolTest.h“
#include?“StaticScroolTestDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CStaticScroolTestApp
BEGIN_MESSAGE_MAP(CStaticScroolTestApp?CWinApp)
//{{AFX_MSG_MAP(CStaticScroolTestApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CStaticScroolTestApp?construction
CStaticScroolTestApp::CStaticScroolTestApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CStaticScroolTestApp?object
CStaticScroolTestApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CStaticScroolTestApp?initialization
BOOL?CStaticScroolTestApp::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
CStaticScroolTestDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3759??2011-04-25?11:32??StaticScroolTest\ReadMe.txt
?????文件???????1078??2011-04-25?11:32??StaticScroolTest\res\StaticScroolTest.ico
?????文件????????408??2011-04-25?11:32??StaticScroolTest\res\StaticScroolTest.rc2
?????文件????????694??2011-04-25?11:34??StaticScroolTest\Resource.h
?????文件??????35824??2011-04-25?11:57??StaticScroolTest\StaticScroolTest.aps
?????文件???????1166??2011-04-25?12:47??StaticScroolTest\StaticScroolTest.clw
?????文件???????2203??2011-04-25?11:32??StaticScroolTest\StaticScroolTest.cpp
?????文件???????4339??2011-04-25?11:32??StaticScroolTest\StaticScroolTest.dsp
?????文件????????540??2011-04-25?11:32??StaticScroolTest\StaticScroolTest.dsw
?????文件???????1434??2011-04-25?11:32??StaticScroolTest\StaticScroolTest.h
?????文件??????58368??2011-04-26?19:59??StaticScroolTest\StaticScroolTest.ncb
?????文件??????48640??2011-04-26?19:59??StaticScroolTest\StaticScroolTest.opt
?????文件???????1191??2011-04-26?19:59??StaticScroolTest\StaticScroolTest.plg
?????文件???????5392??2011-04-25?11:57??StaticScroolTest\StaticScroolTest.rc
?????文件???????4876??2011-04-26?19:59??StaticScroolTest\StaticScroolTestDlg.cpp
?????文件???????1491??2011-04-25?11:33??StaticScroolTest\StaticScroolTestDlg.h
?????文件????????218??2011-04-25?11:32??StaticScroolTest\StdAfx.cpp
?????文件???????1054??2011-04-25?11:32??StaticScroolTest\StdAfx.h
?????目錄??????????0??2011-04-25?11:32??StaticScroolTest\res
?????目錄??????????0??2011-06-03?22:12??StaticScroolTest
-----------?---------??----------?-----??----
???????????????172675????????????????????20
- 上一篇:FTD2XX.DLL
- 下一篇:浙江大學C程題庫
評論
共有 條評論