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

Method SetVersion

src/NppJsonViewer/AboutDlg.cpp:101–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void AboutDlg::SetVersion(HWND hWnd)
102{
103 std::wstring version;
104
105 // Get module path
106 wchar_t moduleFileName[MAX_PATH + 1] = {};
107 ::GetModuleFileName(static_cast<HMODULE>(getHinst()), moduleFileName, _MAX_PATH);
108
109 version = CUtility::GetVersion(moduleFileName);
110 if (!version.empty())
111 {
112 std::wstring text(PLUGIN_NAME);
113 text += TEXT(" (");
114 text += STR_VERSION;
115 text += version;
116 text += TEXT(") ");
117 ::SetWindowText(::GetDlgItem(hWnd, IDC_GB_TITLE), text.c_str());
118 }
119}

Callers 1

run_dlgProcMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected