10#if !defined(OWL_EDITSEAR_H)
14#if defined(BI_HAS_PRAGMA_ONCE)
20#include <owl/editsear.rh>
39 LPCTSTR text =
nullptr,
40 int x = 0,
int y = 0,
int w = 0,
int h = 0,
47 int x = 0,
int y = 0,
int w = 0,
int h = 0,
127 :
TEdit(parent, resourceId, 0, &module),SearchData(FR_DOWN)
129 SearchDialog =
nullptr;
144 SearchData = searchdata;
158 SearchDialog = searchdialog;
172 SearchCmd = searchcmd;
Base class for an extensible interface for auto enabling/disabling of commands (menu items,...
TEditSearch is an edit control that responds to Find, Replace, and FindNext menu commands.
The TFindReplaceDialog::TData class encapsulates information necessary to initialize a TFindReplace d...
TFindReplaceDialog is an abstract base class for a modeless dialog box that lets you search for and r...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Definition of class TEdit.
Definition of FindReplace- abstract, Find-, Replace- common Dialog classes.
#define DECLARE_STREAMABLE_OWL(cls, ver)
#define DECLARE_STREAMABLE_INLINES(cls)
TResult EvFindMsg(TParam1, TParam2)
Registered commdlg message.
void CmEditFindNext()
CM_EDITFINDNEXT.
void DoSearch()
Performs a search or replace operation base on information in SearchData.
TEditSearch(TWindow *parent=nullptr, int id=0, LPCTSTR text=nullptr, int x=0, int y=0, int w=0, int h=0, TModule *module=nullptr)
Constructs a TEditSearch object given the parent window, resource ID, and character string (text).
void CmEditFind()
CM_EDITFIND.
TFindReplaceDialog::TData & GetSearchData()
Returns the search data used for the common dialog.
TFindReplaceDialog * GetSearchDialog()
Returns the common dialog pointer.
void SetSearchDialog(TFindReplaceDialog *searchdialog)
Uses new common dialog pointer.
void SetupWindow() override
void CeEditFindReplace(TCommandEnabler &ce)
Enables the find or replace option (only if no dialog is up).
void SetSearchData(const TFindReplaceDialog::TData &searchdata)
Uses new search data.
void CeEditFindNext(TCommandEnabler &ce)
Enables FindNext (only if there's data to search for).
uint GetSearchCmd()
Returns the user selected command that brought up the search dialog.
void SetSearchCmd(uint searchcmd)
Remembers the command the user selected to bring up the search dialog.
TEdit(TWindow *parent, int id, LPCTSTR text, int x, int y, int w, int h, uint textLimit=0, bool multiline=false, TModule *=nullptr)
Constructs an edit control object with a parent window (parent).
void CmEditReplace()
CM_EDITREPLACE.
Object Windows Library (OWLNext Core).
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
LRESULT TResult
Result type.