text: 
  #include "stdafx.h"
  #include "htmlhelp.h"
  #include "mainframe.h"
  #include "libs.h"
  
  IMPLEMENT_DYNAMIC( HelpView,CHtmlView )
  BEGIN_MESSAGE_MAP( HelpView,CHtmlView )
  	ON_WM_ERASEBKGND()
  END_MESSAGE_MAP()
  
  string HelpView::getTitle(){
  	return title;
  }
  
  void HelpView::OnTitleChange( LPCTSTR t ){
  	listener->helpTitleChange( this,title=t );
  }
  
  void HelpView::OnBeforeNavigate2( LPCTSTR url,DWORD flags,LPCTSTR target,CByteArray& posted,LPCTSTR headers,BOOL* cancel ){
  	string t( url );
  	int attr=GetFileAttributes( url );if( attr==-1 ) attr=0;
  	if( (attr & FILE_ATTRIBUTE_DIRECTORY) ||
  		(t.rfind( ".bb" )+3==t.size()) ||
  		(isMediaFile( t )) ){
  
  		listener->helpOpen( this,t,attr&FILE_ATTRIBUTE_DIRECTORY );
  		*cancel=true;
  		return;
  
  	}
  	*cancel=false;
  }
  
  BOOL HelpView::OnEraseBkgnd( CDC *dc ){
  	return true;
  }
  