Declaration (see MWindow.h):
Provides message-specific information for StringEntered.
Return type: MString&
Returns the character (or characters) that triggered the current message.
If called not from OnStringEntered, the function generates a one-time warning 3001 and returns a dummy reference, the content of which is undefined (most likely empty, though).
The function returns a reference to a string, which can be modified by OnStringEntered handler and passed to the base class handler for more processing. See StringEntered for details and example. Of course, the result has to be modified by reference - copying it to a local variable and modifying that variable would have no effect.
Let us know
Please Contact us to report any errors on this page, or to suggest any improvements.