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

Method LoadString

Src/Common/LanguageSelect.cpp:943–954  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941}
942
943String CLanguageSelect::LoadString(UINT id) const
944{
945 String s;
946 if (id)
947 {
948 wchar_t text[1024];
949 AfxLoadString(id, text, static_cast<unsigned>(std::size(text)));
950 if (!TranslateString(text, s))
951 s = text;
952 }
953 return s;
954}
955
956std::wstring CLanguageSelect::LoadDialogCaption(const tchar_t* lpDialogTemplateID) const
957{

Callers 5

LoadStringFunction · 0.80
OnInitDialogMethod · 0.80
CreateMethod · 0.80
OnUpdateEditUndoMethod · 0.80
OnUpdateEditRedoMethod · 0.80

Calls 2

TranslateStringFunction · 0.85
sizeClass · 0.50

Tested by

no test coverage detected