void CWndVendorMessage::RemoveChattingMemver(LPCTSTR lpszName) { #if __VER >= 11 // __MOD_VENDOR if( m_nIsOwner ) { CString str; str.Format( prj.GetText(TID_GAME_VENCHATOUT), lpszName ); CString strMessage; strMessage.Format( "#cffff0000%s\n", str ); m_wndInfo.AddString( strMessage ); m_wndInfo.m_wndScrollBar.SetMaxScrollPos(); } #else CWndText* pWndText = (CWndText*)GetDlgItem( WIDC_TEXT1 ); CString str; str.Format( prj.GetText(TID_GAME_VENCHATOUT), lpszName ); CString strMessage; strMessage.Format( "#cffff0000%s\n", str ); pWndText->AddString( strMessage ); pWndText->m_wndScrollBar.SetMaxScrollPos(); #endif }
void CWndVendorMessage::AddMessage( LPCTSTR lpszFrom, LPCTSTR lpszMessage ) { #if __VER >= 11 // __MOD_VENDOR CString strMessage; if( !strcmp( lpszFrom, g_pPlayer->GetName() ) ) strMessage.Format( "#cffff0000%s%s :#nc\n %s\n", lpszFrom, prj.GetText(TID_GAME_FROM3), lpszMessage ); else strMessage.Format( "#cff0000ff%s%s :#nc\n %s\n", lpszFrom, prj.GetText(TID_GAME_FROM3), lpszMessage ); // strMessage.Format( "#cff0000ff%s님의 말 :#nc\n %s\n", lpszFrom, lpszMessage ); m_wndChat.AddString( strMessage ); m_wndChat.m_wndScrollBar.SetMaxScrollPos(); #else CWndText* pWndText = (CWndText*)GetDlgItem( WIDC_TEXT1 ); CString strMessage; if( !strcmp( lpszFrom, g_pPlayer->GetName() ) ) strMessage.Format( "#cffff0000%s%s :#nc\n %s\n", lpszFrom, prj.GetText(TID_GAME_FROM3), lpszMessage ); else strMessage.Format( "#cff0000ff%s%s :#nc\n %s\n", lpszFrom, prj.GetText(TID_GAME_FROM3), lpszMessage ); // strMessage.Format( "#cff0000ff%s님의 말 :#nc\n %s\n", lpszFrom, lpszMessage ); pWndText->AddString( strMessage ); pWndText->m_wndScrollBar.SetMaxScrollPos(); #endif }