BCGControlBar Pro for MFC
virtual BOOL CBCGPPropList::ValidateItemData ( CBCGPProp pProp)
inlinevirtual

Called by the framework to validate a property data.

Parameters
pPropPoints to the property to be validated.
Returns
TRUE if the property contains a valid data; otherwise FALSE.

This function is called by the framework if EndEditItem() has been called with bUpdateData = TRUE. The default implementation does nothing and always returns TRUE.

Override ValidateItemData in a derived class if you need an additional data validation. You should return FALSE in case of the invalid data to fail the property update.