show app name in graphics window

svn path=/trunk/boinc/; revision=995
This commit is contained in:
Eric Heien 2003-03-01 00:06:04 +00:00
parent 06031a196a
commit efa6ed2ffb
1 changed files with 1 additions and 0 deletions

View File

@ -232,6 +232,7 @@ void CSSWindow::OnTimer()
if(gstate.active_tasks.active_tasks.size() != 0) {
UINT uPaintMsg = RegisterWindowMessage("BOINC_PAINT");
CWnd* pAppWnd = GetWndFromProcId(gstate.active_tasks.active_tasks[0]->pid);
SetWindowText(gstate.active_tasks.active_tasks[0]->wup->app_name);
if(pAppWnd) {
if(!pAppWnd->SendMessage(uPaintMsg, 0, (LPARAM)GetSafeHwnd())) {
PaintDefault();