CGXControl::ReplaceAll

virtual BOOL ReplaceAll(const GX_FR_STATE& find, ROWCOL nRow, ROWCOL nCol);

find

A reference to the GX_FR_STATE structure which contains the search text, direction and other options.

nRow

Specifies the row id.

nCol

Specifies the column id.

Return Value

TRUE if text could be found; FALSE otherwise.

Remarks

Override this method if you want to support the “Replace-All” feature for your control.

By default ReplaceAll checks if the cell’s display text (see also GetControlText) matches the find pattern and automatically replaces the found patterns and stores the cell’s data to the grid by calling SetStyleRange for the cell.

Control-Factory Specific ->

This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the ImplementFindReplace method from within the control factory class' InitializeGridComponents method will make the concrete implementation of this method available to your application.

If no concrete implementation is available this method returns FALSE. A warning will be displayed in the debug window.

END Control-Factory Specific

See Also

 CGXGridCore::SetStyleRange  CGXControl::FindText  CGXControl::ReplaceSel  CGXControl::GetControlText

CGXControl

 Class Overview |  Class Members