MCPcopy Create free account
hub / github.com/WinMerge/winmerge / SetCaption

Method SetCaption

Src/EditorFilepathBar.cpp:290–299  ·  view source on GitHub ↗

* @brief Set the path for one side * * @param [in] pane Index (0-based) of pane to update. * @param [in] lpszString New text for pane. */

Source from the content-addressed store, hash-verified

288 * @param [in] lpszString New text for pane.
289 */
290void CEditorFilePathBar::SetCaption(int pane, const String& sString)
291{
292 ASSERT (pane >= 0 && pane < static_cast<int>(std::size(m_Edit)));
293
294 // Check for `nullptr` since window may be closing..
295 if (m_hWnd == nullptr)
296 return;
297
298 m_Edit[pane].SetOriginalText(sString);
299}
300
301String CEditorFilePathBar::GetPath(int pane) const
302{

Callers 5

UpdateHeaderPathMethod · 0.80
UpdateHeaderPathMethod · 0.80
UpdateHeaderPathMethod · 0.80
UpdateHeaderPathMethod · 0.80
UpdateHeaderPathMethod · 0.80

Calls 2

SetOriginalTextMethod · 0.80
sizeClass · 0.50

Tested by

no test coverage detected