home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 19.ddi / OWLINC.PAK / EDITSEAR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  1.8 KB  |  61 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1992, 1993 by Borland International
  3. //   include\owl\editsear.h
  4. //   Definition of class TEditSearch, an edit control that responds to
  5. //   Find, Replace and FindNext menu commands.
  6. //----------------------------------------------------------------------------
  7. #if !defined(__OWL_EDITSEAR_H)
  8. #define __OWL_EDITSEAR_H
  9.  
  10. #if !defined(__OWL_EDIT_H)
  11.   #include <owl\edit.h>
  12. #endif
  13. #if !defined(__OWL_FINDREPL_H)
  14.   #include <owl\findrepl.h>
  15. #endif
  16. #include <owl\editsear.rh>
  17.  
  18.  
  19. //
  20. //  class TEditSearch
  21. //  ----- -----------
  22. //
  23. class _OWLCLASS TEditSearch : public TEdit {
  24.   public:
  25.     TFindReplaceDialog::TData SearchData;
  26.     TFindReplaceDialog*       SearchDialog;  // Find or replace dialog
  27.     UINT                      SearchCmd;     // command set that opened dialog
  28.  
  29.     TEditSearch(TWindow*        parent = 0,
  30.                 int             id = 0,
  31.                 const char far* text = 0,
  32.                 int x = 0, int y = 0, int w = 0, int h = 0,
  33.                 TModule*        module = 0);
  34.  
  35.    ~TEditSearch();
  36.  
  37.     void          SetupWindow();
  38.     void          DoSearch();
  39.  
  40.     //
  41.     // menu command handlers
  42.     //
  43.     void          CmEditFind();               // CM_EDITFIND
  44.     void          CmEditReplace();            // CM_EDITREPLACE
  45.     void          CmEditFindNext();           // CM_EDITFINDNEXT
  46.  
  47.     LRESULT       EvFindMsg(WPARAM, LPARAM);  // Registered commdlg message
  48.  
  49.   private:
  50.     //
  51.     // hidden to prevent accidental copying or assignment
  52.     //
  53.     TEditSearch(const TEditSearch&);
  54.     TEditSearch& operator=(const TEditSearch&);
  55.  
  56.   DECLARE_RESPONSE_TABLE(TEditSearch);
  57.   DECLARE_STREAMABLE(_OWLCLASS, TEditSearch, 1);
  58. };
  59.  
  60. #endif  // __OWL_EDITSEAR_H
  61.