Click here to Skip to main content
13,152,147 members (34,205 online)
Click here to Skip to main content
Articles » Multimedia » GDI » General » Downloads

Stats

220.4K views
12.9K downloads
92 bookmarked
Posted 11 Jan 2003

Barry's Screen Capture

, 11 Jan 2003
An article showing methods of screen capture
// CapITDoc.cpp : implementation of the CCapITDoc class
//

/******************************************************************************\
*       This is a part of the Microsoft Source Code Samples. 
*       Copyright (C) 1993-1997 Microsoft Corporation.
*       All rights reserved. 
*       This source code is only intended as a supplement to 
*       Microsoft Development Tools and/or WinHelp documentation.
*       See these sources for detailed information regarding the 
*       Microsoft samples programs.
\******************************************************************************/


#include "stdafx.h"
#include "CapIT.h"

#include "CapITDoc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CCapITDoc

IMPLEMENT_DYNCREATE(CCapITDoc, CDocument)

BEGIN_MESSAGE_MAP(CCapITDoc, CDocument)
	//{{AFX_MSG_MAP(CCapITDoc)
		// 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
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCapITDoc construction/destruction

CCapITDoc::CCapITDoc()
{
	// TODO: add one-time construction code here

}

CCapITDoc::~CCapITDoc()
{
}

BOOL CCapITDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CCapITDoc serialization

void CCapITDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CCapITDoc diagnostics

#ifdef _DEBUG
void CCapITDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CCapITDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CCapITDoc commands

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Barretto VN
India India
Nothing to boast about

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170924.2 | Last Updated 12 Jan 2003
Article Copyright 2003 by Barretto VN
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid