[MSUTB] Add CShellWndThread (#6463)

Supporting Language Bar...
JIRA issue: CORE-19363
- Implement CShellWndThread class.
This commit is contained in:
Katayama Hirofumi MZ 2024-02-08 22:13:44 +09:00 committed by GitHub
parent 5901716c07
commit 362804169d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: