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 / bncfrm.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.5 KB  |  55 lines

  1. // BncFrm.cpp : implementation file
  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. #include "BncFrm.h"
  17.  
  18. #ifdef _DEBUG
  19. #define new DEBUG_NEW
  20. #undef THIS_FILE
  21. static char THIS_FILE[] = __FILE__;
  22. #endif
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CBounceFrame
  26.  
  27. IMPLEMENT_DYNCREATE(CBounceFrame, CMDIChildWnd)
  28.  
  29. CBounceFrame::CBounceFrame()
  30. {
  31. }
  32.  
  33. CBounceFrame::~CBounceFrame()
  34. {
  35. }
  36.  
  37.  
  38. BEGIN_MESSAGE_MAP(CBounceFrame, CMDIChildWnd)
  39.     //{{AFX_MSG_MAP(CBounceFrame)
  40.         // NOTE - the ClassWizard will add and remove mapping macros here.
  41.     //}}AFX_MSG_MAP
  42. END_MESSAGE_MAP()
  43.  
  44. /////////////////////////////////////////////////////////////////////////////
  45. // CBounceFrame message handlers
  46. BOOL CBounceFrame::PreCreateWindow(CREATESTRUCT& cs)
  47. {
  48.     return CMDIChildWnd::PreCreateWindow(cs);
  49. }
  50.  
  51. BOOL CBounceFrame::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CMDIFrameWnd* pParentWnd, CCreateContext* pContext)
  52. {
  53.     return CMDIChildWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, pContext);
  54. }
  55.