Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

  1. // splitfra.cpp : implementation of the CSplitFrame 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. #include "stdafx.h"
  13. #include "oclient.h"
  14. #include "splitfra.h"
  15. #ifdef _DEBUG
  16. #undef THIS_FILE
  17. static char BASED_CODE THIS_FILE[] = __FILE__;
  18. #endif
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CSplitFrame
  21. IMPLEMENT_DYNCREATE(CSplitFrame, CMDIChildWnd)
  22. CSplitFrame::CSplitFrame()
  23. {
  24. }
  25. CSplitFrame::~CSplitFrame()
  26. {
  27. }
  28. BOOL CSplitFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/, CCreateContext* pContext)
  29. {
  30. return m_wndSplitter.Create(this,
  31. 2, 2, // TODO: adjust the number of rows, columns
  32. CSize(10, 10), // TODO: adjust the minimum pane size
  33. pContext);
  34. }
  35. BEGIN_MESSAGE_MAP(CSplitFrame, CMDIChildWnd)
  36. //{{AFX_MSG_MAP(CSplitFrame)
  37. // NOTE - the ClassWizard will add and remove mapping macros here.
  38. //}}AFX_MSG_MAP
  39. END_MESSAGE_MAP()
  40. /////////////////////////////////////////////////////////////////////////////
  41. // CSplitFrame message handlers