home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 September / Chip_2002-09_cd1.bin / zkuste / vbasic / Data / Utils / XZipComp.exe / XceedZip.Cab / F112496_Started.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-11-10  |  2.2 KB  |  78 lines

  1. // Started.cpp : Defines the class behaviors for the application.
  2. //
  3. // This file is part of the Xceed Zip 4 Getting Started sample using MFC
  4. // Copyright (c) 1998-1999 Xceed Software Inc.
  5. //
  6.  
  7. #include "stdafx.h"
  8. #include "Started.h"
  9. #include "StartedDlg.h"
  10.  
  11. #ifdef _DEBUG
  12. #define new DEBUG_NEW
  13. #undef THIS_FILE
  14. static char THIS_FILE[] = __FILE__;
  15. #endif
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CStartedApp
  19.  
  20. BEGIN_MESSAGE_MAP(CStartedApp, CWinApp)
  21.     //{{AFX_MSG_MAP(CStartedApp)
  22.         // NOTE - the ClassWizard will add and remove mapping macros here.
  23.         //    DO NOT EDIT what you see in these blocks of generated code!
  24.     //}}AFX_MSG
  25.     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  26. END_MESSAGE_MAP()
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CStartedApp construction
  30.  
  31. CStartedApp::CStartedApp()
  32. {
  33.     // TODO: add construction code here,
  34.     // Place all significant initialization in InitInstance
  35. }
  36.  
  37. /////////////////////////////////////////////////////////////////////////////
  38. // The one and only CStartedApp object
  39.  
  40. CStartedApp theApp;
  41.  
  42. /////////////////////////////////////////////////////////////////////////////
  43. // CStartedApp initialization
  44.  
  45. BOOL CStartedApp::InitInstance()
  46. {
  47.     AfxEnableControlContainer();
  48.  
  49.     // Standard initialization
  50.     // If you are not using these features and wish to reduce the size
  51.     //  of your final executable, you should remove from the following
  52.     //  the specific initialization routines you do not need.
  53.  
  54. #ifdef _AFXDLL
  55.     Enable3dControls();            // Call this when using MFC in a shared DLL
  56. #else
  57.     Enable3dControlsStatic();    // Call this when linking to MFC statically
  58. #endif
  59.  
  60.     CStartedDlg dlg;
  61.     m_pMainWnd = &dlg;
  62.     int nResponse = dlg.DoModal();
  63.     if (nResponse == IDOK)
  64.     {
  65.         // TODO: Place code here to handle when the dialog is
  66.         //  dismissed with OK
  67.     }
  68.     else if (nResponse == IDCANCEL)
  69.     {
  70.         // TODO: Place code here to handle when the dialog is
  71.         //  dismissed with Cancel
  72.     }
  73.  
  74.     // Since the dialog has been closed, return FALSE so that we exit the
  75.     //  application, rather than start the application's message pump.
  76.     return FALSE;
  77. }
  78.