| 1669 | |
| 1670 | |
| 1671 | void CMountPropertyPage::OnClickedSelectConfigPath() |
| 1672 | { |
| 1673 | // TODO: Add your control notification handler code here |
| 1674 | |
| 1675 | bool reverse = IsDlgButtonChecked(IDC_REVERSE) != 0; |
| 1676 | |
| 1677 | CFileDialog fdlg(TRUE, L"conf", reverse ? L"gocryptfs.reverse" : L"gocryptfs", |
| 1678 | OFN_DONTADDTORECENT | OFN_LONGNAMES | 0*OFN_OVERWRITEPROMPT | |
| 1679 | OFN_PATHMUSTEXIST); |
| 1680 | |
| 1681 | if (fdlg.DoModal() == IDCANCEL) |
| 1682 | return; |
| 1683 | |
| 1684 | CString cpath = fdlg.GetPathName(); |
| 1685 | |
| 1686 | if (cpath.GetLength() < 1) |
| 1687 | return; |
| 1688 | |
| 1689 | CWnd *pWnd = GetDlgItem(IDC_CONFIG_PATH); |
| 1690 | if (pWnd) |
| 1691 | pWnd->SetWindowTextW(cpath); |
| 1692 | } |
| 1693 | |
| 1694 | |
| 1695 | void CMountPropertyPage::OnEditchangePath() |
nothing calls this directly
no test coverage detected