dctwaterview.h

来自「站长!这是DCT域的图像数字水印嵌入及提取程序!请查收!暂归入加密解密类别!」· C头文件 代码 · 共 95 行

H
95
字号
// DCTWaterView.h : interface of the CDCTWaterView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DCTWATERVIEW_H__D6A1F69F_D024_405B_8336_DDBD924231BC__INCLUDED_)
#define AFX_DCTWATERVIEW_H__D6A1F69F_D024_405B_8336_DDBD924231BC__INCLUDED_

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


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

// Attributes
public:
	CDCTWaterDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDCTWaterView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	//The memory handle for encode/decode
	HGLOBAL hEmbedMem;
	//The NC for watermark comparison
    double NC1,NC2,NC3,NC4;   
	virtual ~CDCTWaterView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CDCTWaterView)
	afx_msg void OnDestroy();
	afx_msg void OnTransformBmpraw();
	afx_msg void OnTransformRawbmp();
	afx_msg void OnWatermarkOriginal();
	afx_msg void OnWatermarkOriginal1();
	afx_msg void OnWatermarkPermuted();
	afx_msg void OnWatermarkSave();
	afx_msg void OnWatermarkSaveas();
	afx_msg void OnAttackImage();
	afx_msg void OnAttackExtract();
	afx_msg void OnAttackSave();
	afx_msg void OnEmbedEmbed();
	afx_msg void OnEmbedSaveimage();
	afx_msg void OnExtractExtract();
	afx_msg void OnExtractSave();
	afx_msg void OnUpdateWatermarkOriginal1(CCmdUI* pCmdUI);
	afx_msg void OnUpdateWatermarkPermuted(CCmdUI* pCmdUI);
	afx_msg void OnUpdateWatermarkSave(CCmdUI* pCmdUI);
	afx_msg void OnUpdateWatermarkSaveas(CCmdUI* pCmdUI);
	afx_msg void OnUpdateEmbedSaveimage(CCmdUI* pCmdUI);
	afx_msg void OnUpdateExtractSave(CCmdUI* pCmdUI);
	afx_msg void OnUpdateAttackExtract(CCmdUI* pCmdUI);
	afx_msg void OnUpdateAttackImage(CCmdUI* pCmdUI);
	afx_msg void OnUpdateAttackSave(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in DCTWaterView.cpp
inline CVqwaterDoc* CDCTWaterView::GetDocument()
   { return (CVqwaterDoc*)m_pDocument; }
#endif

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DCTWATERVIEW_H__D6A1F69F_D024_405B_8336_DDBD924231BC__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?