ReactOS 0.4.16-dev-1308-gbf734eb
|
#include "kbswitch.h"
#include <shlobj.h>
#include <shlwapi_undoc.h>
#include <undocuser.h>
#include <imm.h>
#include <immdev.h>
#include <imm32_undoc.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 } |
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 835 of file kbswitch.c.
#define IFN_SetPenMenuData 14 |
Definition at line 836 of file kbswitch.c.
#define IME_HKL_MASK 0xF000FFFF |
Definition at line 44 of file kbswitch.c.
#define IS_KOREAN_IME_HKL | ( | hKL | ) | ((HandleToUlong(hKL) & IME_HKL_MASK) == 0xE0000412) |
Definition at line 45 of file kbswitch.c.
#define LAYOUTF_FAR_EAST 0x1 |
Definition at line 72 of file kbswitch.c.
#define LAYOUTF_IME_ICON 0x2 |
Definition at line 73 of file kbswitch.c.
#define LAYOUTF_REMOVE_LEFT_DEF_MENU 0x8 |
Definition at line 75 of file kbswitch.c.
#define LAYOUTF_REMOVE_RIGHT_DEF_MENU 0x10 |
Definition at line 76 of file kbswitch.c.
#define LAYOUTF_TOOLTIP_ATOM 0x4 |
Definition at line 74 of file kbswitch.c.
#define MAX_KLS 64 |
Definition at line 47 of file kbswitch.c.
#define MAX_SPECIAL_IDS 256 |
Definition at line 92 of file kbswitch.c.
#define NOTIFY_ICON_ID_LANGUAGE 223 |
Definition at line 38 of file kbswitch.c.
#define NOTIFY_ICON_ID_SYSTEM_PEN 224 |
Definition at line 39 of file kbswitch.c.
#define TIMER_ID_LANG_CHANGED_DELAYED 0x10000 |
Definition at line 41 of file kbswitch.c.
#define TIMER_LANG_CHANGED_DELAY 200 |
Definition at line 42 of file kbswitch.c.
#define WM_NOTIFYICONMSG 0x8064 |
Definition at line 35 of file kbswitch.c.
#define WM_PENICONMSG 0x8065 |
Definition at line 36 of file kbswitch.c.
Definition at line 49 of file kbswitch.c.
Definition at line 50 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 1445 of file kbswitch.c.
|
static |
Definition at line 760 of file kbswitch.c.
Referenced by KbSwitch_OnCommand(), and KbSwitch_OnCreate().
Definition at line 694 of file kbswitch.c.
Referenced by KbSwitch_OnCreate(), and KbSwitch_OnDefault().
Definition at line 440 of file kbswitch.c.
Referenced by BuildLeftPopupMenu(), and FileTypesDlg_OnItemChanging().
Definition at line 798 of file kbswitch.c.
Referenced by KbSwitch_OnNotifyIconMsg().
Definition at line 597 of file kbswitch.c.
Referenced by AddTrayIcon(), BuildLeftPopupMenu(), and UpdateTrayIcon().
Definition at line 861 of file kbswitch.c.
Referenced by KbSwitch_OnDestroy().
Definition at line 718 of file kbswitch.c.
Referenced by KbSwitch_OnDestroy().
Definition at line 213 of file kbswitch.c.
Referenced by KbSwitch_OnDestroy(), and UpdateLayoutList().
|
static |
Definition at line 400 of file kbswitch.c.
Referenced by FakeExtractIcon().
Definition at line 423 of file kbswitch.c.
Referenced by CreateTrayIcon(), and UpdatePenIcon().
Definition at line 191 of file kbswitch.c.
Referenced by GetHKLFromLayoutNum(), KbSwitch_OnTimer(), and UpdateLayoutList().
Definition at line 359 of file kbswitch.c.
Referenced by AddTrayIcon(), BuildLeftPopupMenu(), UpdatePenIcon(), and UpdateTrayIcon().
Definition at line 462 of file kbswitch.c.
Referenced by KbSwitch_OnPenIconMsg(), and LoadDefaultPenIcon().
Definition at line 150 of file kbswitch.c.
Referenced by BuildLeftPopupMenu(), GetKLIDFromLayoutNum(), UpdateLanguageDisplay(), and UpdatePenIcon().
Definition at line 306 of file kbswitch.c.
Referenced by ActivateLayout(), AddTrayIcon(), and GetLayoutName().
Definition at line 227 of file kbswitch.c.
Referenced by OnIndicatorMsg(), and UpdateLayoutList().
Definition at line 323 of file kbswitch.c.
Referenced by AddTrayIcon(), and BuildLeftPopupMenu().
Definition at line 878 of file kbswitch.c.
Referenced by UpdateLanguageDisplay().
Definition at line 312 of file kbswitch.c.
Referenced by CreateTrayIcon(), and LayoutList_ReadLayout().
Definition at line 179 of file kbswitch.c.
Referenced by GetActiveKL(), KbSwitch_OnPenIconMsg(), and UpdateLanguageDisplayCurrent().
Definition at line 1022 of file kbswitch.c.
Referenced by KbSwitch_OnPenIconMsg().
Definition at line 1238 of file kbswitch.c.
Referenced by WndProc().
Definition at line 935 of file kbswitch.c.
Referenced by WndProc().
Definition at line 1302 of file kbswitch.c.
Referenced by WndProc().
Definition at line 957 of file kbswitch.c.
Referenced by WndProc().
|
static |
Definition at line 1273 of file kbswitch.c.
Referenced by WndProc().
Definition at line 982 of file kbswitch.c.
Referenced by WndProc().
Definition at line 1070 of file kbswitch.c.
Referenced by WndProc().
Definition at line 968 of file kbswitch.c.
Referenced by WndProc().
|
static |
Definition at line 1284 of file kbswitch.c.
Referenced by WndProc().
Definition at line 490 of file kbswitch.c.
Referenced by UpdatePenIcon().
Definition at line 97 of file kbswitch.c.
Referenced by KbSwitch_OnCreate().
Definition at line 1327 of file kbswitch.c.
Referenced by WndProc().
Definition at line 916 of file kbswitch.c.
Referenced by KbSwitch_OnWindowActivate().
Definition at line 839 of file kbswitch.c.
Referenced by KbSwitch_OnCreate().
Definition at line 1047 of file kbswitch.c.
Referenced by KbSwitch_OnPenIconMsg().
Definition at line 892 of file kbswitch.c.
Referenced by KbSwitch_OnTimer(), and UpdateLanguageDisplayCurrent().
Definition at line 907 of file kbswitch.c.
Referenced by KbSwitch_OnWindowActivate().
Definition at line 237 of file kbswitch.c.
Referenced by KbSwitch_OnCreate(), KbSwitch_OnDefault(), KbSwitch_OnNotifyIconMsg(), and KbSwitch_OnTimer().
Definition at line 547 of file kbswitch.c.
Referenced by KbSwitch_OnCreate(), KbSwitch_OnDefault(), KbSwitch_OnTimer(), and OnIndicatorMsg().
Definition at line 731 of file kbswitch.c.
Referenced by ActivateLayout(), AddJobW(), StartDocPrinterW(), and UpdateLanguageDisplay().
Definition at line 79 of file kbswitch.c.
Referenced by KbSwitch_OnCreate(), and KbSwitch_OnDefault().
WINE_DEFAULT_DEBUG_CHANNEL | ( | internat | ) |
Definition at line 1388 of file kbswitch.c.
Referenced by _tWinMain().
Definition at line 61 of file kbswitch.c.
Referenced by BuildLeftPopupMenu(), GetHKLFromLayoutNum(), GetLayoutIndexFromHKL(), GetLayoutNum(), KbSwitch_OnPenIconMsg(), UpdateLayoutList(), and UpdatePenIcon().
Definition at line 64 of file kbswitch.c.
Referenced by DeletePenIcon(), DestroyPenIcons(), UpdateLayoutList(), and UpdatePenIcon().
Definition at line 62 of file kbswitch.c.
Referenced by OnIndicatorMsg(), UpdateLayoutList(), and UpdatePenIcon().
Definition at line 65 of file kbswitch.c.
Referenced by KbSwitch_OnPenIconMsg(), OnIndicatorMsg(), UpdateLayoutList(), and UpdatePenIcon().
Definition at line 63 of file kbswitch.c.
Referenced by OnIndicatorMsg(), and UpdatePenIcon().
UINT g_cKLs = 0 |
Definition at line 60 of file kbswitch.c.
Referenced by ActivateLayout(), BuildLeftPopupMenu(), DestroyPenIcons(), GetHKLFromLayoutNum(), GetLayoutIndexFromHKL(), GetLayoutNum(), OnIndicatorMsg(), and UpdateLayoutList().
INT g_cSpecialIds = 0 |
Definition at line 95 of file kbswitch.c.
Referenced by GetKLIDFromHKL(), and LoadSpecialIds().
Definition at line 56 of file kbswitch.c.
Referenced by DeleteHooks(), LoadDefaultPenIcon(), and SetHooks().
Definition at line 55 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 57 of file kbswitch.c.
Referenced by AddTrayIcon(), DeleteTrayIcon(), and UpdateTrayIcon().
Definition at line 69 of file kbswitch.c.
Referenced by KbSwitch_OnNotifyIconMsg(), KbSwitch_OnPenIconMsg(), and UpdateTrayInfo().
Definition at line 68 of file kbswitch.c.
Referenced by UpdateTrayInfo().
Definition at line 58 of file kbswitch.c.
Referenced by GetTargetWindow(), KbSwitch_OnCommand(), KbSwitch_OnPenIconMsg(), LoadDefaultPenIcon(), and RememberLastActive().
UINT g_iKL = 0 |
Definition at line 59 of file kbswitch.c.
Referenced by ActivateLayout(), AddTrayIcon(), BuildLeftPopupMenu(), KbSwitch_OnCreate(), KbSwitch_OnDefault(), KbSwitch_OnPenIconMsg(), KbSwitch_OnTimer(), OnIndicatorMsg(), UpdateLanguageDisplay(), and UpdateLayoutList().
SPECIAL_ID g_SpecialIds[MAX_SPECIAL_IDS] |
Definition at line 94 of file kbswitch.c.
Referenced by GetKLIDFromHKL(), and LoadSpecialIds().
UINT g_uShellHookMessage = 0 |
Definition at line 67 of file kbswitch.c.
Referenced by _tWinMain(), and KbSwitch_OnDefault().
UINT g_uTaskbarRestartMsg = 0 |
Definition at line 66 of file kbswitch.c.
Referenced by KbSwitch_OnCreate(), and KbSwitch_OnDefault().
FN_KbSwitchSetHooks KbSwitchSetHooks = NULL |
Definition at line 52 of file kbswitch.c.
Referenced by DeleteHooks(), and SetHooks().
FN_SetPenMenuData SetPenMenuData = NULL |
Definition at line 53 of file kbswitch.c.
Referenced by KbSwitch_OnPenIconMsg(), and SetHooks().