Category : C++ Source Code
Archive   : OUTVBX.ZIP
Filename : OUTVBVW.CPP

 
Output of file : OUTVBVW.CPP contained in archive : OUTVBX.ZIP

// outvbvw.cpp : implementation of the COutvbxView class
//

#include "stdafx.h"
#include "outvbx.h"

#include "outvbdoc.h"
#include "outvbvw.h"

#include "outlined.h"

#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// COutvbxView

IMPLEMENT_DYNCREATE(COutvbxView, CView)

BEGIN_MESSAGE_MAP(COutvbxView, CView)
//{{AFX_MSG_MAP(COutvbxView)
ON_COMMAND(ID_OUTLINE_STYLE0, OnOutlineStyle0)
ON_COMMAND(ID_OUTLINE_STYLE1, OnOutlineStyle1)
ON_COMMAND(ID_OUTLINE_STYLE2, OnOutlineStyle2)
ON_COMMAND(ID_OUTLINE_STYLE3, OnOutlineStyle3)
ON_COMMAND(ID_OUTLINE_STYLE4, OnOutlineStyle4)
ON_COMMAND(ID_OUTLINE_STYLE5, OnOutlineStyle5)
//}}AFX_MSG_MAP
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// COutvbxView construction/destruction

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

COutvbxView::~COutvbxView()
{
}

/////////////////////////////////////////////////////////////////////////////
// COutvbxView drawing

void COutvbxView::OnDraw(CDC* pDC)
{
COutvbxDoc* pDoc = GetDocument();

// TODO: add draw code here
}

/////////////////////////////////////////////////////////////////////////////
// COutvbxView printing

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

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

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




/////////////////////////////////////////////////////////////////////////////
// COutvbxView diagnostics

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

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

COutvbxDoc* COutvbxView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(COutvbxDoc)));
return (COutvbxDoc*) m_pDocument;
}

#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// COutvbxView message handlers

void COutvbxView::OnOutlineStyle0()
{
COutlineDlg dlg;

dlg.SetStyle(0);
dlg.DoModal();

}

void COutvbxView::OnOutlineStyle1()
{
COutlineDlg dlg;

dlg.SetStyle(1);
dlg.DoModal();

}

void COutvbxView::OnOutlineStyle2()
{
COutlineDlg dlg;

dlg.SetStyle(2);
dlg.DoModal();

}

void COutvbxView::OnOutlineStyle3()
{
COutlineDlg dlg;

dlg.SetStyle(3);
dlg.DoModal();

}

void COutvbxView::OnOutlineStyle4()
{
COutlineDlg dlg;

dlg.SetStyle(4);
dlg.DoModal();

}

void COutvbxView::OnOutlineStyle5()
{
COutlineDlg dlg;

dlg.SetStyle(5);
dlg.DoModal();

}