| 335 | |
| 336 | |
| 337 | void 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 | |
| 363 | void CCreatePropertyPage::OnClickedCreate() |
nothing calls this directly
no test coverage detected