HexEdit/AerialView.cpp
void CAerialView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
{
	if (pHint == NULL)
		return;

	if (pHint->IsKindOf(RUNTIME_CLASS(CHexHint)) ||
		pHint->IsKindOf(RUNTIME_CLASS(CBGSearchHint)) ||
		pHint->IsKindOf(RUNTIME_CLASS(CBookmarkHint)) ||
		pHint->IsKindOf(RUNTIME_CLASS(CBGAerialHint))   )
	{
		// Document, search occurrences, or bookmarks have changed
		get_disp_params(rows_, cols_, actual_dpix_);  // file length may have changed which could change actual_dpix_
		update_display();
		Invalidate();
	}
}
// OnUpdate is called when the document changes
// - background calc of elts (FreeImage bitmap) is finished (or is finished for display area)
// - doc changes requiring recalc of the elts
// - bpe changes requiring recalc of the elts
// - background search finished (CBGSearchHint) - perhaps display bg search occurrences
// - bookmark change (CBookmarkHint) - perhaps update display of the bookmark

OnUpdate is called when the document changes
background calc of elts (FreeImage bitmap) is finished (or is finished for display area)
doc changes requiring recalc of the elts
bpe changes requiring recalc of the elts
background search finished (CBGSearchHint) - perhaps display bg search occurrences
bookmark change (CBookmarkHint) - perhaps update display of the bookmark
OnUpdate is called when the document changes background calc of elts ( FreeImage bitmap ) is finished ( or is finished for display area ) doc changes requiring recalc of the elts bpe changes requiring recalc of the elts background search finished ( CBGSearchHint ) - perhaps display bg search occurrences bookmark change ( CBookmarkHint ) - perhaps update display of the bookmark
void CAerialView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
{
	if (pHint == NULL)
		return;
	if (pHint->IsKindOf(RUNTIME_CLASS(CHexHint)) ||
		pHint->IsKindOf(RUNTIME_CLASS(CBGSearchHint)) ||
		pHint->IsKindOf(RUNTIME_CLASS(CBookmarkHint)) ||
		pHint->IsKindOf(RUNTIME_CLASS(CBGAerialHint))   )
	{
		get_disp_params(rows_, cols_, actual_dpix_);  
		update_display();
		Invalidate();
	}
}
void CAerialView :: OnUpdate ( CView * pSender , LPARAM lHint , CObject * pHint ) { if ( pHint == NULL ) return ; if ( pHint -> IsKindOf ( RUNTIME_CLASS ( CHexHint ) ) || pHint -> IsKindOf ( RUNTIME_CLASS ( CBGSearchHint ) ) || pHint -> IsKindOf ( RUNTIME_CLASS ( CBookmarkHint ) ) || pHint -> IsKindOf ( RUNTIME_CLASS ( CBGAerialHint ) ) ) { get_disp_params ( rows_ , cols_ , actual_dpix_ ) ; update_display ( ) ; Invalidate ( ) ; } }
OnUpdate is called when the document changes
 background calc of elts (FreeImage bitmap) is finished (or is finished for display area)
 doc changes requiring recalc of the elts
 bpe changes requiring recalc of the elts
 background search finished (CBGSearchHint) - perhaps display bg search occurrences
 bookmark change (CBookmarkHint) - perhaps update display of the bookmark
OnUpdate is called when the document changes background calc of elts ( FreeImage bitmap ) is finished ( or is finished for display area ) doc changes requiring recalc of the elts bpe changes requiring recalc of the elts background search finished ( CBGSearchHint ) - perhaps display bg search occurrences bookmark change ( CBookmarkHint ) - perhaps update display of the bookmark
// Document, search occurrences, or bookmarks have changed
 // file length may have changed which could change actual_dpix_
