home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / database / mdibind / gridfrm.cpp < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  76 lines

  1. // GridFrm.cpp : implementation of the CGridFrame class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "stdafx.h"
  14. #include "MDIBind.h"
  15.  
  16. #include "GridFrm.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. // CGridFrame
  26.  
  27. IMPLEMENT_DYNCREATE(CGridFrame, CMDIChildWnd)
  28.  
  29. BEGIN_MESSAGE_MAP(CGridFrame, CMDIChildWnd)
  30.     //{{AFX_MSG_MAP(CGridFrame)
  31.         // NOTE - the ClassWizard will add and remove mapping macros here.
  32.         //    DO NOT EDIT what you see in these blocks of generated code !
  33.     //}}AFX_MSG_MAP
  34. END_MESSAGE_MAP()
  35.  
  36. /////////////////////////////////////////////////////////////////////////////
  37. // CGridFrame construction/destruction
  38.  
  39. CGridFrame::CGridFrame()
  40. {
  41.     // TODO: add member initialization code here
  42.  
  43. }
  44.  
  45. CGridFrame::~CGridFrame()
  46. {
  47. }
  48.  
  49. BOOL CGridFrame::PreCreateWindow(CREATESTRUCT& cs)
  50. {
  51.     // TODO: Modify the Window class or styles here by modifying
  52.     //  the CREATESTRUCT cs
  53.     cs.cy=200;cs.cx=300;
  54.  
  55.     return CMDIChildWnd::PreCreateWindow(cs);
  56. }
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59. // CGridFrame diagnostics
  60.  
  61. #ifdef _DEBUG
  62. void CGridFrame::AssertValid() const
  63. {
  64.     CMDIChildWnd::AssertValid();
  65. }
  66.  
  67. void CGridFrame::Dump(CDumpContext& dc) const
  68. {
  69.     CMDIChildWnd::Dump(dc);
  70. }
  71.  
  72. #endif //_DEBUG
  73.  
  74. /////////////////////////////////////////////////////////////////////////////
  75. // CGridFrame message handlers
  76.