evolve4src/src/evolve/evolveView.cpp
void CevolveView::OnRButtonDown(UINT nFlags, CPoint point)
{

	//
	// Right click tools don't work if
	// simulator is running.
	//
	if( ! m_stopped )
		return;

	if( get_rca() == RCA_NOTHING ) {
		// do nothing

	} else if( get_rca() == RCA_BARRIER || get_rca() == RCA_THIN_BARRIER ) {
		OnRButtonDown_Barrier(nFlags, point);

	} else if( get_rca() == RCA_DYE ) {
		OnRButtonDown_Dye(nFlags, point);

	} else if( get_rca() == RCA_MOVE ) {
		OnRButtonDown_Move(nFlags, point);

	} else if( get_rca() == RCA_ENERGY ) {
		OnRButtonDown_Energy(nFlags, point);
	}

	CView::OnRButtonDown(nFlags, point);
}
//
// Right click event:
//	Check the current right click action and engage that mode.
//
Right click event:
Check the current right click action and engage that mode.
Right click event : Check the current right click action and engage that mode .
void CevolveView::OnRButtonDown(UINT nFlags, CPoint point)
{
	 Right click tools don't work if
	 simulator is running.
	if( ! m_stopped )
		return;
	if( get_rca() == RCA_NOTHING ) {
		 do nothing
	} else if( get_rca() == RCA_BARRIER || get_rca() == RCA_THIN_BARRIER ) {
		OnRButtonDown_Barrier(nFlags, point);
	} else if( get_rca() == RCA_DYE ) {
		OnRButtonDown_Dye(nFlags, point);
	} else if( get_rca() == RCA_MOVE ) {
		OnRButtonDown_Move(nFlags, point);
	} else if( get_rca() == RCA_ENERGY ) {
		OnRButtonDown_Energy(nFlags, point);
	}
	CView::OnRButtonDown(nFlags, point);
}
void CevolveView :: OnRButtonDown ( UINT nFlags , CPoint point ) { if ( ! m_stopped ) return ; if ( get_rca ( ) == RCA_NOTHING ) { } else if ( get_rca ( ) == RCA_BARRIER || get_rca ( ) == RCA_THIN_BARRIER ) { OnRButtonDown_Barrier ( nFlags , point ) ; } else if ( get_rca ( ) == RCA_DYE ) { OnRButtonDown_Dye ( nFlags , point ) ; } else if ( get_rca ( ) == RCA_MOVE ) { OnRButtonDown_Move ( nFlags , point ) ; } else if ( get_rca ( ) == RCA_ENERGY ) { OnRButtonDown_Energy ( nFlags , point ) ; } CView :: OnRButtonDown ( nFlags , point ) ; }
Right click event:
Check the current right click action and engage that mode.
Right click event : Check the current right click action and engage that mode .
// // Right click tools don't work if // simulator is running. // // do nothing