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

Method OnClickedSelect

cppcryptfs/ui/CreatePropertyPage.cpp:337–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335
336
337void CCreatePropertyPage::OnClickedSelect()
338{
339 // TODO: Add your control notification handler code here
340
341 CFolderDialog fdlg;
342
343 if (fdlg.DoModal() == IDCANCEL)
344 return;
345
346 CString cpath = fdlg.GetPathName();
347
348 if (cpath.GetLength() < 1)
349 return;
350
351 if (!IsDlgButtonChecked(IDC_REVERSE) && !can_delete_directory(cpath, TRUE)) {
352 MessageBox(LocUtils::GetStringFromResources(IDS_DIRECTORY_NOT_EMPTY).c_str(), L"cppcryptfs", MB_OK | MB_ICONEXCLAMATION);
353 return;
354 }
355
356 CWnd *pWnd = GetDlgItem(IDC_PATH);
357 if (pWnd)
358 pWnd->SetWindowTextW(cpath);
359
360}
361
362
363void CCreatePropertyPage::OnClickedCreate()

Callers

nothing calls this directly

Calls 3

can_delete_directoryFunction · 0.85
GetPathNameMethod · 0.80
DoModalMethod · 0.45

Tested by

no test coverage detected