[ui] add log window

* Closes #85
This commit is contained in:
Pete Batard 2012-05-31 00:32:25 +01:00
parent 372b89ba3a
commit fd55a4ef0f
6 changed files with 276 additions and 31 deletions

View file

@ -22,6 +22,7 @@
#endif
#include <windows.h>
#include <windowsx.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@ -56,7 +57,11 @@ void _uprintf(const char *format, ...)
*p++ = '\n';
*p = '\0';
// Send output to Windows debug facility
OutputDebugStringA(buf);
// Send output to our log Window
Edit_SetSel(hLog, MAX_LOG_SIZE, MAX_LOG_SIZE);
Edit_ReplaceSelU(hLog, buf);
}
#endif