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

Method UpdateInstrumentName

Source/MainFrm.cpp:1018–1026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1016}
1017
1018void CMainFrame::UpdateInstrumentName() const { // // //
1019 if (auto pInst = GetSelectedInstrument()) {
1020 auto pName = conv::to_wide(pInst->GetName());
1021 m_pInstrumentList->SetInstrumentName(GetSelectedInstrumentIndex(), pName.data());
1022 m_wndDialogBar.GetDlgItem(IDC_INSTNAME)->SetWindowTextW(pName.data());
1023 }
1024 else
1025 m_wndDialogBar.GetDlgItem(IDC_INSTNAME)->SetWindowTextW(L"");
1026}
1027
1028void CMainFrame::OnNextInstrument()
1029{

Callers 1

UpdateViewsMethod · 0.80

Calls 4

to_wideFunction · 0.85
SetInstrumentNameMethod · 0.80
GetNameMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected