📄 testpdfview.h
字号:
// testpdfView.h : interface of the CTestpdfView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_TESTPDFVIEW_H__CF7D91EB_222D_4E76_9771_D6C4F79E382E__INCLUDED_)
#define AFX_TESTPDFVIEW_H__CF7D91EB_222D_4E76_9771_D6C4F79E382E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "acropdf.h"
class CTestpdfView : public CFormView
{
protected: // create from serialization only
CTestpdfView();
DECLARE_DYNCREATE(CTestpdfView)
public:
//{{AFX_DATA(CTestpdfView)
enum{ IDD = IDD_TESTPDF_FORM };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Attributes
public:
CTestpdfDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTestpdfView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
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);
virtual void OnDraw(CDC* pDC);
virtual void CalcWindowRect(LPRECT lpClientRect, UINT nAdjustType = adjustBorder);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CTestpdfView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
IAcroAXDocShim m_drvPDF; // PDF组件驱动对象,_DPdf是我们刚生成的组件类
CWnd m_wndPDF; // PDF控件窗口
// Generated message map functions
protected:
//{{AFX_MSG(CTestpdfView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnClose();
afx_msg void OnAppExit();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in testpdfView.cpp
inline CTestpdfDoc* CTestpdfView::GetDocument()
{ return (CTestpdfDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TESTPDFVIEW_H__CF7D91EB_222D_4E76_9771_D6C4F79E382E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -