| 535 | |
| 536 | |
| 537 | void 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 |
nothing calls this directly
no test coverage detected