WndMessenger.cpp
This fix allows to do this (instead of being stuck on first line):
0 support will be given by me as you guys never hit the thanks button and(or) say thanks in general.
Code:
BOOL CWndMessage::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult )
{
CWndEdit* pWndText = (CWndEdit*)GetDlgItem( WIDC_EDIT );
switch(nID)
{
case WIDC_EDIT:
#ifdef __CHAT_SCROLL_FIX
pWndText->m_wndScrollBar.SetMaxScrollPos();
#endif
if( message == EN_RETURN)
{
if( pWndText->m_string.IsEmpty() == FALSE )
{
CString strFormat = pWndText->m_string;
pWndText->m_string.GetTextFormat(strFormat);
CString string;
string.Format( "/say \"%s\" %s", m_strPlayer, strFormat );
g_DPlay.SendChat( string );
pWndText->Empty();
}
// pWndText->ResetString();
}
break;
case WIDC_SEND:
{
CString str = pWndText->m_string;
if( str.IsEmpty() == FALSE )
{
CString strFormat = pWndText->m_string;
pWndText->m_string.GetTextFormat(strFormat);
CString string;
string.Format( "/say \"%s\" %s", m_strPlayer, strFormat );
g_DPlay.SendChat( string );
pWndText->Empty();
// pWndText->ResetString();
}
}
break;
}
return CWndNeuz::OnChildNotify( message, nID, pLResult );
}
This fix allows to do this (instead of being stuck on first line):
You must be registered to see links
0 support will be given by me as you guys never hit the thanks button and(or) say thanks in general.