mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
-check wich control send the WM_NOTIFY
-don't include ProcessID 0 two times svn path=/trunk/; revision=25792
This commit is contained in:
parent
9ae5b19fde
commit
9cead0e330
2 changed files with 2 additions and 1 deletions
|
@ -83,6 +83,7 @@ MainWindow_WndProc(HWND hMainWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
case WM_NOTIFY:
|
case WM_NOTIFY:
|
||||||
{
|
{
|
||||||
if (((LPNMLISTVIEW)lParam)->hdr.code == LVN_ITEMCHANGED
|
if (((LPNMLISTVIEW)lParam)->hdr.code == LVN_ITEMCHANGED
|
||||||
|
&& (wParam == IDC_PROCESSLIST)
|
||||||
&& (((LPNMLISTVIEW)lParam)->uNewState & LVIS_SELECTED)
|
&& (((LPNMLISTVIEW)lParam)->uNewState & LVIS_SELECTED)
|
||||||
&& !(((LPNMLISTVIEW)lParam)->uOldState & LVIS_SELECTED))
|
&& !(((LPNMLISTVIEW)lParam)->uOldState & LVIS_SELECTED))
|
||||||
{
|
{
|
||||||
|
|
|
@ -72,7 +72,7 @@ ProcessList_Update(HWND hListCtrl)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (i = 0; i < cProcesses; i++)
|
for (i = 1; i < cProcesses; i++)
|
||||||
{
|
{
|
||||||
wsprintf(strText, L"<unknown>");
|
wsprintf(strText, L"<unknown>");
|
||||||
item.lParam = ProcessIds[i];
|
item.lParam = ProcessIds[i];
|
||||||
|
|
Loading…
Reference in a new issue