コード例 #1
0
void CMailViewTpl::processMessageId( int len, int fill, IWriteSink & f )
{
  FarString s = m_origMsg->GetId();
  if ( s.Length() > 2 && s[ 0 ] == '<' )
  {
    s = s.Mid( 1 );
    int pos = s.IndexOf( '>' );
    if ( pos != -1 )
      s = s.Left( pos );
  }
  writeFormatted( s, len, fill, f );
}
コード例 #2
0
void DictViewFactory::DeleteDictView(const FarString &id)
{
  FarString n_id = id.Mid(prefix_length);
  if (!n_id.IsEmpty())
    reg.DeleteRegKey("", n_id.c_str());
}