+++ /dev/null
-/*M///////////////////////////////////////////////////////////////////////////////////////
-//
-// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
-//
-// By downloading, copying, installing or using the software you agree to this license.
-// If you do not agree to this license, do not download, install,
-// copy or use the software.
-//
-//
-// Intel License Agreement
-// For Open Source Computer Vision Library
-//
-// Copyright (C) 2000, Intel Corporation, all rights reserved.
-// Third party copyrights are property of their respective owners.
-//
-// Redistribution and use in source and binary forms, with or without modification,
-// are permitted provided that the following conditions are met:
-//
-// * Redistribution's of source code must retain the above copyright notice,
-// this list of conditions and the following disclaimer.
-//
-// * Redistribution's in binary form must reproduce the above copyright notice,
-// this list of conditions and the following disclaimer in the documentation
-// and/or other materials provided with the distribution.
-//
-// * The name of Intel Corporation may not be used to endorse or promote products
-// derived from this software without specific prior written permission.
-//
-// This software is provided by the copyright holders and contributors "as is" and
-// any express or implied warranties, including, but not limited to, the implied
-// warranties of merchantability and fitness for a particular purpose are disclaimed.
-// In no event shall the Intel Corporation or contributors be liable for any direct,
-// indirect, incidental, special, exemplary, or consequential damages
-// (including, but not limited to, procurement of substitute goods or services;
-// loss of use, data, or profits; or business interruption) however caused
-// and on any theory of liability, whether in contract, strict liability,
-// or tort (including negligence or otherwise) arising in any way out of
-// the use of this software, even if advised of the possibility of such damage.
-//
-//M*/// ChildFrm.cpp : implementation of the CChildFrame class
-//
-
-#include "stdafx.h"
-#include "Hawk.h"
-
-#include "ChildFrm.h"
-#include "MainFrm.h"
-#include "HawkDoc.h"
-#include "HawkView.h"
-#include "LogView.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CChildFrame
-
-IMPLEMENT_DYNCREATE(CChildFrame, CMDIChildWnd)
-
-BEGIN_MESSAGE_MAP(CChildFrame, CMDIChildWnd)
- //{{AFX_MSG_MAP(CChildFrame)
- ON_WM_CREATE()
- ON_WM_PAINT()
- ON_WM_CLOSE()
- //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CChildFrame construction/destruction
-
-CChildFrame::CChildFrame()
-{
- // TODO: add member initialization code here
-
-}
-
-CChildFrame::~CChildFrame()
-{
-}
-
-BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
-{
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
-
- cs.style |= WS_VISIBLE | WS_MAXIMIZE;
- if( !CMDIChildWnd::PreCreateWindow(cs) )
- return FALSE;
-
- return TRUE;
-}
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-// CChildFrame diagnostics
-
-#ifdef _DEBUG
-void CChildFrame::AssertValid() const
-{
- CMDIChildWnd::AssertValid();
-}
-
-void CChildFrame::Dump(CDumpContext& dc) const
-{
- CMDIChildWnd::Dump(dc);
-}
-
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// CChildFrame message handlers
-
-BOOL CChildFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
-{
- if (!m_splitterWnd.CreateStatic(this, 1, 2,
- WS_CHILD | WS_VISIBLE)) {
- return FALSE;
- }
-
- m_splitterWnd.SetRowInfo(0, lpcs->cy, lpcs->cy);
- m_splitterWnd.SetColumnInfo(0, lpcs->cx/2, 0);
- m_splitterWnd.SetColumnInfo(1, lpcs->cx/2, 0);
- if (!m_splitterWnd.CreateView(0, 1,
- RUNTIME_CLASS(CHawkView), CSize(lpcs->cx/2, lpcs->cy), pContext))
- {
- TRACE0("Failed to create Hawk View pane\n");
- return FALSE;
- }
-
-
- if (!m_splitterWnd.CreateView(0, 0,
- RUNTIME_CLASS(CLogView), CSize(lpcs->cx/2, lpcs->cy), pContext))
- {
- TRACE0("Failed to create Log View pane\n");
- return FALSE;
- }
-
- m_splitterWnd.SetActivePane(0, 1);
-
- return TRUE;//CMDIChildWnd::OnCreateClient(lpcs, pContext);
-}
-
-int CChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
-{
- if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)
- return -1;
-
- return 0;
-}
-
-void CChildFrame::OnPaint()
-{
- CPaintDC dc(this); // device context for painting
-}
-
-void CChildFrame::OnClose()
-{
-
- CMDIChildWnd::OnClose();
-}