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 / rdcfrm.cpp < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  76 lines

  1. // RDCFrm.cpp : implementation of the CRDCFrame 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 "RDCFrm.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. // CRDCFrame
  26.  
  27. IMPLEMENT_DYNCREATE(CRDCFrame, CMDIChildWnd)
  28.  
  29. BEGIN_MESSAGE_MAP(CRDCFrame, CMDIChildWnd)
  30.     //{{AFX_MSG_MAP(CRDCFrame)
  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. // CRDCFrame construction/destruction
  38.  
  39. CRDCFrame::CRDCFrame()
  40. {
  41.     // TODO: add member initialization code here
  42.  
  43. }
  44.  
  45. CRDCFrame::~CRDCFrame()
  46. {
  47. }
  48.  
  49. BOOL CRDCFrame::PreCreateWindow(CREATESTRUCT& cs)
  50. {
  51.     // TODO: Modify the Window class or styles here by modifying
  52.     // the CREATESTRUCT cs
  53.     cs.cy=50;cs.cx=160;
  54.  
  55.     return CMDIChildWnd::PreCreateWindow(cs);
  56. }
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59. // CRDCFrame diagnostics
  60.  
  61. #ifdef _DEBUG
  62. void CRDCFrame::AssertValid() const
  63. {
  64.     CMDIChildWnd::AssertValid();
  65. }
  66.  
  67. void CRDCFrame::Dump(CDumpContext& dc) const
  68. {
  69.     CMDIChildWnd::Dump(dc);
  70. }
  71.  
  72. #endif //_DEBUG
  73.  
  74. /////////////////////////////////////////////////////////////////////////////
  75. // CRDCFrame message handlers
  76.