if( !m_bIncrementalSearchForward && !m_bIncrementalSearchBackward )
{
if( bUpdatedAtLastCall )
- pStatusBar->SetPaneText( 0, CString( (LPCTSTR)AFX_IDS_IDLEMESSAGE ) );
+ pStatusBar->SetPaneText( 0, LoadResString(AFX_IDS_IDLEMESSAGE).c_str() );
bUpdatedAtLastCall = FALSE;
}
CString strFormat;
+ UINT formatid = 0;
if( !m_bIncrementalFound )
- strFormat.Format( IDS_FIND_INCREMENTAL_FAILED, *m_pstrIncrementalSearchString );
+ formatid = IDS_FIND_INCREMENTAL_FAILED;
else if( m_bIncrementalSearchForward )
- strFormat.Format( IDS_FIND_INCREMENTAL_FORWARD, *m_pstrIncrementalSearchString );
+ formatid = IDS_FIND_INCREMENTAL_FORWARD;
else if( m_bIncrementalSearchBackward )
- strFormat.Format( IDS_FIND_INCREMENTAL_BACKWARD, *m_pstrIncrementalSearchString );
-
- if( strFormat.IsEmpty() )
+ formatid = IDS_FIND_INCREMENTAL_BACKWARD;
+ else
return;
+ strFormat.Format( LoadResString(formatid).c_str(), *m_pstrIncrementalSearchString );
pStatusBar->SetPaneText( 0, strFormat );
bUpdatedAtLastCall = TRUE;
CString strMessage;
CString strNumber;
strNumber.Format( _T("%d"), nNumReplaced );
- AfxFormatString1(strMessage, IDS_NUM_REPLACED, strNumber);
+ LangFormatString1(strMessage, IDS_NUM_REPLACED, strNumber);
AfxMessageBox( strMessage, MB_ICONINFORMATION|MB_DONT_DISPLAY_AGAIN, IDS_NUM_REPLACED);
}