mdlProject.cpp 913 B

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