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

Method OnClickedSelectConfigPath

cppcryptfs/ui/MountPropertyPage.cpp:1671–1692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1669
1670
1671void 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
1695void CMountPropertyPage::OnEditchangePath()

Callers

nothing calls this directly

Calls 2

GetPathNameMethod · 0.80
DoModalMethod · 0.45

Tested by

no test coverage detected