https://git.reactos.org/?p=reactos.git;a=commitdiff;h=362804169d8b8a4106ef8…
commit 362804169d8b8a4106ef8f784d8f0d966e4337a3
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu Feb 8 22:13:44 2024 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu Feb 8 22:13:44 2024 +0900
[MSUTB] Add CShellWndThread (#6463)
Supporting Language Bar...
JIRA issue: CORE-19363
- Implement CShellWndThread class.
---
dll/win32/msutb/msutb.cpp | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/dll/win32/msutb/msutb.cpp b/dll/win32/msutb/msutb.cpp
index b582e7421fd..4424debb8ff 100644
--- a/dll/win32/msutb/msutb.cpp
+++ b/dll/win32/msutb/msutb.cpp
@@ -524,6 +524,28 @@ BOOL InitFromReg(void)
/***********************************************************************/
+struct CShellWndThread
+{
+ HWND m_hTrayWnd = NULL;
+ HWND m_hProgmanWnd = NULL;
+
+ HWND GetWndTray()
+ {
+ if (!m_hTrayWnd || !::IsWindow(m_hTrayWnd))
+ m_hTrayWnd = ::FindWindowW(L"Shell_TrayWnd", NULL);
+ return m_hTrayWnd;
+ }
+
+ HWND GetWndProgman()
+ {
+ if (!m_hProgmanWnd || !::IsWindow(m_hProgmanWnd))
+ m_hProgmanWnd = ::FindWindowW(L"Progman", NULL);
+ return m_hProgmanWnd;
+ }
+};
+
+/***********************************************************************/
+
class CUTBLangBarDlg
{
protected: