You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
#pragma once
|
|
|
|
|
|
#include "Item.h"
|
|
|
|
|
|
|
|
|
|
|
|
class CSigmaDoc;
|
|
|
|
|
|
class CHSimpleTracker;
|
|
|
|
|
|
namespace NItem
|
|
|
|
|
|
{
|
|
|
|
|
|
class CItemCopyAsImage : public CItem
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
CItemCopyAsImage(CSigmaDoc* ppDoc);
|
|
|
|
|
|
virtual ~CItemCopyAsImage();
|
|
|
|
|
|
int SetRange(CRect rec);
|
|
|
|
|
|
CHSimpleTracker * GetTracker();
|
|
|
|
|
|
|
|
|
|
|
|
void OnLButtonDown(CDC *pDC, UINT nFlags, CPoint point, int vk) override;
|
|
|
|
|
|
void OnLButtonUp(CDC *pDC, UINT nFlags, CPoint point, int vk) override;
|
|
|
|
|
|
int OnMouseMove(CDC *pDC, UINT nFlags, CPoint point) override;
|
|
|
|
|
|
void OnDraw(CXyDC* pDC) override;
|
|
|
|
|
|
|
|
|
|
|
|
void DrawAssistant(CDC * pDC, int mouseX, int mouseY) override;
|
|
|
|
|
|
|
|
|
|
|
|
//<2F><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ
|
|
|
|
|
|
bool CopySelectedToClipboard();
|
|
|
|
|
|
//<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD>
|
|
|
|
|
|
void CopyWindowToClipboard(CRect windowRect);
|
|
|
|
|
|
//<2F><>ȡȫͼ.<2E>൱<EFBFBD><E0B5B1><EFBFBD><EFBFBD>ȫͼ<C8AB><CDBC><EFBFBD><EFBFBD>.<2E>ڽ<EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD>
|
|
|
|
|
|
void CopyAllToClipboard(int nScale = 1);
|
|
|
|
|
|
|
|
|
|
|
|
void GetAllImageSize(int &width, int &height);
|
|
|
|
|
|
protected:
|
|
|
|
|
|
void CopyToClipboard(CRect8 & rect, int nScale = 1);
|
|
|
|
|
|
protected:
|
|
|
|
|
|
CRect m_range;
|
|
|
|
|
|
CHSimpleTracker * m_pTracker;
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|