-check wich control send the WM_NOTIFY

-don't include ProcessID 0 two times

svn path=/trunk/; revision=25792
This commit is contained in:
Timo Kreuzer 2007-02-12 04:42:53 +00:00
parent 9ae5b19fde
commit 9cead0e330
2 changed files with 2 additions and 1 deletions

View file

@ -83,6 +83,7 @@ MainWindow_WndProc(HWND hMainWnd, UINT message, WPARAM wParam, LPARAM lParam)
case WM_NOTIFY:
{
if (((LPNMLISTVIEW)lParam)->hdr.code == LVN_ITEMCHANGED
&& (wParam == IDC_PROCESSLIST)
&& (((LPNMLISTVIEW)lParam)->uNewState & LVIS_SELECTED)
&& !(((LPNMLISTVIEW)lParam)->uOldState & LVIS_SELECTED))
{

View file

@ -72,7 +72,7 @@ ProcessList_Update(HWND hListCtrl)
{
return;
}
for (i = 0; i < cProcesses; i++)
for (i = 1; i < cProcesses; i++)
{
wsprintf(strText, L"<unknown>");
item.lParam = ProcessIds[i];