#if !defined(AFX_SRCH_H__B3971467_FC37_11D3_964F_00C0F02C4B69__INCLUDED_) #define AFX_SRCH_H__B3971467_FC37_11D3_964F_00C0F02C4B69__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // SRCH.h : header file // ///////////////////////////////////////////////////////////////////////////// // SRCH form view #ifndef __AFXEXT_H__ #include #endif #include "gzrset.h" #include "gzcombo.h" #include "ReportCtrl.h" #include "label.h" #include "afxwin.h" class SRCH : public CFormView { public: void DeActivate(); void Activate(); virtual ~SRCH(); SRCH(); // protected constructor used by dynamic creation DECLARE_DYNCREATE(SRCH) CSpApp* m_pApp; GZRset* rs; GZRset* rs2; #define COLUMNCOUNT 6 // Form Data public: //{{AFX_DATA(SRCH) enum { IDD = IDD_SRCH_FORM }; CEdit m_edBad; CEdit m_edSearchTerms; CStatic m_lblBetween; CStatic m_lblAnd; CDateTimeCtrl m_dtDate2; CLabel m_lblResults; CStatic m_lblBad; CButton m_btnSearch; CgzCombo m_cbClients; CButton m_ckPreview; CComboBox m_cbDate; CDateTimeCtrl m_dtDate; CReportCtrl m_rc; //}}AFX_DATA // Attributes public: CImageList m_ilReport; CStringList m_lsPreview; // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(SRCH) public: virtual void OnInitialUpdate(); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation public: bool SuckWords(CString* pTerms); CStringList strList; CStringList slExcerpts; CString strNotIn; CString strStopWords; void Show(CString strTxt); CString m_strCriteria; bool DoNoKeywordSearch(); void BuildCriteria(); bool m_bUseKeywords; bool m_bPreview; void Delay(int nSeconds); //============================== void StopWatch(CString msg,bool bStart); COleDateTime swStart,swEnd; COleDateTimeSpan swSpan; //=================== BOOL bColumnSortAsc[COLUMNCOUNT]; long m_lResultCount; CString m_strOrderBy; bool ExtractAndRank(CString* excerpt, long * rank); bool DoSearch(); void FillView(); void Mark(CString strText,bool bStopWord); int m_nSWords; void OnRvnItemDbClick(NMHDR* pNMHDR, LRESULT* pResult); void OnRvnItemDrawPreview(NMHDR* pNMHDR, LRESULT* pResult); void OnColumnClick(NMHDR* pNMHDR, LRESULT* pResult); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif // Generated message map functions //{{AFX_MSG(SRCH) afx_msg void OnBtnsearch(); afx_msg void OnCloseupCbdate(); //}}AFX_MSG DECLARE_MESSAGE_MAP() void LayoutControls(void); int m_nCX; afx_msg void OnSize(UINT nType, int cx, int cy); CStatic m_lblDateRange; CStatic m_lblClients; CStatic m_lblKeyWords; afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo); afx_msg void OnCbnSelchangeCbclients(); }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_SRCH_H__B3971467_FC37_11D3_964F_00C0F02C4B69__INCLUDED_)