ImportParticle2.cpp
上传用户:xhbjoy
上传日期:2014-10-07
资源大小:38068k
文件大小:2k
源码类别:

游戏引擎

开发平台:

Visual C++

  1. // ImportParticle2.cpp : 实现文件
  2. //
  3. #include "stdafx.h"
  4. #include "OGRESceneMgr.h"
  5. #include "ImportParticle2.h"
  6. #include ".importparticle2.h"
  7. // CImportParticle2 对话框
  8. IMPLEMENT_DYNAMIC(CImportParticle2, CDialog)
  9. CImportParticle2::CImportParticle2(CWnd* pParent /*=NULL*/)
  10. : CDialog(CImportParticle2::IDD, pParent)
  11. , SelectPaticleName(_T(""))
  12. {
  13. bimportpaticle=false;
  14. }
  15. CImportParticle2::~CImportParticle2()
  16. {
  17. }
  18. void CImportParticle2::DoDataExchange(CDataExchange* pDX)
  19. {
  20. CDialog::DoDataExchange(pDX);
  21. DDX_Control(pDX, IDC_COMBO1, ImportParticleComboBox);
  22. ImportParticleComboBox.AddString("Examples/Fireworks");
  23. ImportParticleComboBox.AddString("Examples/GreenyNimbus");
  24. ImportParticleComboBox.AddString("Examples/PurpleFountain");
  25. ImportParticleComboBox.AddString("Examples/Rain");
  26. ImportParticleComboBox.AddString("Examples/JetEngine1");
  27. ImportParticleComboBox.AddString("Examples/JetEngine2");
  28. ImportParticleComboBox.AddString("Examples/Aureola");
  29. ImportParticleComboBox.AddString("Examples/Swarm");
  30. ImportParticleComboBox.AddString("Examples/Snow");
  31. ImportParticleComboBox.AddString("Examples/Water/Rain");
  32. ImportParticleComboBox.AddString("Examples/Smoke");
  33. DDX_CBString(pDX, IDC_COMBO1, SelectPaticleName);
  34. }
  35. BEGIN_MESSAGE_MAP(CImportParticle2, CDialog)
  36. ON_BN_CLICKED(IDC_BUTTON1, OnBnClickedImportParticle)
  37. ON_CBN_SELCHANGE(IDC_COMBO1, OnCbnSelchangeCombo1)
  38. END_MESSAGE_MAP()
  39. // CImportParticle2 消息处理程序
  40. void CImportParticle2::OnBnClickedImportParticle()
  41. {
  42. // TODO: 在此添加控件通知处理程序代码
  43. particlenamechar=importpa.GetBuffer(importpa.GetLength());
  44. if(0==strlen(particlenamechar))
  45. MessageBox("粒子名不可为空");
  46. else
  47. bimportpaticle=true;
  48. }
  49. void CImportParticle2::OnCbnSelchangeCombo1()
  50. {
  51. // TODO: 在此添加控件通知处理程序代码
  52. int cursel=this->ImportParticleComboBox.GetCurSel();
  53. this->ImportParticleComboBox.GetLBText(cursel,importpa);
  54. }