summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-03 21:59:19 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-03 21:59:19 +0300
commitb5d430ee1b8f1a30a5fb3c44d18a369ae5566bb5 (patch)
tree84b762857df85a1081ba818eacba0a2d02a296bb
parenteac7c468a6ef15d13477e6e5821bc53c2f9be845 (diff)
TreeOptions: translation fix
-rw-r--r--include/m_gui.h1
-rw-r--r--src/mir_core/src/Windows/CCtrlTreeView.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/m_gui.h b/include/m_gui.h
index d44fc9c434..5d96a1fa8a 100644
--- a/include/m_gui.h
+++ b/include/m_gui.h
@@ -472,6 +472,7 @@ public:
HINSTANCE GetInst() const;
+ __forceinline HPLUGIN GetPlugin() const { return &m_pPlugin; }
__forceinline MWindow GetHwnd() const { return m_hwnd; }
__forceinline void Hide() { Show(SW_HIDE); }
__forceinline bool IsInitialized() const { return m_bInitialized; }
diff --git a/src/mir_core/src/Windows/CCtrlTreeView.cpp b/src/mir_core/src/Windows/CCtrlTreeView.cpp
index 4f4aeabf2f..c7c0fc19d8 100644
--- a/src/mir_core/src/Windows/CCtrlTreeView.cpp
+++ b/src/mir_core/src/Windows/CCtrlTreeView.cpp
@@ -355,7 +355,7 @@ void CCtrlTreeView::TranslateItem(HTREEITEM hItem)
TVITEMEX tvi;
wchar_t buf[128];
GetItem(hItem, &tvi, buf, _countof(buf));
- tvi.pszText = TranslateW_LP(tvi.pszText);
+ tvi.pszText = TranslateW_LP(tvi.pszText, m_parentWnd->GetPlugin());
SetItem(&tvi);
}