CHtmlView_SearchView.h
上传用户:csjhqyl
上传日期:2013-08-06
资源大小:22k
文件大小:2k
- // CHtmlView_SearchView.h : interface of the CCHtmlView_SearchView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_CHTMLVIEW_SEARCHVIEW_H__5AC66D35_DD9C_4D65_971D_2DA22233EBB8__INCLUDED_)
- #define AFX_CHTMLVIEW_SEARCHVIEW_H__5AC66D35_DD9C_4D65_971D_2DA22233EBB8__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CCHtmlView_SearchView : public CHtmlView
- {
- protected: // create from serialization only
- CCHtmlView_SearchView();
- DECLARE_DYNCREATE(CCHtmlView_SearchView)
- // Attributes
- public:
- CCHtmlView_SearchDoc* GetDocument();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CCHtmlView_SearchView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual void OnInitialUpdate(); // called first time after construct
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void ClearSearchResults(CString searchID = "CHtmlView_Search");
- void FindText2(CString searchText, long Flags = 2, CString matchStyle = "color: white; background-color: darkblue", CString searchID = "CHtmlView_Search");
- void FindText(CString searchText, long Flags = 2, BOOL bNNF = FALSE /*for internal use*/);
- virtual ~CCHtmlView_SearchView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CCHtmlView_SearchView)
- // NOTE - the ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in CHtmlView_SearchView.cpp
- inline CCHtmlView_SearchDoc* CCHtmlView_SearchView::GetDocument()
- { return (CCHtmlView_SearchDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_CHTMLVIEW_SEARCHVIEW_H__5AC66D35_DD9C_4D65_971D_2DA22233EBB8__INCLUDED_)