Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.6 KiB

  1. #ifndef _evntfind_h
  2. #define _evntfind_h
  3. // evntfind.h : header file
  4. //
  5. class CSource;
  6. enum FOUND_WHERE {
  7. I_FOUND_NOTHING,
  8. I_FOUND_IN_TREE,
  9. I_FOUND_IN_LIST
  10. };
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CEventFindDlg dialog
  13. class CEventFindDlg : public CDialog
  14. {
  15. // Construction
  16. public:
  17. CEventFindDlg(CWnd* pParent = NULL); // standard constructor
  18. BOOL Create(CSource* pSource, UINT nIDTemplate, CWnd* pParentWnd=NULL);
  19. ~CEventFindDlg();
  20. FOUND_WHERE Find(CSource* pSource);
  21. // Dialog Data
  22. FOUND_WHERE m_iFoundWhere;
  23. //{{AFX_DATA(CEventFindDlg)
  24. enum { IDD = IDD_EVENTFINDDLG };
  25. CString m_sFindWhat;
  26. BOOL m_bMatchWholeWord;
  27. BOOL m_bMatchCase;
  28. //}}AFX_DATA
  29. // Overrides
  30. // ClassWizard generated virtual function overrides
  31. //{{AFX_VIRTUAL(CEventFindDlg)
  32. protected:
  33. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  34. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  35. //}}AFX_VIRTUAL
  36. // Implementation
  37. protected:
  38. // Generated message map functions
  39. //{{AFX_MSG(CEventFindDlg)
  40. afx_msg void OnCheckMatchWholeword();
  41. afx_msg void OnCheckMatchCase();
  42. afx_msg void OnChangeEditFindWhat();
  43. virtual BOOL OnInitDialog();
  44. afx_msg void OnRadioSearchDescriptions();
  45. afx_msg void OnRadioSearchSources();
  46. afx_msg BOOL OnHelpInfo(HELPINFO*);
  47. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  48. afx_msg void OnOK();
  49. afx_msg void OnCancel();
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. private:
  53. CSource* m_pSource;
  54. BOOL m_bSearchInTree;
  55. // BOOL m_bMatchCase;
  56. // BOOL m_bWholeWord;
  57. };
  58. #endif //_evntfind_h