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

Method RefreshViewHandle

src/NppJsonViewer/ScintillaEditor.cpp:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11void ScintillaEditor::RefreshViewHandle()
12{
13 int which = -1;
14 ::SendMessage(m_NppData._nppHandle, NPPM_GETCURRENTSCINTILLA, 0, reinterpret_cast<LPARAM>(&which));
15 assert(which != -1);
16 if (which != -1)
17 m_hScintilla = (which == 0) ? m_NppData._scintillaMainHandle : m_NppData._scintillaSecondHandle;
18}
19
20auto ScintillaEditor::GetJsonText() -> ScintillaData
21{

Callers 2

HandleTabActivatedMethod · 0.80
DrawJsonTreeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected