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 CPOL
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
// SnaperTestView.h : interface of the CSnaperTestView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SNAPERTESTVIEW_H__756409E6_26F6_42C7_AFC5_A07867927D14__INCLUDED_)
#define AFX_SNAPERTESTVIEW_H__756409E6_26F6_42C7_AFC5_A07867927D14__INCLUDED_

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

class CMainFrame;

class CSnaperTestView : public CScrollView
{
protected: // create from serialization only
	CSnaperTestView();
	DECLARE_DYNCREATE(CSnaperTestView)

// Attributes
public:
	CSnaperTestDoc* GetDocument();

private:
    CMainFrame* pMainFrame;
    BOOL        m_bTraped;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSnaperTestView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

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

protected:
    void UpdateImage(HBITMAP hImage, CSize Size);
    void HideWindow(BOOL bHide = TRUE);

// Generated message map functions
protected:
	//{{AFX_MSG(CSnaperTestView)
	afx_msg void OnSnapDesktop();
	afx_msg void OnSnapWindow();
	afx_msg void OnSnapRegion();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnDestroy();
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnTrapPrintScreen();
	afx_msg void OnUpdateTrapPrintScreen(CCmdUI* pCmdUI);
	//}}AFX_MSG
    afx_msg HRESULT OnPrintScreen(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in SnaperTestView.cpp
inline CSnaperTestDoc* CSnaperTestView::GetDocument()
   { return (CSnaperTestDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_SNAPERTESTVIEW_H__756409E6_26F6_42C7_AFC5_A07867927D14__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 | Terms of Use | Mobile
Web04 | 2.8.1411022.1 | Last Updated 5 Dec 2002
Article Copyright 2002 by DCUtility
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid