Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version

Fast screen, window, region and print screen capture

, 4 Dec 2002
Screen Snaper is an fast screen, window, region and print screen capture
screensnaperdemo.zip
SnaperTestVB
frmAbout.frm
frmAbout.frx
frmDocument.frm
frmMain.frm
frmMain.frx
Module1.bas
ScrllngFrm.ctl
ScrllngFrm.ctx
SnaperTestVB.vbp
SnaperTestVB.vbw
SnaperHelperLib.bas
SnaperTestCV
SnaperHelper.lib
res
SnaperTest.ico
SnaperTestDoc.ico
Toolbar.bmp
SnaperTest.dsp
SnaperTest.dsw
Output
SnaperTestVB.exe
SnaperTestVC.exe
SnaperHelper.dll
// SnaperTestDoc.h : interface of the CSnaperTestDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SNAPERTESTDOC_H__FADBC895_63C1_40F9_8B2E_4A0DA26E632A__INCLUDED_)
#define AFX_SNAPERTESTDOC_H__FADBC895_63C1_40F9_8B2E_4A0DA26E632A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CSnaperTestDoc : public CDocument
{
protected: // create from serialization only
	CSnaperTestDoc();
	DECLARE_DYNCREATE(CSnaperTestDoc)

// Attributes
private:
    HBITMAP m_hImage;
    CSize   m_Size;

// Operations
public:
    HBITMAP GetImage() { return m_hImage; }
    CSize   GetImageSize() { return m_Size; }
    BOOL    SetImage(HBITMAP hImage)
    {
        if (!hImage)
            return FALSE;
        
        if (m_hImage)
            DeleteObject(m_hImage);

        m_hImage = hImage;

        return TRUE;
    }

    void    SetImageSize(CSize Size) { m_Size = Size; }

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSnaperTestDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CSnaperTestDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CSnaperTestDoc)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SNAPERTESTDOC_H__FADBC895_63C1_40F9_8B2E_4A0DA26E632A__INCLUDED_)

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)

Share

About the Author

DCUtility
DCUtility
Canada Canada

| Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 5 Dec 2002
Article Copyright 2002 by DCUtility
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid