| 2014 | |
| 2015 | |
| 2016 | void CMountPropertyPage::OnDblclkDriveLetters(NMHDR *pNMHDR, LRESULT *pResult) |
| 2017 | { |
| 2018 | LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR); |
| 2019 | // TODO: Add your control notification handler code here |
| 2020 | |
| 2021 | int row = pNMItemActivate->iItem; |
| 2022 | |
| 2023 | CListCtrl *pList = reinterpret_cast<CListCtrl*>(GetDlgItem(IDC_DRIVE_LETTERS)); |
| 2024 | |
| 2025 | if (pList) { |
| 2026 | CString mp = pList->GetItemText(row, 0); |
| 2027 | CString path = pList->GetItemText(row, 1); |
| 2028 | if (path.GetLength() > 0) { |
| 2029 | OpenFileManagementShell(mp); |
| 2030 | } |
| 2031 | } |
| 2032 | |
| 2033 | *pResult = 0; |
| 2034 | } |
| 2035 | |
| 2036 | int CMountPropertyPage::OpenFileManagementShell(const CString& mp) |
| 2037 | { |
nothing calls this directly
no outgoing calls
no test coverage detected