資源簡介
動態火焰程序,粒子系統,火焰渲染,適合游戲,設備自動化應用場景模擬等。

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“MyFire2.h“
#include?“MyFire2View.h“
#include?“SetDlg.h“
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMainframe
IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static?UINT?indicators[]?=
{
ID_SEPARATOR???????????//?status?line?indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?construction/destruction
CMainframe::CMainframe()
{
//?TODO:?add?member?initialization?code?here
}
CMainframe::~CMainframe()
{
}
int?CMainframe::OnCreate(LPCREATESTRUCT?lpCreateStruct)
{
if?(CframeWnd::OnCreate(lpCreateStruct)?==?-1)
return?-1;
if?(!m_wndToolBar.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?WS_VISIBLE?|?CBRS_TOP
|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed?to?create?toolbar\n“);
return?-1;??????//?fail?to?create
}
if?(!m_wndStatusBar.Create(this)?||
!m_wndStatusBar.SetIndicators(indicators
??sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed?to?create?status?bar\n“);
return?-1;??????//?fail?to?create
}
//?TODO:?Delete?these?three?lines?if?you?don‘t?want?the?toolbar?to
//??be?dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return?0;
}
BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?diagnostics
#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}
void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?message?handlers
BOOL?CMainframe::OnCreateClient(LPCREATESTRUCT?lpcs?CCreateContext*?pContext)?
{
if(!m_wndSplitter.CreateStatic(this12WS_CHILD|WS_VISIBLE))
{
TRACE(“Failed?to?CreateStaticSplitter\n“);
return?FALSE;
}
//創建第一個視圖區
if(!m_wndSplitter.CreateView(00
RUNTIME_CLASS(CSetDlg)CSize(455400)pContext))
{
TRACE(“Failed?to?create?CSetDlgView?view?pane\n“);
return?FALSE;
}
//創建第二個視圖區
if(!m_wndSplitter.Create
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-08-30?15:16??完美火焰渲染程序\
?????目錄???????????0??2018-12-21?14:54??完美火焰渲染程序\fire\
?????文件???????12342??2002-12-24?11:57??完美火焰渲染程序\fire\bubble.bmp
?????文件??????196664??2001-08-13?14:17??完美火焰渲染程序\fire\circle.bmp
?????文件???????12342??2002-12-24?11:57??完美火焰渲染程序\fire\circle1.bmp
?????文件????????5174??2001-12-27?17:21??完美火焰渲染程序\fire\circle2.bmp
?????文件???????17462??2001-08-23?13:56??完美火焰渲染程序\fire\circle3.bmp
?????文件???????49208??2000-04-13?09:53??完美火焰渲染程序\fire\cloud.bmp
?????文件???????12342??2003-11-30?12:55??完美火焰渲染程序\fire\cloud1111.bmp
?????文件????????3126??2000-05-03?05:31??完美火焰渲染程序\fire\cloud3.bmp
?????文件???????32822??2006-05-12?19:30??完美火焰渲染程序\fire\fire1112.bmp
?????文件???????33280??2003-03-23?12:15??完美火焰渲染程序\fire\flame002.rgba
?????文件???????17462??2001-08-23?13:56??完美火焰渲染程序\fire\FLARE4.BMP
?????文件???????17462??2001-08-23?13:56??完美火焰渲染程序\fire\Flare5.BMP
?????文件???????17462??2001-08-23?13:56??完美火焰渲染程序\fire\Flare6.BMP
?????文件???????66616??2000-02-02?15:54??完美火焰渲染程序\fire\Font.bmp
?????文件???????12342??2001-12-24?15:04??完美火焰渲染程序\fire\Fuoco.bmp
?????文件?????????822??2006-05-10?17:52??完美火焰渲染程序\fire\Goccia.bmp
?????文件??????206066??2002-12-24?11:57??完美火焰渲染程序\fire\ground1.rgb
?????文件????????9317??2008-09-22?11:36??完美火焰渲染程序\fire\LOADBMP.CPP
?????文件?????????925??2006-05-12?16:54??完美火焰渲染程序\fire\LOADBMP.H
?????文件???????12342??2002-12-24?11:57??完美火焰渲染程序\fire\LowKey.bmp
?????文件????????3234??2006-05-10?16:05??完美火焰渲染程序\fire\MainFrm.cpp
?????文件????????1716??2006-05-07?10:13??完美火焰渲染程序\fire\MainFrm.h
?????文件????????3126??2001-12-24?14:41??完美火焰渲染程序\fire\Mirino.bmp
?????文件???????36820??2018-12-21?14:53??完美火焰渲染程序\fire\MyFire2.aps
?????文件????????6657??2018-12-21?14:54??完美火焰渲染程序\fire\MYFIRE2.CLW
?????文件????????4227??2002-12-24?11:57??完美火焰渲染程序\fire\MYFIRE2.CPP
?????文件????????5091??2006-05-05?20:01??完美火焰渲染程序\fire\MyFire2.dsp
?????文件?????????539??2002-12-24?11:57??完美火焰渲染程序\fire\MYFIRE2.DSW
?????文件???????53248??2007-01-02?19:27??完美火焰渲染程序\fire\MyFire2.exe
............此處省略68個文件信息
評論
共有 條評論