ReactOS 0.4.16-dev-1535-gea189a3
|
#include "kbswitch.h"
#include <shlobj.h>
#include <shlwapi_undoc.h>
#include <undocuser.h>
#include <imm.h>
#include <immdev.h>
#include <imm32_undoc.h>
#include <assert.h>
#include "imemenu.h"
#include <wine/debug.h>
Go to the source code of this file.
Classes | |
struct | tagSPECIAL_ID |
struct | tagLOAD_ICON |
Macros | |
#define | WM_NOTIFYICONMSG 0x8064 |
#define | WM_PENICONMSG 0x8065 |
#define | NOTIFY_ICON_ID_LANGUAGE 223 |
#define | NOTIFY_ICON_ID_SYSTEM_PEN 224 |
#define | TIMER_ID_LANG_CHANGED_DELAYED 0x10000 |
#define | TIMER_LANG_CHANGED_DELAY 200 |
#define | IME_HKL_MASK 0xF000FFFF |
#define | IS_KOREAN_IME_HKL(hKL) ((HandleToUlong(hKL) & IME_HKL_MASK) == 0xE0000412) |
#define | MAX_KLS 64 |
#define | LAYOUTF_FAR_EAST 0x1 |
#define | LAYOUTF_IME_ICON 0x2 |
#define | LAYOUTF_TOOLTIP_ATOM 0x4 |
#define | LAYOUTF_REMOVE_LEFT_DEF_MENU 0x8 |
#define | LAYOUTF_REMOVE_RIGHT_DEF_MENU 0x10 |
#define | MAX_SPECIAL_IDS 256 |
#define | IFN_KbSwitchSetHooks 1 |
#define | IFN_SetPenMenuData 14 |
Typedefs | |
typedef BOOL(APIENTRY * | FN_KbSwitchSetHooks) (BOOL bDoHook) |
typedef VOID(APIENTRY * | FN_SetPenMenuData) (UINT nID, DWORD_PTR dwItemData) |
typedef struct tagSPECIAL_ID | SPECIAL_ID |
typedef struct tagSPECIAL_ID * | PSPECIAL_ID |
typedef struct tagLOAD_ICON | LOAD_ICON |
typedef struct tagLOAD_ICON * | PLOAD_ICON |
Variables | |
FN_KbSwitchSetHooks | KbSwitchSetHooks = NULL |
FN_SetPenMenuData | SetPenMenuData = NULL |
HINSTANCE | g_hInst = NULL |
HMODULE | g_hHookDLL = NULL |
HICON | g_hTrayIcon = NULL |
HWND | g_hwndLastActive = NULL |
UINT | g_iKL = 0 |
UINT | g_cKLs = 0 |
HKL | g_ahKLs [MAX_KLS] = { NULL } |
WORD | g_aiSysPenIcons [MAX_KLS] = { 0 } |
WORD | g_anToolTipAtoms [MAX_KLS] = { 0 } |
HICON | g_ahSysPenIcons [MAX_KLS] = { NULL } |
BOOL | g_bSysPenNotifyAdded = FALSE |
BYTE | g_anFlags [MAX_KLS] = { 0 } |
UINT | g_uTaskbarRestartMsg = 0 |
UINT | g_uShellHookMessage = 0 |
HWND | g_hTrayWnd = NULL |
HWND | g_hTrayNotifyWnd = NULL |
SPECIAL_ID | g_SpecialIds [MAX_SPECIAL_IDS] |
INT | g_cSpecialIds = 0 |
#define IFN_KbSwitchSetHooks 1 |
Definition at line 845 of file kbswitch.c.
#define IFN_SetPenMenuData 14 |
Definition at line 846 of file kbswitch.c.
#define IME_HKL_MASK 0xF000FFFF |
Definition at line 45 of file kbswitch.c.
#define IS_KOREAN_IME_HKL | ( | hKL | ) | ((HandleToUlong(hKL) & IME_HKL_MASK) == 0xE0000412) |
Definition at line 46 of file kbswitch.c.
#define LAYOUTF_FAR_EAST 0x1 |
Definition at line 74 of file kbswitch.c.
#define LAYOUTF_IME_ICON 0x2 |
Definition at line 75 of file kbswitch.c.
#define LAYOUTF_REMOVE_LEFT_DEF_MENU 0x8 |
Definition at line 77 of file kbswitch.c.
#define LAYOUTF_REMOVE_RIGHT_DEF_MENU 0x10 |
Definition at line 78 of file kbswitch.c.
#define LAYOUTF_TOOLTIP_ATOM 0x4 |
Definition at line 76 of file kbswitch.c.
#define MAX_KLS 64 |
Definition at line 48 of file kbswitch.c.
#define MAX_SPECIAL_IDS 256 |
Definition at line 94 of file kbswitch.c.
#define NOTIFY_ICON_ID_LANGUAGE 223 |
Definition at line 39 of file kbswitch.c.
#define NOTIFY_ICON_ID_SYSTEM_PEN 224 |
Definition at line 40 of file kbswitch.c.
#define TIMER_ID_LANG_CHANGED_DELAYED 0x10000 |
Definition at line 42 of file kbswitch.c.
#define TIMER_LANG_CHANGED_DELAY 200 |
Definition at line 43 of file kbswitch.c.
#define WM_NOTIFYICONMSG 0x8064 |
Definition at line 36 of file kbswitch.c.
#define WM_PENICONMSG 0x8065 |
Definition at line 37 of file kbswitch.c.
Definition at line 50 of file kbswitch.c.
Definition at line 51 of file kbswitch.c.
typedef struct tagLOAD_ICON LOAD_ICON |
typedef struct tagLOAD_ICON * PLOAD_ICON |
typedef struct tagSPECIAL_ID * PSPECIAL_ID |
typedef struct tagSPECIAL_ID SPECIAL_ID |
Definition at line 1459 of file kbswitch.c.
|
static |
Definition at line 770 of file kbswitch.c.
Referenced by KbSwitch_OnCommand(), and KbSwitch_OnCreate().
Definition at line 702 of file kbswitch.c.
Referenced by KbSwitch_OnCreate(), and KbSwitch_OnDefault().
Definition at line 442 of file kbswitch.c.
Referenced by BuildLeftPopupMenu(), and FileTypesDlg_OnItemChanging().
Definition at line 808 of file kbswitch.c.
Referenced by KbSwitch_OnNotifyIconMsg().
Definition at line 605 of file kbswitch.c.
Referenced by AddTrayIcon(), BuildLeftPopupMenu(), and UpdateTrayIcon().
Definition at line 871 of file kbswitch.c.
Referenced by KbSwitch_OnDestroy().
Definition at line 542 of file kbswitch.c.
Referenced by KbSwitch_OnDestroy(), and UpdatePenIcon().
Definition at line 727 of file kbswitch.c.
Referenced by KbSwitch_OnDestroy().
Definition at line 215 of file kbswitch.c.
Referenced by KbSwitch_OnDestroy(), and UpdateLayoutList().
|
static |
Definition at line 402 of file kbswitch.c.
Referenced by FakeExtractIcon().
Definition at line 425 of file kbswitch.c.
Referenced by CreateTrayIcon(), and UpdatePenIcon().
Definition at line 193 of file kbswitch.c.
Referenced by GetHKLFromLayoutNum(), KbSwitch_OnTimer(), and UpdateLayoutList().
Definition at line 361 of file kbswitch.c.
Referenced by AddTrayIcon(), BuildLeftPopupMenu(), UpdatePenIcon(), and UpdateTrayIcon().
Definition at line 464 of file kbswitch.c.
Referenced by KbSwitch_OnPenIconMsg(), and LoadDefaultPenIcon().
Definition at line 152 of file kbswitch.c.
Referenced by BuildLeftPopupMenu(), GetKLIDFromLayoutNum(), UpdateLanguageDisplay(), and UpdatePenIcon().
Definition at line 308 of file kbswitch.c.
Referenced by ActivateLayout(), AddTrayIcon(), and GetLayoutName().
Definition at line 229 of file kbswitch.c.
Referenced by OnIndicatorMsg(), and UpdateLayoutList().
Definition at line 325 of file kbswitch.c.
Referenced by AddTrayIcon(), and BuildLeftPopupMenu().
Definition at line 888 of file kbswitch.c.
Referenced by UpdateLanguageDisplay().
Definition at line 314 of file kbswitch.c.
Referenced by CreateTrayIcon(), and LayoutList_ReadLayout().
Definition at line 181 of file kbswitch.c.
Referenced by GetActiveKL(), KbSwitch_OnPenIconMsg(), and UpdateLanguageDisplayCurrent().
Definition at line 1034 of file kbswitch.c.
Referenced by KbSwitch_OnPenIconMsg().
Definition at line 1250 of file kbswitch.c.
Referenced by WndProc().
Definition at line 946 of file kbswitch.c.
Referenced by WndProc().
Definition at line 1314 of file kbswitch.c.
Referenced by WndProc().
Definition at line 968 of file kbswitch.c.
Referenced by WndProc().
|
static |
Definition at line 1285 of file kbswitch.c.
Referenced by WndProc().
Definition at line 994 of file kbswitch.c.
Referenced by WndProc().
Definition at line 1082 of file kbswitch.c.
Referenced by WndProc().
Definition at line 980 of file kbswitch.c.
Referenced by WndProc().
|
static |
Definition at line 1296 of file kbswitch.c.
Referenced by WndProc().
Definition at line 492 of file kbswitch.c.
Referenced by UpdatePenIcon().
Definition at line 99 of file kbswitch.c.
Referenced by KbSwitch_OnCreate().
Definition at line 1339 of file kbswitch.c.
Referenced by WndProc().
Definition at line 927 of file kbswitch.c.
Referenced by KbSwitch_OnWindowActivate().
Definition at line 849 of file kbswitch.c.
Referenced by KbSwitch_OnCreate().
Definition at line 1059 of file kbswitch.c.
Referenced by KbSwitch_OnPenIconMsg().
Definition at line 902 of file kbswitch.c.
Referenced by KbSwitch_OnTimer(), and UpdateLanguageDisplayCurrent().
Definition at line 917 of file kbswitch.c.
Referenced by KbSwitch_OnWindowActivate().
Definition at line 239 of file kbswitch.c.
Referenced by KbSwitch_OnCreate(), KbSwitch_OnDefault(), KbSwitch_OnNotifyIconMsg(), KbSwitch_OnTimer(), and UpdateLanguageDisplayCurrent().
Definition at line 555 of file kbswitch.c.
Referenced by KbSwitch_OnCreate(), KbSwitch_OnDefault(), KbSwitch_OnTimer(), OnIndicatorMsg(), and UpdateLanguageDisplayCurrent().
Definition at line 741 of file kbswitch.c.
Referenced by ActivateLayout(), AddJobW(), StartDocPrinterW(), and UpdateLanguageDisplay().
Definition at line 81 of file kbswitch.c.
Referenced by KbSwitch_OnCreate(), and KbSwitch_OnDefault().
WINE_DEFAULT_DEBUG_CHANNEL | ( | internat | ) |
Definition at line 1400 of file kbswitch.c.
Referenced by _tWinMain().
Definition at line 62 of file kbswitch.c.
Referenced by BuildLeftPopupMenu(), GetHKLFromLayoutNum(), GetLayoutIndexFromHKL(), GetLayoutNum(), KbSwitch_OnPenIconMsg(), UpdateLayoutList(), and UpdatePenIcon().
Definition at line 65 of file kbswitch.c.
Referenced by DeletePenIcon(), DestroyPenIcons(), UpdateLayoutList(), and UpdatePenIcon().
Definition at line 63 of file kbswitch.c.
Referenced by OnIndicatorMsg(), UpdateLayoutList(), and UpdatePenIcon().
Definition at line 67 of file kbswitch.c.
Referenced by KbSwitch_OnPenIconMsg(), OnIndicatorMsg(), UpdateLayoutList(), and UpdatePenIcon().
Definition at line 64 of file kbswitch.c.
Referenced by OnIndicatorMsg(), and UpdatePenIcon().
Definition at line 66 of file kbswitch.c.
Referenced by DeletePenNotifyIcon(), and UpdatePenIcon().
UINT g_cKLs = 0 |
Definition at line 61 of file kbswitch.c.
Referenced by ActivateLayout(), BuildLeftPopupMenu(), DestroyPenIcons(), GetHKLFromLayoutNum(), GetLayoutIndexFromHKL(), GetLayoutNum(), OnIndicatorMsg(), and UpdateLayoutList().
INT g_cSpecialIds = 0 |
Definition at line 97 of file kbswitch.c.
Referenced by GetKLIDFromHKL(), and LoadSpecialIds().
Definition at line 57 of file kbswitch.c.
Referenced by DeleteHooks(), LoadDefaultPenIcon(), and SetHooks().
Definition at line 56 of file kbswitch.c.
Referenced by _tWinMain(), CUIFBalloonWindow::AddButton(), UIComposition::CreateCompositionWindow(), CLoaderWnd::CreateWnd(), CLoaderWnd::Init(), CCompButtonFrameWindow::Init(), CDefCompFrameWindow::Init(), KbSwitch_OnNotifyIconMsg(), KbSwitch_OnPenIconMsg(), RegisterImeClass(), and UnregisterImeClass().
Definition at line 58 of file kbswitch.c.
Referenced by AddTrayIcon(), DeleteTrayIcon(), and UpdateTrayIcon().
Definition at line 71 of file kbswitch.c.
Referenced by KbSwitch_OnNotifyIconMsg(), KbSwitch_OnPenIconMsg(), and UpdateTrayInfo().
Definition at line 70 of file kbswitch.c.
Referenced by UpdateTrayInfo().
Definition at line 59 of file kbswitch.c.
Referenced by GetTargetWindow(), KbSwitch_OnCommand(), KbSwitch_OnPenIconMsg(), LoadDefaultPenIcon(), and RememberLastActive().
UINT g_iKL = 0 |
Definition at line 60 of file kbswitch.c.
Referenced by ActivateLayout(), AddTrayIcon(), BuildLeftPopupMenu(), KbSwitch_OnCreate(), KbSwitch_OnDefault(), KbSwitch_OnPenIconMsg(), KbSwitch_OnTimer(), OnIndicatorMsg(), UpdateLanguageDisplay(), UpdateLanguageDisplayCurrent(), and UpdateLayoutList().
SPECIAL_ID g_SpecialIds[MAX_SPECIAL_IDS] |
Definition at line 96 of file kbswitch.c.
Referenced by GetKLIDFromHKL(), and LoadSpecialIds().
UINT g_uShellHookMessage = 0 |
Definition at line 69 of file kbswitch.c.
Referenced by _tWinMain(), and KbSwitch_OnDefault().
UINT g_uTaskbarRestartMsg = 0 |
Definition at line 68 of file kbswitch.c.
Referenced by KbSwitch_OnCreate(), and KbSwitch_OnDefault().
FN_KbSwitchSetHooks KbSwitchSetHooks = NULL |
Definition at line 53 of file kbswitch.c.
Referenced by DeleteHooks(), and SetHooks().
FN_SetPenMenuData SetPenMenuData = NULL |
Definition at line 54 of file kbswitch.c.
Referenced by KbSwitch_OnPenIconMsg(), and SetHooks().