mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[SHELL32] Use the correct flags with ListView's GetNextItem()
LVIS_* -> LVNI_*
This commit is contained in:
parent
d4815873fe
commit
058a67cb4a
1 changed files with 3 additions and 3 deletions
|
@ -2045,7 +2045,7 @@ UINT CDefView::GetSelections()
|
|||
|
||||
UINT i = 0;
|
||||
int lvIndex = -1;
|
||||
while ((lvIndex = m_ListView.GetNextItem(lvIndex, LVNI_SELECTED)) > -1)
|
||||
while ((lvIndex = m_ListView.GetNextItem(lvIndex, LVNI_SELECTED)) > -1)
|
||||
{
|
||||
m_apidl[i] = _PidlByItem(lvIndex);
|
||||
i++;
|
||||
|
@ -2212,10 +2212,10 @@ LRESULT CDefView::OnContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &b
|
|||
if (hFocus == m_ListView.m_hWnd || m_ListView.IsChild(hFocus))
|
||||
{
|
||||
// Is there an item focused and selected?
|
||||
lvIndex = m_ListView.GetNextItem(-1, LVIS_SELECTED|LVIS_FOCUSED);
|
||||
lvIndex = m_ListView.GetNextItem(-1, LVNI_SELECTED | LVNI_FOCUSED);
|
||||
// If not, find the first selected item
|
||||
if (lvIndex < 0)
|
||||
lvIndex = m_ListView.GetNextItem(-1, LVIS_SELECTED);
|
||||
lvIndex = m_ListView.GetNextItem(-1, LVNI_SELECTED);
|
||||
}
|
||||
|
||||
// We got something
|
||||
|
|
Loading…
Reference in a new issue