<< Return to Main Index

< Return to Class Index

CGXControl::ValidatePaste

virtual BOOL ValidatePaste(const CString& sPaste);

sPaste

text to be validated.

Return Value

TRUE if text is valid; FALSE otherwise.

Remarks

Called when the user pastes text and the cell is active.  The default implementation returns TRUE. If you override this method, you should build the complete string and call ValidateString or simply validate the pasted text in the override itself. Refer to CGXEditControl for a sample implementation.

This method is called from CGXControl::Paste.  CGXControl::Paste will call ReplaceSel based on the return value from this method.

See Also

CGXControl::Paste

CGXControl

Class Overview | Class Members