MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / OnDblclkDriveLetters

Method OnDblclkDriveLetters

cppcryptfs/ui/MountPropertyPage.cpp:2016–2034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2014
2015
2016void 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
2036int CMountPropertyPage::OpenFileManagementShell(const CString& mp)
2037{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected