ImportParticle2.cpp
资源名称:3dwind2.0.rar [点击查看]
上传用户:xhbjoy
上传日期:2014-10-07
资源大小:38068k
文件大小:2k
源码类别:
游戏引擎
开发平台:
Visual C++
- // ImportParticle2.cpp : 实现文件
- //
- #include "stdafx.h"
- #include "OGRESceneMgr.h"
- #include "ImportParticle2.h"
- #include ".importparticle2.h"
- // CImportParticle2 对话框
- IMPLEMENT_DYNAMIC(CImportParticle2, CDialog)
- CImportParticle2::CImportParticle2(CWnd* pParent /*=NULL*/)
- : CDialog(CImportParticle2::IDD, pParent)
- , SelectPaticleName(_T(""))
- {
- bimportpaticle=false;
- }
- CImportParticle2::~CImportParticle2()
- {
- }
- void CImportParticle2::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- DDX_Control(pDX, IDC_COMBO1, ImportParticleComboBox);
- ImportParticleComboBox.AddString("Examples/Fireworks");
- ImportParticleComboBox.AddString("Examples/GreenyNimbus");
- ImportParticleComboBox.AddString("Examples/PurpleFountain");
- ImportParticleComboBox.AddString("Examples/Rain");
- ImportParticleComboBox.AddString("Examples/JetEngine1");
- ImportParticleComboBox.AddString("Examples/JetEngine2");
- ImportParticleComboBox.AddString("Examples/Aureola");
- ImportParticleComboBox.AddString("Examples/Swarm");
- ImportParticleComboBox.AddString("Examples/Snow");
- ImportParticleComboBox.AddString("Examples/Water/Rain");
- ImportParticleComboBox.AddString("Examples/Smoke");
- DDX_CBString(pDX, IDC_COMBO1, SelectPaticleName);
- }
- BEGIN_MESSAGE_MAP(CImportParticle2, CDialog)
- ON_BN_CLICKED(IDC_BUTTON1, OnBnClickedImportParticle)
- ON_CBN_SELCHANGE(IDC_COMBO1, OnCbnSelchangeCombo1)
- END_MESSAGE_MAP()
- // CImportParticle2 消息处理程序
- void CImportParticle2::OnBnClickedImportParticle()
- {
- // TODO: 在此添加控件通知处理程序代码
- particlenamechar=importpa.GetBuffer(importpa.GetLength());
- if(0==strlen(particlenamechar))
- MessageBox("粒子名不可为空");
- else
- bimportpaticle=true;
- }
- void CImportParticle2::OnCbnSelchangeCombo1()
- {
- // TODO: 在此添加控件通知处理程序代码
- int cursel=this->ImportParticleComboBox.GetCurSel();
- this->ImportParticleComboBox.GetLBText(cursel,importpa);
- }