home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 January / Pcwk0198.iso / Zadarmo / HEXVIEW / SRC / CHILDFRM.CPP next >
Encoding:
C/C++ Source or Header  |  1996-08-01  |  2.3 KB  |  89 lines

  1. /* ---------------------------------------------------------------------------
  2.  
  3.    This code can be used as you wish but without warranties as to performance 
  4.    of merchantability or any other warranties whether expressed or implied.
  5.    
  6.      Written by Mike Funduc, Funduc Software Inc. 8/1/96
  7.  
  8.      To download the code and more useful utilities (including Search and
  9.      Replace for Windows 95/NT, 3.1x) go to:
  10.      http://home.sprynet.com/sprynet/funduc  or
  11.      http://ourworld.compuserve.com/homepages/funduc
  12.  
  13. ----------------------------------------------------------------------------*/
  14.  
  15. // ChildFrm.cpp : implementation of the CChildFrame class
  16. //
  17.  
  18. #include "stdafx.h"
  19. #include "hexview.h"
  20.  
  21. #include "ChildFrm.h"
  22.  
  23. #ifdef _DEBUG
  24. #define new DEBUG_NEW
  25. #undef THIS_FILE
  26. static char THIS_FILE[] = __FILE__;
  27. #endif
  28.  
  29. /////////////////////////////////////////////////////////////////////////////
  30. // CChildFrame
  31.  
  32. IMPLEMENT_DYNCREATE(CChildFrame, CMDIChildWnd)
  33.  
  34. BEGIN_MESSAGE_MAP(CChildFrame, CMDIChildWnd)
  35.     //{{AFX_MSG_MAP(CChildFrame)
  36.         // NOTE - the ClassWizard will add and remove mapping macros here.
  37.         //    DO NOT EDIT what you see in these blocks of generated code !
  38.     //}}AFX_MSG_MAP
  39. END_MESSAGE_MAP()
  40.  
  41. /////////////////////////////////////////////////////////////////////////////
  42. // CChildFrame construction/destruction
  43.  
  44. CChildFrame::CChildFrame()
  45. {
  46.     // TODO: add member initialization code here
  47.     
  48. }
  49.  
  50. CChildFrame::~CChildFrame()
  51. {
  52. }
  53.  
  54. BOOL CChildFrame::OnCreateClient( LPCREATESTRUCT /*lpcs*/,
  55.     CCreateContext* pContext)
  56. {
  57.     return m_wndSplitter.Create( this,
  58.         2, 2,                 // TODO: adjust the number of rows, columns
  59.         CSize( 10, 10 ),      // TODO: adjust the minimum pane size
  60.         pContext );
  61. }
  62.  
  63. BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
  64. {
  65.     // TODO: Modify the Window class or styles here by modifying
  66.     //  the CREATESTRUCT cs
  67.  
  68.     return CMDIChildWnd::PreCreateWindow(cs);
  69. }
  70.  
  71. /////////////////////////////////////////////////////////////////////////////
  72. // CChildFrame diagnostics
  73.  
  74. #ifdef _DEBUG
  75. void CChildFrame::AssertValid() const
  76. {
  77.     CMDIChildWnd::AssertValid();
  78. }
  79.  
  80. void CChildFrame::Dump(CDumpContext& dc) const
  81. {
  82.     CMDIChildWnd::Dump(dc);
  83. }
  84.  
  85. #endif //_DEBUG
  86.  
  87. /////////////////////////////////////////////////////////////////////////////
  88. // CChildFrame message handlers
  89.