Use correct notification for drive selection change.

This commit is contained in:
Vitaliy Margolen 2005-10-19 19:21:48 +00:00 committed by Alexandre Julliard
parent 669b79b8f5
commit 658a5420b5
1 changed files with 6 additions and 5 deletions

View File

@ -837,13 +837,14 @@ DriveDlgProc (HWND dialog, UINT msg, WPARAM wParam, LPARAM lParam)
break;
case PSN_SETACTIVE:
break;
}
switch (((LPNMITEMACTIVATE)lParam)->hdr.code)
{
case NM_CLICK:
case LVN_ITEMCHANGED:
{
LPNMLISTVIEW lpnm = (LPNMLISTVIEW)lParam;
if (!(lpnm->uOldState & LVIS_SELECTED) &&
(lpnm->uNewState & LVIS_SELECTED))
update_controls(dialog);
break;
}
}
break;
}