Click here to Skip to main content
15,896,557 members
Articles / Web Development / HTML

Screen Snaper SideBar Gadget

Rate me:
Please Sign up or sign in to vote.
4.63/5 (18 votes)
1 Dec 2011CPOL2 min read 118.4K   4.7K   74  
Screen Snaper is perfect to quickly share a picture-perfect representation of anything on your screen.
 /*---------------------------------------------------------------------------
|                                  DCUtility                                  |
|--------------------------------------+--------------------------------------|
|    SolutionName : ScreenSnaperGadget                                        |
|    ProjectName  : ScreenSnaperHelper                                        |
|    FileName     : ScreenSnaperHelper.h                                      |
|    CreationDate : 2007-03-07                                                |
|    Author       : Dany Cantin                                               |
|    Comments     : dcutility@hotmail.com                                     |
|--------------------------------------+--------------------------------------|
|                             Screen Capture Tool                             |
|                         Windows Vista SideBar Gadget                        |
|--------------------------------------+--------------------------------------|
|                          Copyright � 2007 DCUtility                         |
|                              All rights reserved.                           |
 ---------------------------------------------------------------------------*/
#pragma once

#ifndef __AFXWIN_H__
    #error "include 'stdafx.h' before this file for PCH"
#endif

#include "resource.h"

#ifdef __cplusplus
extern "C" {
#endif

    enum eSnapType { CT_DESKTOP, CT_WINDOW, CT_REGION };
    HBITMAP WINAPI GetSnapType(eSnapType SnapType);    

#ifdef __cplusplus
}
#endif

class CScreenSnaperHelperApp : public CWinApp
{
public:
    CScreenSnaperHelperApp();

public:
    HBITMAP GetImage(eSnapType SnapType);

public:
    virtual BOOL InitInstance();

    DECLARE_MESSAGE_MAP()
};

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
CEO
Canada Canada

Comments and Discussions