mdlProject.cpp 1022 B

12345678910111213141516171819202122232425262728293031323334
  1. #include "stdafx.h"
  2. #include "Dlg_Frame.h"
  3. #include "StoneU_DoorCtrl.h"
  4. CDlg_Frame * g_pDlgMain;
  5. CStoneU_DoorCtrl * g_pOCXCtrl;
  6. //-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  7. //说明:创建"frmMain_DisplayArea"对话框
  8. void _CreateDialog(CWnd *pCreaterWnd)
  9. {
  10. if (NULL==g_pDlgMain)
  11. {
  12. g_pDlgMain=new CDlg_Frame;
  13. g_pDlgMain->Create(IDD_DLG_FRAME,pCreaterWnd);
  14. g_pDlgMain->ShowWindow(SW_SHOW);
  15. //g_pDlgTest = new CDlg_Test;
  16. //g_pDlgTest->Create(IDD_DIALOG2,pCreaterWnd);
  17. //g_pDlgTest->ShowWindow(SW_SHOW);
  18. }
  19. }
  20. //-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  21. //说明:销毁"frmMain_DisplayArea"对话框
  22. void _DestoryDialog()
  23. {
  24. if (NULL!=g_pDlgMain)
  25. {
  26. g_pDlgMain->Resoure();
  27. g_pDlgMain->DestroyWindow();
  28. }
  29. delete g_pDlgMain;
  30. g_pDlgMain=NULL;
  31. }