<< Return to Main Index

< Return to Class Index

CGXGridCore::OnFindNext

virtual void OnFindNext(LPCTSTR lpszFind, BOOL bNext, BOOL bCase);

lpszFind

The text to be found.

bNext

Specifies the direction of the search. If TRUE, the search direction is down. If FALSE, the search direction is up.

bCase

Specifies whether the search is case sensitive. If TRUE, the search is case sensitive. If FALSE, the search is not case sensitive.

Remarks

Searches the text specified by lpszFind in the column of the current cell, in the direction specified by bNext, with case sensitivity specified by bCase. The search starts at the current cell and is accomplished by initializing the GX_FR_STATE structure and calling FindText. FindText calls OnTextNotFound when the text is not found.

Override OnFindNext to change the way a CGXGridCore-derived object searches text. CGXGridView or CGXGridWnd calls OnFindNext when the user chooses the Find Next button in the standard Find dialog box.

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 performs no action. A warning will be displayed in the debug window.

END Control-Factory Specific

See Also

CGXGridCore::FindText CGXGridCore::OnTextNotFound GX_FR_STATE

CGXGridCore

Class Overview | Class Members