BCGControlBar Pro for MFC
virtual int CBCGPPropList::CompareProps ( const CBCGPProp pProp1,
const CBCGPProp pProp2 
) const
protectedvirtual

Called by the property list control when it needs to sort properties.

Returns
Zero if the properties are identical, < 0 if pProp1 object is less than pProp2 object, or > 0 if pProp1 object is greater than pProp2.

This function is called by the property list control when it needs to sort properties by name. The default algorithm just takes CBCGPProp::m_strName from both properties and compares them using CString::Compare. Override this method in a derived class if you need to customize this behavior.