27 Flags(flags), BuffSize(
buffSize), Error(0)
40 BuffSize(
src.BuffSize),
64 BuffSize =
src.BuffSize;
162 Data.
Flags = fr.Flags;
176 Data.
Flags = fr.Flags;
208 return FindText(&fr);
271 os.writeBytes(FindWhat, BuffSize);
272 os.writeBytes(ReplaceWith, BuffSize);
#define PRECONDITIONX(condition, message)
Derived from TDialog, TCommonDialog is the abstract base class for TCommonDialog objects.
virtual INT_PTR DialogFunction(TMsgId, TParam1, TParam2)
Override this to process messages within the dialog function.
static INT_PTR CALLBACK StdDlgProc(HWND, UINT, WPARAM, LPARAM) noexcept
Callback procs for hooking TDialog to native window.
virtual THandle PerformCreate() override
The TFindReplaceDialog::TData class encapsulates information necessary to initialize a TFindReplace d...
int BuffSize
BuffSize contains the size of the text buffer.
TData(uint32 flags=0, int buffSize=81)
Constructs a TData object with the specified flag value that initializes the status of the dialog box...
TData & operator=(const TData &src)
TCHAR * ReplaceWith
ReplaceWith contains the replacement string.
TCHAR * FindWhat
Contains the search string.
~TData()
Destroys a ~TData object.
uint32 Flags
Flags, which indicates the state of the control buttons and the action that occurred in the dialog bo...
TFindReplaceDialog is an abstract base class for a modeless dialog box that lets you search for and r...
TFindReplaceDialog(TWindow *parent, TData &data, TResId templateId=0, LPCTSTR title=nullptr, TModule *module=nullptr)
Constructs a TFindReplaceDialog object with a parent window, resource ID, and caption.
void EvNCDestroy()
Calls TWindow::EvNCDestroy, which responds to an incoming EV_WM_NCDESTROY message which tells the own...
void UpdateData(TParam2 param=0)
Updates the flags from the passed-in parameter.
auto PerformCreate() -> THandle override
auto DialogFunction(TMsgId, TParam1, TParam2) -> INT_PTR override
Returns true if a message is handled.
virtual void Init(TResId templateId)
Used by constructors in derived classes, Init initializes a TFindReplaceDialog object with the curren...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TReplaceDialog(TWindow *parent, TData &data, TResId templateId=0, LPCTSTR title=nullptr, TModule *module=nullptr)
Constructs a TReplaceDialog object with a parent window, resource ID, template name,...
virtual THandle PerformCreate() override
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
TWindow * GetParentO() const
Return the OWL's parent for this window.
TModule * GetModule() const
Returns a pointer to the module object.
void EvNCDestroy()
Responds to an incoming WM_NCDESTROY message, the last message sent to an MS-Windows interface elemen...
HWND THandle
TWindow encapsulates an HWND.
HWND GetHandle() const
Returns the handle of the window.
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
Base class for writing streamable objects.
#define DEFINE_RESPONSE_TABLE1(cls, base)
Macro to define a response table for a class with one base.
Definition of FindReplace- abstract, Find-, Replace- common Dialog classes.
char * strnewdup(const char *s, size_t minAllocSize=0)
Object Windows Library (OWLNext Core)
UINT TMsgId
Message ID type.
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.