mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-01-19 07:51:54 +00:00
- automatically scroll the console output to last line on print
This commit is contained in:
parent
6e8b6a6773
commit
d7eff865af
1 changed files with 7 additions and 0 deletions
|
@ -1821,10 +1821,17 @@ void rvDebuggerWindow::ProcessNetMessage ( idBitMsg* msg )
|
|||
break;
|
||||
|
||||
case DBMSG_PRINT:
|
||||
{
|
||||
HWND prevFocus = GetFocus();
|
||||
SetFocus ( mWndConsole );
|
||||
SendMessage ( mWndConsole, EM_SETSEL, -1, -1 );
|
||||
SendMessage ( mWndConsole, EM_REPLACESEL, 0, (LPARAM)(const char*)(msg->GetData()) + msg->GetReadCount() );
|
||||
SendMessage( mWndConsole, EM_SETSEL, -1, -1 );
|
||||
SendMessage ( mWndConsole, EM_SCROLLCARET, 0, 0 );
|
||||
UpdateWindow( mWndConsole );
|
||||
SetFocus( prevFocus );
|
||||
break;
|
||||
}
|
||||
|
||||
case DBMSG_BREAK:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue