cliconfig.cpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /////////////////////////////////////////////////////////////////////////////
  2. // CliConfig.cpp : Defines the class behaviors for the application.
  3. //
  4. #include "stdafx.h"
  5. #include "CliConfig.h"
  6. #include "CliConfigSheet.h"
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CCliConfigApp
  14. BEGIN_MESSAGE_MAP(CCliConfigApp, CWinApp)
  15. //{{AFX_MSG_MAP(CCliConfigApp)
  16. // NOTE - the ClassWizard will add and remove mapping macros here.
  17. // DO NOT EDIT what you see in these blocks of generated code!
  18. //}}AFX_MSG
  19. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  20. END_MESSAGE_MAP()
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CCliConfigApp construction
  23. CCliConfigApp::CCliConfigApp()
  24. {
  25. // TODO: add construction code here,
  26. // Place all significant initialization in InitInstance
  27. }
  28. /////////////////////////////////////////////////////////////////////////////
  29. // The one and only CCliConfigApp object
  30. CCliConfigApp theApp;
  31. /////////////////////////////////////////////////////////////////////////////
  32. // CCliConfigApp initialization
  33. BOOL CCliConfigApp::InitInstance()
  34. {
  35. // Create the property sheet window
  36. CCliConfigSheet* pps = new CCliConfigSheet;
  37. // Create the property sheet as a modeless dialog box
  38. if (pps->Create())
  39. m_pMainWnd = pps;
  40. // Continue processing the application
  41. return true;
  42. }