mirror of
https://github.com/reactos/reactos.git
synced 2024-08-30 07:08:19 +00:00
![Katayama Hirofumi MZ](/assets/img/avatar_default.png)
Fix keyboard layout icon in taskbar notification area. JIRA issue: CORE-11700, CORE-2699, CORE-18546
- Call ActivateKeyboardLayout to select the keyboard layout correctly.
- Modify WM_INPUTLANGCHANGEREQUEST parameter.
- Modify BroadcastSystemMessageW parameter.
- Revert Taskbar Notification Area MA_NOACTIVATE HACK 8344291
. This fixes Context Menu display.
- Load the "IME File" value and set the IME icon if necessary.
- Correctly implement global hooks.
30 lines
681 B
C
30 lines
681 B
C
#pragma once
|
|
|
|
#include <stdarg.h>
|
|
#include <windef.h>
|
|
#include <winbase.h>
|
|
#include <winuser.h>
|
|
#include <winnls.h>
|
|
#include <winreg.h>
|
|
#include <wingdi.h>
|
|
#include <shellapi.h>
|
|
#include <tchar.h>
|
|
#include <strsafe.h>
|
|
|
|
#include "resource.h"
|
|
|
|
// Character Count of a layout ID like "00000409"
|
|
#define CCH_LAYOUT_ID 8
|
|
|
|
// Maximum Character Count of a ULONG in decimal
|
|
#define CCH_ULONG_DEC 10
|
|
|
|
#define WM_KEY_PRESSED (WM_USER + 10100)
|
|
#define WM_LANG_CHANGED (WM_USER + 10200)
|
|
#define WM_WINDOW_ACTIVATE (WM_USER + 10300)
|
|
|
|
typedef BOOL (WINAPI *PKBSWITCHSETHOOKS) (VOID);
|
|
typedef VOID (WINAPI *PKBSWITCHDELETEHOOKS) (VOID);
|
|
|
|
TCHAR szKbSwitcherName[] = _T("kbswitcher");
|