// Open_GL_CVView.cpp : implementation of the COpen_GL_CVView class
//

#include "stdafx.h"
#include "Open_GL_CV.h"
#include "MainFrm.h"
#include "Open_GL_CVDoc.h"
#include "Open_GL_CVView.h"
#include "ColorDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

void callback(IplImage* image);

/////////////////////////////////////////////////////////////////////////////
// COpen_GL_CVView

IMPLEMENT_DYNCREATE(COpen_GL_CVView, CView)

BEGIN_MESSAGE_MAP(COpen_GL_CVView, CView)
	//{{AFX_MSG_MAP(COpen_GL_CVView)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
	// Standard printing commands
	ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// COpen_GL_CVView construction/destruction

COpen_GL_CVView::COpen_GL_CVView()
{
	// TODO: add construction code here
}

COpen_GL_CVView::~COpen_GL_CVView()
{

}

BOOL COpen_GL_CVView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// COpen_GL_CVView drawing

void COpen_GL_CVView::OnDraw(CDC* pDC)
{

}

/////////////////////////////////////////////////////////////////////////////
// COpen_GL_CVView printing

BOOL COpen_GL_CVView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void COpen_GL_CVView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void COpen_GL_CVView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// COpen_GL_CVView diagnostics

#ifdef _DEBUG
void COpen_GL_CVView::AssertValid() const
{
	CView::AssertValid();
}

void COpen_GL_CVView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

COpen_GL_CVDoc* COpen_GL_CVView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(COpen_GL_CVDoc)));
	return (COpen_GL_CVDoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// COpen_GL_CVView message handlers

