mirror of https://github.com/BOINC/boinc.git
show app name in graphics window
svn path=/trunk/boinc/; revision=995
This commit is contained in:
parent
06031a196a
commit
efa6ed2ffb
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue