BCGSuite for MFC
virtual BOOL CBCGPEditCtrl::CanUpdateMarker ( CBCGPEditMarker pMarker) const
inlinevirtual

Called by the framework when the marker line is about to be updated.

Returns
Should return FALSE if the marker line can't be updated; otherwise TRUE.

This function is called by the edit control when it's going to update a marker line. Marker line could be updated as a result of deleted or inserted string.

Override this function in a derived class if you want to maintain "static" markers. For example, you want to highlight the header of a document. You can create (set) a line color marker that takes several lines, and when CanUpdateMarker is called, you can check the marker type and line and return FALSE if pMarker points to this special color marker.

Parameters
pMarkerPoints to the marker to be updated.