home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c06 / modal / mainfrm.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.3 KB  |  61 lines

  1. // MainFrm.cpp : implementation of the CMainFrame class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "Modal.h"
  6.  
  7. #include "MainFrm.h"
  8.  
  9. #ifdef _DEBUG
  10. #define new DEBUG_NEW
  11. #undef THIS_FILE
  12. static char THIS_FILE[] = __FILE__;
  13. #endif
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CMainFrame
  17.  
  18. IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
  19.  
  20. BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
  21.     //{{AFX_MSG_MAP(CMainFrame)
  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_MAP
  25. END_MESSAGE_MAP()
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CMainFrame construction/destruction
  29.  
  30. CMainFrame::CMainFrame()
  31. {
  32. }
  33.  
  34. CMainFrame::~CMainFrame()
  35. {
  36. }
  37.  
  38. BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
  39. {
  40.     return CFrameWnd::PreCreateWindow(cs);
  41. }
  42.  
  43. /////////////////////////////////////////////////////////////////////////////
  44. // CMainFrame diagnostics
  45.  
  46. #ifdef _DEBUG
  47. void CMainFrame::AssertValid() const
  48. {
  49.     CFrameWnd::AssertValid();
  50. }
  51.  
  52. void CMainFrame::Dump(CDumpContext& dc) const
  53. {
  54.     CFrameWnd::Dump(dc);
  55. }
  56.  
  57. #endif //_DEBUG
  58.  
  59. /////////////////////////////////////////////////////////////////////////////
  60. // CMainFrame message handlers
  61.