home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / mdidocvw / hellofrm.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.7 KB  |  71 lines

  1. // HelloFrm.cpp : implementation of the CHelloFrame class
  2. //
  3.  
  4. // This is a part of the Microsoft Foundation Classes C++ library.
  5. // Copyright (C) 1992-1998 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // Microsoft Foundation Classes Reference and related
  10. // electronic documentation provided with the library.
  11. // See these sources for detailed information regarding the
  12. // Microsoft Foundation Classes product.
  13.  
  14. #include "stdafx.h"
  15. #include "MDI.h"
  16.  
  17. #include "HelloFrm.h"
  18.  
  19. #ifdef _DEBUG
  20. #define new DEBUG_NEW
  21. #undef THIS_FILE
  22. static char THIS_FILE[] = __FILE__;
  23. #endif
  24.  
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CHelloFrame
  27.  
  28. IMPLEMENT_DYNCREATE(CHelloFrame, CMDIChildWnd)
  29.  
  30. BEGIN_MESSAGE_MAP(CHelloFrame, CMDIChildWnd)
  31.     //{{AFX_MSG_MAP(CHelloFrame)
  32.         // NOTE - the ClassWizard will add and remove mapping macros here.
  33.         //    DO NOT EDIT what you see in these blocks of generated code !
  34.     //}}AFX_MSG_MAP
  35. END_MESSAGE_MAP()
  36.  
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CHelloFrame construction/destruction
  39.  
  40. CHelloFrame::CHelloFrame()
  41. {
  42. }
  43.  
  44. CHelloFrame::~CHelloFrame()
  45. {
  46. }
  47.  
  48. BOOL CHelloFrame::PreCreateWindow(CREATESTRUCT& cs)
  49. {
  50.     return CMDIChildWnd::PreCreateWindow(cs);
  51. }
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CHelloFrame diagnostics
  55.  
  56. #ifdef _DEBUG
  57. void CHelloFrame::AssertValid() const
  58. {
  59.     CMDIChildWnd::AssertValid();
  60. }
  61.  
  62. void CHelloFrame::Dump(CDumpContext& dc) const
  63. {
  64.     CMDIChildWnd::Dump(dc);
  65. }
  66.  
  67. #endif //_DEBUG
  68.  
  69. /////////////////////////////////////////////////////////////////////////////
  70. // CHelloFrame message handlers
  71.