#include <GFindReplaceDlg.h>
Public Member Functions | |
GReplaceDlg (GView *Parent, char *InitFind=0, char *InitReplace=0, GFrCallback Callback=0, void *UserData=0) | |
Constructor. | |
void | OnCreate () |
The view is attached. | |
int | OnNotify (GViewI *Ctrl, int Flags) |
Called when a child view or view with it's SetNotify() set to this window changes. |
GReplaceDlg::GReplaceDlg | ( | GView * | Parent, | |
char * | InitFind = 0 , |
|||
char * | InitReplace = 0 , |
|||
GFrCallback | Callback = 0 , |
|||
void * | UserData = 0 | |||
) |
Constructor.
Parent | The parent window |
InitFind | The initial value to find |
InitReplace | The initial value to replace with |
Callback | Callback |
UserData | User defined data for callback |
References GFindReplaceCommon::Find, GView::Focus(), IDC_FR_FIND, IDC_FR_REPLACE, IDCANCEL, IDOK, List< Type >::Insert(), GFindReplaceCommon::MatchCase, GFindReplaceCommon::MatchWord, GView::MoveToCenter(), GWindow::Name(), GView::SetParent(), and GWindow::SetPos().
int GReplaceDlg::OnNotify | ( | GViewI * | Ctrl, | |
int | Flags | |||
) |
Called when a child view or view with it's SetNotify() set to this window changes.
The event by default will bubble up to the GWindow at the top of the window heirarchy visiting each GView on the way. If it reaches a GView that processes it then the event stops propergating up the heirarchy.
Reimplemented from GView.
References GDialog::EndModal(), GFindReplaceCommon::Find, GView::GetCtrlName(), GView::GetCtrlValue(), IDC_FR_FIND, IDC_FR_REPLACE, IDCANCEL, IDOK, GFindReplaceCommon::MatchCase, GFindReplaceCommon::MatchWord, and GFindReplaceCommon::SelectionOnly.