Old fashion design for PC-104
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.

96 lines
2.4 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: ChildFrm.cpp
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Source file of ChildFrm.cpp
  13. //----------------------------------------------------------------------------
  14. // ChildFrm.cpp : implementation of the CChildFrame class
  15. //
  16. #include "stdafx.h"
  17. #include "BoardReceiver.h"
  18. #include "ChildFrm.h"
  19. #include "BoardReceiverDoc.h"
  20. #include "BoardReceiverList.h"
  21. #include "BoardReceiverView.h"
  22. #include "BoardReceiverVariableList.h"
  23. /*
  24. #ifdef _DEBUG
  25. #define new DEBUG_NEW
  26. #undef THIS_FILE
  27. static char THIS_FILE[] = __FILE__;
  28. #endif
  29. */
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CChildFrame
  32. IMPLEMENT_DYNCREATE(CChildFrame, CMDIChildWnd)
  33. BEGIN_MESSAGE_MAP(CChildFrame, CMDIChildWnd)
  34. //{{AFX_MSG_MAP(CChildFrame)
  35. //}}AFX_MSG_MAP
  36. END_MESSAGE_MAP()
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CChildFrame construction/destruction
  39. CChildFrame::CChildFrame()
  40. {
  41. // TODO: add member initialization code here
  42. }
  43. CChildFrame::~CChildFrame()
  44. {
  45. }
  46. BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
  47. {
  48. // TODO: Modify the Window class or styles here by modifying
  49. // the CREATESTRUCT cs
  50. if( !CMDIChildWnd::PreCreateWindow(cs) )
  51. return FALSE;
  52. return TRUE;
  53. }
  54. /////////////////////////////////////////////////////////////////////////////
  55. // CChildFrame diagnostics
  56. #ifdef _DEBUG
  57. void CChildFrame::AssertValid() const
  58. {
  59. CMDIChildWnd::AssertValid();
  60. }
  61. void CChildFrame::Dump(CDumpContext& dc) const
  62. {
  63. CMDIChildWnd::Dump(dc);
  64. }
  65. #endif //_DEBUG
  66. /////////////////////////////////////////////////////////////////////////////
  67. // CChildFrame message handlers
  68. BOOL CChildFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
  69. {
  70. BOOL bCreateSpltr = m_wndSplitter.CreateStatic( this, 1, 3);
  71. m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CBoardReceiverList), CSize(100,0), pContext );
  72. m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CBoardReceiverVariableList), CSize(0,0), pContext );
  73. m_wndSplitter.CreateView(0,2,RUNTIME_CLASS(CBoardReceiverView), CSize(0,0), pContext );
  74. return (bCreateSpltr);
  75. }