MCPcopy Create free account
hub / github.com/derceg/explorerplusplus / AddStringToToolbar

Method AddStringToToolbar

Explorer++/Explorer++/MainToolbar.cpp:345–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345void MainToolbar::AddStringToToolbar(ToolbarButton button)
346{
347 TCHAR szText[64];
348
349 /* The string must be double NULL-terminated. */
350 GetToolbarButtonText(button, szText, SIZEOF_ARRAY(szText));
351 szText[lstrlen(szText) + 1] = '\0';
352
353 int index = static_cast<int>(SendMessage(m_hwnd, TB_ADDSTRING, NULL, reinterpret_cast<LPARAM>(szText)));
354
355 m_toolbarStringMap.insert(std::make_pair(button, index));
356}
357
358void MainToolbar::GetToolbarButtonText(ToolbarButton button, TCHAR *szText, int bufSize) const
359{

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected