[OSK] Delete WS_EX_NOACTIVATE workaround code

CORE-18528
This commit is contained in:
Katayama Hirofumi MZ
2022-12-04 10:15:56 +09:00
parent 1fbed1710e
commit 47f3a4e144
2 changed files with 0 additions and 18 deletions

View File

@@ -550,9 +550,6 @@ int OSK_Timer(void)
hWndActiveWindow = GetForegroundWindow();
if (hWndActiveWindow != NULL && hWndActiveWindow != Globals.hMainWnd)
{
/* FIXME: To be deleted when ReactOS will support WS_EX_NOACTIVATE */
Globals.hActiveWnd = hWndActiveWindow;
/* Grab the current keyboard layout from the foreground window */
dwThread = GetWindowThreadProcessId(hWndActiveWindow, NULL);
hKeyboardLayout = GetKeyboardLayout(dwThread);
@@ -629,19 +626,6 @@ BOOL OSK_Command(WPARAM wCommand, HWND hWndControl)
LONG WindowStyle;
INT i;
/* FIXME: To be deleted when ReactOS will support WS_EX_NOACTIVATE */
if (Globals.hActiveWnd)
{
MSG msg;
SetForegroundWindow(Globals.hActiveWnd);
while (PeekMessageW(&msg, 0, 0, 0, PM_REMOVE))
{
TranslateMessage(&msg);
DispatchMessageW(&msg);
}
}
/* KeyDown and/or KeyUp ? */
WindowStyle = GetWindowLongW(hWndControl, GWL_STYLE);
if ((WindowStyle & BS_AUTOCHECKBOX) == BS_AUTOCHECKBOX)

View File

@@ -57,8 +57,6 @@ typedef struct
HWND* hKeys;
HFONT hFont;
WCHAR szTitle[MAX_PATH];
/* FIXME: To be deleted when ReactOS will support WS_EX_NOACTIVATE */
HWND hActiveWnd;
/* On-Screen Keyboard registry settings */
BOOL bShowWarning;