This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#ifndef SCREEN_CAPTURE_H
#define SCREEN_CAPTURE_H
//功能:屏幕截屏类,保存成bmp图像
class CScreenCapture
{
public:
CScreenCapture();
virtual ~CScreenCapture();
//功能:屏幕截屏,保存成BMP位图数据
//输入:截屏区域rcCapture
void ScreenGISArea(const CRect rcCapture);
private:
//功能:截屏给定区域,保存成BMP
//输入:截屏选定区域rect
HBITMAP CopyScreenToBitmap(CRect &rect);
//保存截屏数据到bmp文件
void SaveBitmap(HBITMAP hBmp);
//功能:开始截屏
void BeginCapture();
//屏幕像素坐标
LONG m_cxScreen,m_cyScreen;
CBitmap m_bkBmp;
//开始截屏的标识
bool m_bIsCapturing;
};
#endif