MCPcopy Create free account
hub / github.com/NPP-JSONViewer/JSON-Viewer / GetCurrentFileName

Method GetCurrentFileName

src/NppJsonViewer/ScintillaEditor.cpp:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62auto ScintillaEditor::GetCurrentFileName() const -> std::wstring
63{
64 wchar_t fileName[MAX_PATH] {};
65 ::SendMessage(m_NppData._nppHandle, NPPM_GETFILENAME, 0, reinterpret_cast<LPARAM>(&fileName));
66 return fileName;
67}
68
69void ScintillaEditor::ReplaceSelection(const std::string& text) const
70{

Callers 1

GetTitleFileNameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected