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

Method OnUpdateStatusNum

Src/WebPageDiffFrm.cpp:1061–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1059}
1060
1061void CWebPageDiffFrame::OnUpdateStatusNum(CCmdUI* pCmdUI)
1062{
1063 tchar_t sIdx[32] = { 0 };
1064 tchar_t sCnt[32] = { 0 };
1065 String s;
1066 auto compareState = m_pWebDiffWindow->GetCompareState();
1067
1068 if (compareState == IWebDiffWindow::NOT_COMPARED)
1069 {
1070 }
1071 else if (compareState == IWebDiffWindow::COMPARING)
1072 {
1073 s = I18n::LoadString(IDS_WEBPAGE_COMPARING);
1074 }
1075 else
1076 {
1077 s = CMergeFrameCommon::GetDiffStatusString(m_pWebDiffWindow->GetCurrentDiffIndex(), m_pWebDiffWindow->GetDiffCount());
1078 }
1079 pCmdUI->SetText(s.c_str());
1080}
1081
1082/**
1083 * @brief Cut current selection to clipboard

Callers

nothing calls this directly

Calls 4

LoadStringFunction · 0.85
GetCompareStateMethod · 0.80
SetTextMethod · 0.80
GetDiffCountMethod · 0.45

Tested by

no test coverage detected