Htmlview.h
上传用户:shadai888
上传日期:2007-01-03
资源大小:20k
文件大小:2k
- // HtmlView.h : interface of the CHtmlView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_HTMLVIEW_H__52442BF2_70A1_11D1_8E9B_4854E827046F__INCLUDED_)
- #define AFX_HTMLVIEW_H__52442BF2_70A1_11D1_8E9B_4854E827046F__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- class CHtmlView : public CView
- {
- protected: // create from serialization only
- CHtmlView();
- DECLARE_DYNCREATE(CHtmlView)
- // Attributes
- public:
- CHtmlDoc* GetDocument();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CHtmlView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CHtmlView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- CWnd m_wndBrowser;
- //{{AFX_MSG(CHtmlView)
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnPaint();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in HtmlView.cpp
- inline CHtmlDoc* CHtmlView::GetDocument()
- { return (CHtmlDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_HTMLVIEW_H__52442BF2_70A1_11D1_8E9B_4854E827046F__INCLUDED_)