MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / SelectInstrumentFolder

Method SelectInstrumentFolder

Source/MainFrm.cpp:2638–2658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2636}
2637
2638void CMainFrame::SelectInstrumentFolder()
2639{
2640 BROWSEINFOW Browse;
2641 LPITEMIDLIST lpID;
2642 WCHAR Path[MAX_PATH] = { };
2643 CStringW Title(MAKEINTRESOURCEW(IDS_INSTRUMENT_FOLDER)); // // //
2644 Browse.lpszTitle = Title;
2645 Browse.hwndOwner = m_hWnd;
2646 Browse.pidlRoot = NULL;
2647 Browse.lpfn = NULL;
2648 Browse.ulFlags = BIF_RETURNONLYFSDIRS | BIF_NEWDIALOGSTYLE;
2649 Browse.pszDisplayName = Path;
2650
2651 lpID = SHBrowseForFolderW(&Browse);
2652
2653 if (lpID != NULL) {
2654 SHGetPathFromIDListW(lpID, Path);
2655 FTEnv.GetSettings()->SetPath(fs::path {Path}.parent_path(), PATH_INST); // // //
2656 m_pInstrumentFileTree->Changed();
2657 }
2658}
2659
2660BOOL CMainFrame::OnCopyData(CWnd* pWnd, COPYDATASTRUCT* pCopyDataStruct)
2661{

Callers

nothing calls this directly

Calls 3

SetPathMethod · 0.80
ChangedMethod · 0.80
GetSettingsMethod · 0.45

Tested by

no test coverage detected