mirror of
https://github.com/reactos/reactos.git
synced 2025-06-26 13:29:44 +00:00
[CTFMON][MSCTF][MSCTFIME][MSUTB] Move CTF modules to base/ctf (#8040)
This PR reorganizes the location of the CTF-related modules to improve grep-ability, understanding, and readability. New folder base/ctf will become incomplete Cicero, CTF or TSF (Text Services Framework). JIRA issue: CORE-19360 JIRA issue: CORE-19361 JIRA issue: CORE-19363 - Move ctfmon, msctf, msctfime, and msutb modules to new directory base/ctf. - Adapt CMakeLists.txt to this move. - Modify .github/labeler.yml and media/doc/WINESYNC.txt. - No code content changes except CMakeLists.txt, .github/labeler.yml, and media/doc/WINESYNC.txt.
This commit is contained in:
parent
2a0d98c2bc
commit
d4c64771cd
77 changed files with 9 additions and 11 deletions
|
@ -1,100 +0,0 @@
|
|||
/*
|
||||
* PROJECT: ReactOS CTF Monitor
|
||||
* LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
|
||||
* PURPOSE: Cicero Tipbar (Language Bar) loader window
|
||||
* COPYRIGHT: Copyright 2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
|
||||
*/
|
||||
|
||||
#include "precomp.h"
|
||||
#include "CLoaderWnd.h"
|
||||
#include "CRegWatcher.h"
|
||||
|
||||
BOOL CLoaderWnd::s_bUninitedSystem = FALSE;
|
||||
BOOL CLoaderWnd::s_bWndClassRegistered = FALSE;
|
||||
|
||||
BOOL CLoaderWnd::Init()
|
||||
{
|
||||
if (s_bWndClassRegistered)
|
||||
return TRUE; // Already registered
|
||||
|
||||
// Register a window class
|
||||
WNDCLASSEX wc;
|
||||
ZeroMemory(&wc, sizeof(wc));
|
||||
wc.cbSize = sizeof(wc);
|
||||
wc.style = CS_HREDRAW | CS_VREDRAW;
|
||||
wc.hInstance = g_hInst;
|
||||
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||
wc.lpfnWndProc = WindowProc;
|
||||
wc.lpszClassName = TEXT("CiCTipBarClass");
|
||||
if (!::RegisterClassEx(&wc))
|
||||
return FALSE;
|
||||
|
||||
s_bWndClassRegistered = TRUE; // Remember
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
HWND CLoaderWnd::CreateWnd()
|
||||
{
|
||||
m_hWnd = ::CreateWindowEx(0, TEXT("CiCTipBarClass"), NULL, WS_DISABLED,
|
||||
0, 0, 0, 0, NULL, NULL, g_hInst, NULL);
|
||||
return m_hWnd;
|
||||
}
|
||||
|
||||
LRESULT CALLBACK
|
||||
CLoaderWnd::WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
switch (uMsg)
|
||||
{
|
||||
case WM_CREATE:
|
||||
break;
|
||||
|
||||
case WM_DESTROY:
|
||||
::PostQuitMessage(0);
|
||||
break;
|
||||
|
||||
case WM_QUERYENDSESSION:
|
||||
// NOTE: We don't support Win95/98/Me
|
||||
#ifdef SUPPORT_WIN9X
|
||||
if (!(g_dwOsInfo & CIC_OSINFO_NT) && (!g_fWinLogon || (lParam & ENDSESSION_LOGOFF)))
|
||||
{
|
||||
ClosePopupTipbar();
|
||||
TF_UninitSystem();
|
||||
CLoaderWnd::s_bUninitedSystem = TRUE;
|
||||
}
|
||||
#endif
|
||||
return TRUE;
|
||||
|
||||
case WM_ENDSESSION:
|
||||
if (wParam) // The session is being ended?
|
||||
{
|
||||
if (!s_bUninitedSystem)
|
||||
{
|
||||
// Un-initialize now
|
||||
UninitApp();
|
||||
TF_UninitSystem();
|
||||
s_bUninitedSystem = TRUE;
|
||||
}
|
||||
}
|
||||
else if (s_bUninitedSystem) // Once un-initialized?
|
||||
{
|
||||
// Re-initialize
|
||||
TF_InitSystem();
|
||||
if (!g_bOnWow64)
|
||||
GetPopupTipbar(hwnd, !!g_fWinLogon);
|
||||
|
||||
s_bUninitedSystem = FALSE;
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_SYSCOLORCHANGE:
|
||||
case WM_DISPLAYCHANGE:
|
||||
if (!g_bOnWow64) // Is the system x86/x64 native?
|
||||
CRegWatcher::StartSysColorChangeTimer();
|
||||
break;
|
||||
|
||||
default:
|
||||
return DefWindowProc(hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue