HexEdit/BGCompare.cpp
int CHexEditDoc::CompareProgress()
{
	CSingleLock sl(&docdata_, TRUE);
	if (comp_state_ != SCANNING || length_ == 0)
		return 100;

	return 1 + int((comp_progress_ * 99)/length_);  // 1-100 (don't start at zero)
}
// Return how far our background compare has progressed as a percentage (0 to 100).
// Also return the number of differences found so far (in bytes).

Return how far our background compare has progressed as a percentage (0 to 100).
Also return the number of differences found so far (in bytes).
Return how far our background compare has progressed as a percentage ( 0 to 100 ) . Also return the number of differences found so far ( in bytes ) .
int CHexEditDoc::CompareProgress()
{
	CSingleLock sl(&docdata_, TRUE);
	if (comp_state_ != SCANNING || length_ == 0)
		return 100;
	return 1 + int((comp_progress_ * 99)/length_);  
}
int CHexEditDoc :: CompareProgress ( ) { CSingleLock sl ( & docdata_ , TRUE ) ; if ( comp_state_ != SCANNING || length_ == 0 ) return 100 ; return 1 + int ( ( comp_progress_ * 99 ) / length_ ) ; }
Return how far our background compare has progressed as a percentage (0 to 100).
Return how far our background compare has progressed as a percentage ( 0 to 100 ) .
// 1-100 (don't start at zero)
