<< Return to Main Index

< Return to Class Index

GX_FR_STATE

struct GX_FR_STATE;

Remarks

Before calling find and replace commands, the attributes of GX_FR_STATE must be initialized and the PrepareFindReplace method must be called.

CFindReplaceDialog* pFindReplaceDlg is a pointer to the find or replace dialog.

BOOL bFindOnly: Specifies if pFindReplace is the find or replace dialog box

CString strFind: search text

CString strReplace: replace string

BOOL bCase: TRUE if case sensitive, FALSE if not

int bNext: TRUE if search down, FALSE if search up

Example:

// Fill attributes

GX_FR_STATE* pState = GXGetLastFRState();

// initialize search parameter structure

pState->strFind = lpszFind;

pState->bCase = bCase;

pState->bNext = bNext;

pState->PrepareFindReplace();

// ... start search

FindText(TRUE);

See Also

CGXGridCore::FindText

Macros

Class Overview | Class Members