diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2010-11-11 03:00:00 +0300 |
---|---|---|
committer | Kornel LesiĆski <kornel@geekhood.net> | 2016-05-28 02:16:04 +0300 |
commit | b75af1bba61529be6787dc470f9db60906a182e5 (patch) | |
tree | 9e0ffa6bd9ed8ac72856630225cfe07cbc63cede /CPP/7zip/UI/FileManager | |
parent | c65230d8585317f7cd58ae2982067385269fdee9 (diff) |
9.199.19
Diffstat (limited to 'CPP/7zip/UI/FileManager')
-rwxr-xr-x | CPP/7zip/UI/FileManager/ListViewDialog.cpp | 3 | ||||
-rwxr-xr-x | CPP/7zip/UI/FileManager/PanelItemOpen.cpp | 2 | ||||
-rwxr-xr-x | CPP/7zip/UI/FileManager/PanelItems.cpp | 3 | ||||
-rwxr-xr-x | CPP/7zip/UI/FileManager/PanelSelect.cpp | 8 |
4 files changed, 13 insertions, 3 deletions
diff --git a/CPP/7zip/UI/FileManager/ListViewDialog.cpp b/CPP/7zip/UI/FileManager/ListViewDialog.cpp index bec08e0d..f70572b9 100755 --- a/CPP/7zip/UI/FileManager/ListViewDialog.cpp +++ b/CPP/7zip/UI/FileManager/ListViewDialog.cpp @@ -125,6 +125,8 @@ bool CListViewDialog::OnNotify(UINT /* controlID */, LPNMHDR header) } case 'A': { + // probably that code is unused ? + /* bool ctrl = (::GetKeyState(VK_CONTROL) & 0x8000) != 0; if (ctrl) { @@ -133,6 +135,7 @@ bool CListViewDialog::OnNotify(UINT /* controlID */, LPNMHDR header) _listView.SetItemState(i, LVIS_SELECTED, LVIS_SELECTED); return true; } + */ } } } diff --git a/CPP/7zip/UI/FileManager/PanelItemOpen.cpp b/CPP/7zip/UI/FileManager/PanelItemOpen.cpp index 6b8fdba2..10a8b73c 100755 --- a/CPP/7zip/UI/FileManager/PanelItemOpen.cpp +++ b/CPP/7zip/UI/FileManager/PanelItemOpen.cpp @@ -210,7 +210,7 @@ static const char *kStartExtensions = #endif " exe bat com" " chm" - " msi doc xls ppt pps wps wpt wks xlr wdb vsd" + " msi doc xls ppt pps wps wpt wks xlr wdb vsd pub" " docx docm dotx dotm xlsx xlsm xltx xltm xlsb" " xlam pptx pptm potx potm ppam ppsx ppsm xsn" diff --git a/CPP/7zip/UI/FileManager/PanelItems.cpp b/CPP/7zip/UI/FileManager/PanelItems.cpp index 90d61b86..17cc3fcb 100755 --- a/CPP/7zip/UI/FileManager/PanelItems.cpp +++ b/CPP/7zip/UI/FileManager/PanelItems.cpp @@ -439,6 +439,7 @@ HRESULT CPanel::RefreshListCtrl(const UString &focusedName, int focusedPos, bool { if (focusedPos >= _listView.GetItemCount()) focusedPos = _listView.GetItemCount() - 1; + // we select item only in showDots mode. SetFocusedSelectedItem(focusedPos, showDots); } // m_RedrawEnabled = true; @@ -484,7 +485,7 @@ void CPanel::GetOperatedItemIndices(CRecordVector<UInt32> &indices) const { int realIndex = GetRealItemIndex(focusedItem); if (realIndex != kParentIndex) - indices.Add(realIndex); + indices.Add(realIndex); } } } diff --git a/CPP/7zip/UI/FileManager/PanelSelect.cpp b/CPP/7zip/UI/FileManager/PanelSelect.cpp index 64cef433..29cf576b 100755 --- a/CPP/7zip/UI/FileManager/PanelSelect.cpp +++ b/CPP/7zip/UI/FileManager/PanelSelect.cpp @@ -245,7 +245,14 @@ void CPanel::KillSelection() { int focused = _listView.GetFocusedItem(); if (focused >= 0) + { + // CPanel::OnItemChanged notify for LVIS_SELECTED change doesn't work here. Why? + // so we change _selectedStatusVector[realIndex] here. + int realIndex = GetRealItemIndex(focused); + if (realIndex != kParentIndex) + _selectedStatusVector[realIndex] = true; _listView.SetItemState(focused, LVIS_SELECTED, LVIS_SELECTED); + } } } @@ -297,4 +304,3 @@ void CPanel::OnLeftClick(MY_NMLISTVIEW_NMITEMACTIVATE *itemActivate) } return; } - |