mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 15:14:59 -06:00
9.06 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
829409452d
commit
c99f3ebdd6
@@ -97,8 +97,7 @@ void CPanel::OnInsert()
|
||||
int nextIndex = focusedItem + 1;
|
||||
if (nextIndex < _listView.GetItemCount())
|
||||
{
|
||||
_listView.SetItemState(nextIndex, LVIS_FOCUSED | LVIS_SELECTED,
|
||||
LVIS_FOCUSED | LVIS_SELECTED);
|
||||
_listView.SetItemState_FocusedSelected(nextIndex);
|
||||
_listView.EnsureVisible(nextIndex, false);
|
||||
}
|
||||
}
|
||||
@@ -250,14 +249,15 @@ void CPanel::KillSelection()
|
||||
}
|
||||
}
|
||||
|
||||
void CPanel::OnLeftClick(LPNMITEMACTIVATE itemActivate)
|
||||
void CPanel::OnLeftClick(MY_NMLISTVIEW_NMITEMACTIVATE *itemActivate)
|
||||
{
|
||||
if(itemActivate->hdr.hwndFrom != HWND(_listView))
|
||||
if (itemActivate->hdr.hwndFrom != HWND(_listView))
|
||||
return;
|
||||
// It will be work only for Version 4.71 (IE 4);
|
||||
int indexInList = itemActivate->iItem;
|
||||
if (indexInList < 0)
|
||||
return;
|
||||
#ifndef UNDER_CE
|
||||
if ((itemActivate->uKeyFlags & LVKF_SHIFT) != 0)
|
||||
{
|
||||
// int focusedIndex = _listView.GetFocusedItem();
|
||||
@@ -280,8 +280,10 @@ void CPanel::OnLeftClick(LPNMITEMACTIVATE itemActivate)
|
||||
}
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
_startGroupSelect = indexInList;
|
||||
#ifndef UNDER_CE
|
||||
if ((itemActivate->uKeyFlags & LVKF_CONTROL) != 0)
|
||||
{
|
||||
int realIndex = GetRealItemIndex(indexInList);
|
||||
@@ -291,6 +293,7 @@ void CPanel::OnLeftClick(LPNMITEMACTIVATE itemActivate)
|
||||
_listView.RedrawItem(indexInList);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user