Click here to Skip to main content
15,885,546 members
Articles / Desktop Programming / MFC

The Ultimate Toolbox FAQ

Rate me:
Please Sign up or sign in to vote.
4.38/5 (4 votes)
5 Oct 2007CPOL7 min read 48K   587   17  
A selection of frequently asked questions submitted by users of the Ultimate Toolbox
// TabProblemView.cpp : implementation of the CTabProblemView class
//

#include "stdafx.h"
#include "TabProblem.h"

#include "TabProblemDoc.h"
#include "TabProblemView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CTabProblemView

IMPLEMENT_DYNCREATE(CTabProblemView, CView)

BEGIN_MESSAGE_MAP(CTabProblemView, CView)
	//{{AFX_MSG_MAP(CTabProblemView)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CTabProblemView construction/destruction

CTabProblemView::CTabProblemView()
{
	// TODO: add construction code here

}

CTabProblemView::~CTabProblemView()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CTabProblemView drawing

void CTabProblemView::OnDraw(CDC* pDC)
{
	CTabProblemDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CTabProblemView printing

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CTabProblemView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CTabProblemView message handlers

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Canada Canada
In January 2005, David Cunningham and Chris Maunder created TheUltimateToolbox.com, a new group dedicated to the continued development, support and growth of Dundas Software’s award winning line of MFC, C++ and ActiveX control products.

Ultimate Grid for MFC, Ultimate Toolbox for MFC, and Ultimate TCP/IP have been stalwarts of C++/MFC development for a decade. Thousands of developers have used these products to speed their time to market, improve the quality of their finished products, and enhance the reliability and flexibility of their software.
This is a Organisation

476 members

Comments and Discussions