|
ReactOS 0.4.17-dev-470-gf9e3448
|
#include "kbswitch.h"#include <shlobj.h>#include <shlwapi.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 855 of file kbswitch.c.
| #define IFN_SetPenMenuData 14 |
Definition at line 856 of file kbswitch.c.
| #define IME_HKL_MASK 0xF000FFFF |
Definition at line 46 of file kbswitch.c.
| #define IS_KOREAN_IME_HKL | ( | hKL | ) | ((HandleToUlong(hKL) & IME_HKL_MASK) == 0xE0000412) |
Definition at line 47 of file kbswitch.c.
| #define LAYOUTF_FAR_EAST 0x1 |
Definition at line 75 of file kbswitch.c.
| #define LAYOUTF_IME_ICON 0x2 |
Definition at line 76 of file kbswitch.c.
| #define LAYOUTF_REMOVE_LEFT_DEF_MENU 0x8 |
Definition at line 78 of file kbswitch.c.
| #define LAYOUTF_REMOVE_RIGHT_DEF_MENU 0x10 |
Definition at line 79 of file kbswitch.c.
| #define LAYOUTF_TOOLTIP_ATOM 0x4 |
Definition at line 77 of file kbswitch.c.
| #define MAX_KLS 64 |
Definition at line 49 of file kbswitch.c.
| #define MAX_SPECIAL_IDS 256 |
Definition at line 107 of file kbswitch.c.
| #define NOTIFY_ICON_ID_LANGUAGE 223 |
Definition at line 40 of file kbswitch.c.
| #define NOTIFY_ICON_ID_SYSTEM_PEN 224 |
Definition at line 41 of file kbswitch.c.
| #define TIMER_ID_LANG_CHANGED_DELAYED 0x10000 |
Definition at line 43 of file kbswitch.c.
| #define TIMER_LANG_CHANGED_DELAY 200 |
Definition at line 44 of file kbswitch.c.
| #define WM_NOTIFYICONMSG 0x8064 |
Definition at line 37 of file kbswitch.c.
| #define WM_PENICONMSG 0x8065 |
Definition at line 38 of file kbswitch.c.
Definition at line 51 of file kbswitch.c.
Definition at line 52 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 1472 of file kbswitch.c.
|
static |
Definition at line 780 of file kbswitch.c.
Referenced by KbSwitch_OnCommand(), and KbSwitch_OnCreate().
Definition at line 712 of file kbswitch.c.
Referenced by KbSwitch_OnCreate(), and KbSwitch_OnDefault().
Definition at line 455 of file kbswitch.c.
Referenced by BuildLeftPopupMenu(), and FileTypesDlg_OnItemChanging().
Definition at line 818 of file kbswitch.c.
Referenced by KbSwitch_OnNotifyIconMsg().
Definition at line 615 of file kbswitch.c.
Referenced by AddTrayIcon(), BuildLeftPopupMenu(), and UpdateTrayIcon().
Definition at line 881 of file kbswitch.c.
Referenced by KbSwitch_OnDestroy().
Definition at line 552 of file kbswitch.c.
Referenced by KbSwitch_OnDestroy(), and UpdatePenIcon().
Definition at line 737 of file kbswitch.c.
Referenced by KbSwitch_OnDestroy().
Definition at line 228 of file kbswitch.c.
Referenced by KbSwitch_OnDestroy(), and UpdateLayoutList().
|
static |
Definition at line 415 of file kbswitch.c.
Referenced by FakeExtractIcon().
Definition at line 438 of file kbswitch.c.
Referenced by CreateTrayIcon(), and UpdatePenIcon().
Definition at line 206 of file kbswitch.c.
Referenced by GetHKLFromLayoutNum(), KbSwitch_OnTimer(), and UpdateLayoutList().
Definition at line 374 of file kbswitch.c.
Referenced by AddTrayIcon(), BuildLeftPopupMenu(), UpdatePenIcon(), and UpdateTrayIcon().
Definition at line 477 of file kbswitch.c.
Referenced by LoadDefaultPenIcon().
Definition at line 165 of file kbswitch.c.
Referenced by BuildLeftPopupMenu(), GetKLIDFromLayoutNum(), UpdateLanguageDisplay(), and UpdatePenIcon().
Definition at line 321 of file kbswitch.c.
Referenced by ActivateLayout(), AddTrayIcon(), and GetLayoutName().
Definition at line 242 of file kbswitch.c.
Referenced by OnIndicatorMsg(), and UpdateLayoutList().
Definition at line 338 of file kbswitch.c.
Referenced by AddTrayIcon(), and BuildLeftPopupMenu().
Definition at line 898 of file kbswitch.c.
Referenced by UpdateLanguageDisplay().
Definition at line 327 of file kbswitch.c.
Referenced by CreateTrayIcon(), and LayoutList_ReadLayout().
Definition at line 194 of file kbswitch.c.
Referenced by GetActiveKL(), KbSwitch_OnPenIconMsg(), and UpdateLanguageDisplayCurrent().
Definition at line 82 of file kbswitch.c.
Referenced by GetImeStatus(), and KbSwitch_OnPenIconMsg().
Definition at line 1044 of file kbswitch.c.
Referenced by KbSwitch_OnPenIconMsg().
Definition at line 1263 of file kbswitch.c.
Referenced by WndProc().
Definition at line 956 of file kbswitch.c.
Referenced by WndProc().
Definition at line 1327 of file kbswitch.c.
Referenced by WndProc().
Definition at line 978 of file kbswitch.c.
Referenced by WndProc().
|
static |
Definition at line 1298 of file kbswitch.c.
Referenced by WndProc().
Definition at line 1004 of file kbswitch.c.
Referenced by WndProc().
Definition at line 1092 of file kbswitch.c.
Referenced by WndProc().
Definition at line 990 of file kbswitch.c.
Referenced by WndProc().
|
static |
Definition at line 1309 of file kbswitch.c.
Referenced by WndProc().
Definition at line 502 of file kbswitch.c.
Referenced by UpdatePenIcon().
Definition at line 112 of file kbswitch.c.
Referenced by KbSwitch_OnCreate().
Definition at line 1352 of file kbswitch.c.
Referenced by WndProc().
Definition at line 937 of file kbswitch.c.
Referenced by KbSwitch_OnWindowActivate().
Definition at line 859 of file kbswitch.c.
Referenced by KbSwitch_OnCreate().
Definition at line 1069 of file kbswitch.c.
Referenced by KbSwitch_OnPenIconMsg().
Definition at line 912 of file kbswitch.c.
Referenced by KbSwitch_OnTimer(), and UpdateLanguageDisplayCurrent().
Definition at line 927 of file kbswitch.c.
Referenced by KbSwitch_OnWindowActivate().
Definition at line 252 of file kbswitch.c.
Referenced by KbSwitch_OnCreate(), KbSwitch_OnDefault(), KbSwitch_OnNotifyIconMsg(), KbSwitch_OnTimer(), and UpdateLanguageDisplayCurrent().
Definition at line 565 of file kbswitch.c.
Referenced by KbSwitch_OnCreate(), KbSwitch_OnDefault(), KbSwitch_OnTimer(), OnIndicatorMsg(), and UpdateLanguageDisplayCurrent().
Definition at line 751 of file kbswitch.c.
Referenced by ActivateLayout(), AddJobW(), StartDocPrinterW(), and UpdateLanguageDisplay().
Definition at line 94 of file kbswitch.c.
Referenced by KbSwitch_OnCreate(), and KbSwitch_OnDefault().
| WINE_DEFAULT_DEBUG_CHANNEL | ( | internat | ) |
Definition at line 1413 of file kbswitch.c.
Referenced by _tWinMain().
Definition at line 63 of file kbswitch.c.
Referenced by BuildLeftPopupMenu(), GetHKLFromLayoutNum(), GetLayoutIndexFromHKL(), GetLayoutNum(), KbSwitch_OnPenIconMsg(), UpdateLayoutList(), and UpdatePenIcon().
Definition at line 66 of file kbswitch.c.
Referenced by DeletePenIcon(), DestroyPenIcons(), UpdateLayoutList(), and UpdatePenIcon().
Definition at line 64 of file kbswitch.c.
Referenced by OnIndicatorMsg(), UpdateLayoutList(), and UpdatePenIcon().
Definition at line 68 of file kbswitch.c.
Referenced by KbSwitch_OnPenIconMsg(), OnIndicatorMsg(), UpdateLayoutList(), and UpdatePenIcon().
Definition at line 65 of file kbswitch.c.
Referenced by OnIndicatorMsg(), and UpdatePenIcon().
Definition at line 67 of file kbswitch.c.
Referenced by DeletePenNotifyIcon(), and UpdatePenIcon().
| UINT g_cKLs = 0 |
Definition at line 62 of file kbswitch.c.
Referenced by ActivateLayout(), BuildLeftPopupMenu(), DestroyPenIcons(), GetHKLFromLayoutNum(), GetLayoutIndexFromHKL(), GetLayoutNum(), OnIndicatorMsg(), and UpdateLayoutList().
| INT g_cSpecialIds = 0 |
Definition at line 110 of file kbswitch.c.
Referenced by GetKLIDFromHKL(), and LoadSpecialIds().
Definition at line 58 of file kbswitch.c.
Referenced by DeleteHooks(), LoadDefaultPenIcon(), and SetHooks().
Definition at line 57 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 59 of file kbswitch.c.
Referenced by AddTrayIcon(), DeleteTrayIcon(), and UpdateTrayIcon().
Definition at line 72 of file kbswitch.c.
Referenced by KbSwitch_OnNotifyIconMsg(), KbSwitch_OnPenIconMsg(), and UpdateTrayInfo().
Definition at line 71 of file kbswitch.c.
Referenced by UpdateTrayInfo().
Definition at line 60 of file kbswitch.c.
Referenced by GetTargetWindow(), KbSwitch_OnCommand(), KbSwitch_OnPenIconMsg(), LoadDefaultPenIcon(), and RememberLastActive().
| UINT g_iKL = 0 |
Definition at line 61 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 109 of file kbswitch.c.
Referenced by GetKLIDFromHKL(), and LoadSpecialIds().
| UINT g_uShellHookMessage = 0 |
Definition at line 70 of file kbswitch.c.
Referenced by _tWinMain(), and KbSwitch_OnDefault().
| UINT g_uTaskbarRestartMsg = 0 |
Definition at line 69 of file kbswitch.c.
Referenced by KbSwitch_OnCreate(), and KbSwitch_OnDefault().
| FN_KbSwitchSetHooks KbSwitchSetHooks = NULL |
Definition at line 54 of file kbswitch.c.
Referenced by DeleteHooks(), and SetHooks().
| FN_SetPenMenuData SetPenMenuData = NULL |
Definition at line 55 of file kbswitch.c.
Referenced by KbSwitch_OnPenIconMsg(), and SetHooks().