// OnIdleDocViewView.cpp : implementation of the COnIdleDocViewView class
//

#include "stdafx.h"
#include "OnIdleDocView.h"

#include "OnIdleDocViewDoc.h"
#include "OnIdleDocViewView.h"

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

/////////////////////////////////////////////////////////////////////////////
// COnIdleDocViewView

IMPLEMENT_DYNCREATE(COnIdleDocViewView, CFormView)

BEGIN_MESSAGE_MAP(COnIdleDocViewView, CFormView)
	//{{AFX_MSG_MAP(COnIdleDocViewView)
		// 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, CFormView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CFormView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CFormView::OnFilePrintPreview)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// COnIdleDocViewView construction/destruction

COnIdleDocViewView::COnIdleDocViewView()
	: CFormView(COnIdleDocViewView::IDD)
{
	//{{AFX_DATA_INIT(COnIdleDocViewView)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	// TODO: add construction code here

}

COnIdleDocViewView::~COnIdleDocViewView()
{
}

void COnIdleDocViewView::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(COnIdleDocViewView)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}

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

	return CFormView::PreCreateWindow(cs);
}

void COnIdleDocViewView::OnInitialUpdate()
{
	CFormView::OnInitialUpdate();
	GetParentFrame()->RecalcLayout();
	ResizeParentToFit();

}

/////////////////////////////////////////////////////////////////////////////
// COnIdleDocViewView printing

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

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

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

void COnIdleDocViewView::OnPrint(CDC* pDC, CPrintInfo* /*pInfo*/)
{
	// TODO: add customized printing code here
}

/////////////////////////////////////////////////////////////////////////////
// COnIdleDocViewView diagnostics

#ifdef _DEBUG
void COnIdleDocViewView::AssertValid() const
{
	CFormView::AssertValid();
}

void COnIdleDocViewView::Dump(CDumpContext& dc) const
{
	CFormView::Dump(dc);
}

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

/////////////////////////////////////////////////////////////////////////////
// COnIdleDocViewView message handlers
