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

Method OnClickedSelectConfigPath

cppcryptfs/ui/CreatePropertyPage.cpp:537–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535
536
537void CCreatePropertyPage::OnClickedSelectConfigPath()
538{
539 // TODO: Add your control notification handler code here
540
541 bool reverse = IsDlgButtonChecked(IDC_REVERSE) != 0;
542
543 CFileDialog fdlg(FALSE, L"conf", reverse ? L"gocryptfs.reverse" : L"gocryptfs",
544 OFN_DONTADDTORECENT | OFN_LONGNAMES | OFN_OVERWRITEPROMPT |
545 OFN_PATHMUSTEXIST);
546
547 if (fdlg.DoModal() == IDCANCEL)
548 return;
549
550 CString cpath = fdlg.GetPathName();
551
552 if (cpath.GetLength() < 1)
553 return;
554
555 CWnd *pWnd = GetDlgItem(IDC_CONFIG_PATH);
556 if (pWnd)
557 pWnd->SetWindowTextW(cpath);
558}
559
560
561

Callers

nothing calls this directly

Calls 2

GetPathNameMethod · 0.80
DoModalMethod · 0.45

Tested by

no test coverage detected