home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 September (Japanese) / CICA Shareware for Windows CD-ROM (Walnut Creek) (September 1995) (Japanese) (Disc 2).iso / disc2 / patches / symantec / mfcsim.exe / SIMNEW.EXE / MFC / SAMPLES / DIB / DIB.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-06  |  3.9 KB  |  172 lines

  1. // Filename: DIB.CPP                                        
  2. // "DIB" Generated by Visual Programmer
  3. // Author:   Blue Sky                                       
  4.  
  5. // 
  6. // ***********************************************************************
  7. // Code in this file is initially generated by the Switch-It Module.
  8. // This file contains functions you can change
  9. // to provide whatever functionality you require.
  10. // 
  11. // 
  12. // 
  13. // For more information,
  14. // see the section "How code is generated" in the documentation.
  15. // 
  16. // ***********************************************************************
  17. // 
  18.  
  19. #include "AFXWIN.H"
  20. #include "DIB.H"
  21.  
  22. WMPDEBUG
  23.  
  24. #ifdef _DEBUG
  25. #undef THIS_FILE
  26. static char BASED_CODE THIS_FILE[] = __FILE__;
  27. #endif
  28.  
  29.  
  30. #include "DIB.WMC"
  31.     
  32.     
  33.     
  34.  
  35.  
  36. // *********************************************************************
  37. // Creates the application object.  Sets the ball in
  38. // motion for the entire application.
  39. // *********************************************************************
  40.  
  41. Cwm_Application  TheApp;
  42.  
  43.  
  44.  
  45. // *************************************************************
  46. // Member Functions for Class: Cwm_Application
  47. // Base Class                : Cwm_BaseApplication
  48. // Derived from MFC Class    : CWinApp
  49. // *************************************************************
  50.  
  51. // The User application class. In this class, you can override any
  52. // member functions in base classes you need to, and add your own
  53. // functionality.
  54.  
  55.  
  56.  
  57. BEGIN_MESSAGE_MAP( Cwm_Application, Cwm_BaseApplication )
  58.  
  59.     // YOU CAN ADD YOUR OWN CODE HERE
  60.  
  61.     //{{SIM_MSG_MAP(Cwm_Application)
  62.     // DO NOT EDIT what you see in this block of generated code.
  63.  
  64.     //}}SIM_MSG_MAP(Cwm_Application)
  65.  
  66. END_MESSAGE_MAP()
  67.  
  68.  
  69. // Initialization for the first instance of the application
  70. BOOL Cwm_Application::InitApplication()
  71. {
  72.     return Cwm_BaseApplication::InitApplication();
  73. }
  74.  
  75.  
  76. // Initialize this instance of the application
  77. BOOL Cwm_Application::InitInstance()
  78. {
  79.     return Cwm_BaseApplication::InitInstance();
  80. }
  81.  
  82.  
  83. // Exit for this instance of the application
  84. BOOL Cwm_Application::ExitInstance()
  85. {
  86.     CBitInst.FreeLib();
  87.     return Cwm_BaseApplication::ExitInstance();
  88. }
  89.  
  90.  
  91. // *************************************************************
  92. //   C Startup function for main window 
  93. // *************************************************************
  94.  
  95. Cwm_MainWnd* BLDMainCreateWnd(CWnd *pAParent)
  96.     {
  97.     Cwm_MainWnd *pWnd;
  98.  
  99.     // Create the object
  100.     pWnd = new Cwm_MainWnd();
  101.     if (!pWnd)
  102.         return NULL;
  103.  
  104.     // Create the window
  105.     pWnd->SimInitWindow(pAParent);
  106.  
  107.     return pWnd;
  108.     }
  109.  
  110.  
  111.  
  112. // *************************************************************
  113. // Member Functions for Class: Cwm_MainWnd
  114. // Base Class                : Cwm_MainBaseWnd
  115. // Derived from MFC Class    : CWnd
  116. // *************************************************************
  117.  
  118. // The User main window class. In this class, you can override any
  119. // member functions in base classes you need to, and add your own
  120. // functionality.
  121.  
  122.  
  123. IMPLEMENT_DYNCREATE( Cwm_MainWnd, Cwm_MainBaseWnd )
  124.  
  125. BEGIN_MESSAGE_MAP( Cwm_MainWnd, Cwm_MainBaseWnd )
  126.  
  127.     //{{SIM_MSG_MAP(Cwm_MainWnd)
  128.     // DO NOT EDIT what you see in this block of generated code.
  129.     //}}SIM_MSG_MAP(Cwm_MainWnd)
  130.  
  131.     // YOU CAN ADD YOUR OWN CODE HERE
  132.  
  133. END_MESSAGE_MAP()
  134.  
  135.  
  136. Cwm_MainWnd::Cwm_MainWnd()
  137.     : Cwm_MainBaseWnd()
  138. {
  139. }
  140.  
  141.  
  142. Cwm_MainWnd::~Cwm_MainWnd()
  143. {
  144. }
  145.  
  146.  
  147. //{{SIM_MSG_BODY(Cwm_MainWnd)
  148. // Message Handler Functions for you to edit will come here.
  149.  
  150.  
  151.  
  152.  
  153. //}}SIM_MSG_BODY(Cwm_MainWnd)
  154.  
  155.  
  156. // *************************************************************
  157. // Cwm_Wnd diagnostics
  158.  
  159. #ifdef _DEBUG
  160. void Cwm_MainWnd::AssertValid() const
  161. {
  162.     Cwm_MainBaseWnd::AssertValid();
  163. }
  164.  
  165. void Cwm_MainWnd::Dump(CDumpContext& dc) const
  166. {
  167.     Cwm_MainBaseWnd::Dump(dc);
  168. }
  169.  
  170. #endif //_DEBUG
  171.  
  172.