ReactOS 0.4.16-dev-311-g9382aa2
ui.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CDefCompFrameGripper
 
class  CCompFinalizeButton
 
class  CCompFrameWindow
 
class  CCompButtonFrameWindow
 
class  CDefCompFrameWindow
 
struct  CPolyText
 
struct  COMPWND
 
class  UIComposition
 
struct  UI
 

Functions

BOOL IsMsImeMessage (_In_ UINT uMsg)
 @implemented
 
BOOL RegisterMSIMEMessage (VOID)
 @implemented
 
EXTERN_C LRESULT CALLBACK UIWndProc (_In_ HWND hWnd, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 @implemented
 
BOOL RegisterImeClass (VOID)
 @implemented
 
VOID UnregisterImeClass (VOID)
 @implemented
 

Variables

UINT WM_MSIME_SERVICE
 
UINT WM_MSIME_UIREADY
 
UINT WM_MSIME_RECONVERTREQUEST
 
UINT WM_MSIME_RECONVERT
 
UINT WM_MSIME_DOCUMENTFEED
 
UINT WM_MSIME_QUERYPOSITION
 
UINT WM_MSIME_MODEBIAS
 
UINT WM_MSIME_SHOWIMEPAD
 
UINT WM_MSIME_MOUSE
 
UINT WM_MSIME_KEYMAP
 

Function Documentation

◆ IsMsImeMessage()

BOOL IsMsImeMessage ( _In_ UINT  uMsg)

@implemented

Definition at line 26 of file ui.cpp.

27{
28 return (uMsg == WM_MSIME_SERVICE ||
29 uMsg == WM_MSIME_UIREADY ||
31 uMsg == WM_MSIME_RECONVERT ||
32 uMsg == WM_MSIME_DOCUMENTFEED ||
33 uMsg == WM_MSIME_QUERYPOSITION ||
34 uMsg == WM_MSIME_MODEBIAS ||
35 uMsg == WM_MSIME_SHOWIMEPAD ||
36 uMsg == WM_MSIME_MOUSE ||
37 uMsg == WM_MSIME_KEYMAP);
38}
UINT WM_MSIME_RECONVERTREQUEST
Definition: ui.cpp:16
UINT WM_MSIME_DOCUMENTFEED
Definition: ui.cpp:18
UINT WM_MSIME_UIREADY
Definition: ui.cpp:15
UINT WM_MSIME_SHOWIMEPAD
Definition: ui.cpp:21
UINT WM_MSIME_MODEBIAS
Definition: ui.cpp:20
UINT WM_MSIME_KEYMAP
Definition: ui.cpp:23
UINT WM_MSIME_RECONVERT
Definition: ui.cpp:17
UINT WM_MSIME_SERVICE
Definition: ui.cpp:14
UINT WM_MSIME_MOUSE
Definition: ui.cpp:22
UINT WM_MSIME_QUERYPOSITION
Definition: ui.cpp:19

Referenced by CtfImeDispatchDefImeMessage(), and CIMEUIWindowHandler::ImeUIWndProcWorker().

◆ RegisterImeClass()

BOOL RegisterImeClass ( VOID  )

@implemented

Definition at line 1356 of file ui.cpp.

1357{
1358 WNDCLASSEXW wcx;
1359
1360 if (!GetClassInfoExW(g_hInst, L"MSCTFIME UI", &wcx))
1361 {
1362 ZeroMemory(&wcx, sizeof(wcx));
1363 wcx.cbSize = sizeof(WNDCLASSEXW);
1365 wcx.hIcon = LoadIconW(0, (LPCWSTR)IDC_ARROW);
1366 wcx.hInstance = g_hInst;
1369 wcx.style = CS_IME | CS_GLOBALCLASS;
1370 wcx.lpfnWndProc = UIWndProc;
1371 wcx.lpszClassName = L"MSCTFIME UI";
1372 if (!RegisterClassExW(&wcx))
1373 return FALSE;
1374 }
1375
1376 if (!GetClassInfoExW(g_hInst, L"MSCTFIME Composition", &wcx))
1377 {
1378 ZeroMemory(&wcx, sizeof(wcx));
1379 wcx.cbSize = sizeof(WNDCLASSEXW);
1381 wcx.hIcon = NULL;
1382 wcx.hInstance = g_hInst;
1387 wcx.lpszClassName = L"MSCTFIME Composition";
1388 if (!RegisterClassExW(&wcx))
1389 return FALSE;
1390 }
1391
1392 return TRUE;
1393}
static LRESULT CALLBACK CompWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
@unimplemented
Definition: ui.cpp:780
HINSTANCE g_hInst
Definition: ctfmon.cpp:23
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define L(x)
Definition: ntvdm.h:50
LPCWSTR lpszClassName
Definition: winuser.h:3229
HBRUSH hbrBackground
Definition: winuser.h:3227
WNDPROC lpfnWndProc
Definition: winuser.h:3221
UINT cbSize
Definition: winuser.h:3219
int cbWndExtra
Definition: winuser.h:3223
HCURSOR hCursor
Definition: winuser.h:3226
HINSTANCE hInstance
Definition: winuser.h:3224
UINT style
Definition: winuser.h:3220
HICON hIcon
Definition: winuser.h:3225
#define UI_GWLP_SIZE
Definition: ui.cpp:874
#define UICOMP_GWLP_SIZE
Definition: ui.cpp:455
EXTERN_C LRESULT CALLBACK UIWndProc(_In_ HWND hWnd, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
@implemented
Definition: ui.cpp:1344
#define ZeroMemory
Definition: winbase.h:1737
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define NULL_BRUSH
Definition: wingdi.h:901
#define CS_VREDRAW
Definition: winuser.h:658
#define CS_IME
Definition: winuser.h:659
#define CS_HREDRAW
Definition: winuser.h:653
#define IDC_ARROW
Definition: winuser.h:687
BOOL WINAPI GetClassInfoExW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _Out_ LPWNDCLASSEXW)
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2157
ATOM WINAPI RegisterClassExW(_In_ CONST WNDCLASSEXW *)
#define IDC_IBEAM
Definition: winuser.h:688
#define CS_GLOBALCLASS
Definition: winuser.h:652
struct _WNDCLASSEXW WNDCLASSEXW
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName)
Definition: cursoricon.c:2127
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185

Referenced by AttachIME().

◆ RegisterMSIMEMessage()

BOOL RegisterMSIMEMessage ( VOID  )

@implemented

Definition at line 41 of file ui.cpp.

42{
43 // Using ANSI (A) version here can reduce binary size.
46 WM_MSIME_RECONVERTREQUEST = RegisterWindowMessageA("MSIMEReconvertRequest");
48 WM_MSIME_DOCUMENTFEED = RegisterWindowMessageA("MSIMEDocumentFeed");
49 WM_MSIME_QUERYPOSITION = RegisterWindowMessageA("MSIMEQueryPosition");
52 WM_MSIME_MOUSE = RegisterWindowMessageA("MSIMEMouseOperation");
54 return (WM_MSIME_SERVICE &&
64}
UINT WINAPI RegisterWindowMessageA(_In_ LPCSTR)

Referenced by AttachIME().

◆ UIWndProc()

EXTERN_C LRESULT CALLBACK UIWndProc ( _In_ HWND  hWnd,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

@implemented

Definition at line 1344 of file ui.cpp.

1349{
1351}
HWND hWnd
Definition: settings.c:17
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
static LRESULT CALLBACK ImeUIWndProcWorker(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
@implemented
Definition: ui.cpp:1233

Referenced by RegisterImeClass().

◆ UnregisterImeClass()

VOID UnregisterImeClass ( VOID  )

@implemented

Definition at line 1396 of file ui.cpp.

1397{
1398 WNDCLASSEXW wcx;
1399
1400 GetClassInfoExW(g_hInst, L"MSCTFIME UI", &wcx);
1401 UnregisterClassW(L"MSCTFIME UI", g_hInst);
1402 DestroyIcon(wcx.hIcon);
1403 DestroyIcon(wcx.hIconSm);
1404
1405 GetClassInfoExW(g_hInst, L"MSCTFIME Composition", &wcx);
1406 UnregisterClassW(L"MSCTFIME Composition", g_hInst);
1407 DestroyIcon(wcx.hIcon);
1408 DestroyIcon(wcx.hIconSm);
1409}
HICON hIconSm
Definition: winuser.h:3230
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
BOOL WINAPI DestroyIcon(_In_ HICON)
Definition: cursoricon.c:2105

Referenced by DetachIME().

Variable Documentation

◆ WM_MSIME_DOCUMENTFEED

UINT WM_MSIME_DOCUMENTFEED
extern

Definition at line 18 of file ui.cpp.

Referenced by IsMsImeMessage(), RegisterMSIMEMessage(), and test_ImmIsUIMessage().

◆ WM_MSIME_KEYMAP

UINT WM_MSIME_KEYMAP
extern

Definition at line 23 of file ui.cpp.

Referenced by IsMsImeMessage(), and RegisterMSIMEMessage().

◆ WM_MSIME_MODEBIAS

UINT WM_MSIME_MODEBIAS
extern

◆ WM_MSIME_MOUSE

UINT WM_MSIME_MOUSE
extern

◆ WM_MSIME_QUERYPOSITION

UINT WM_MSIME_QUERYPOSITION
extern

Definition at line 19 of file ui.cpp.

Referenced by IsMsImeMessage(), RegisterMSIMEMessage(), and test_ImmIsUIMessage().

◆ WM_MSIME_RECONVERT

UINT WM_MSIME_RECONVERT
extern

◆ WM_MSIME_RECONVERTREQUEST

UINT WM_MSIME_RECONVERTREQUEST
extern

◆ WM_MSIME_SERVICE

UINT WM_MSIME_SERVICE
extern

◆ WM_MSIME_SHOWIMEPAD

UINT WM_MSIME_SHOWIMEPAD
extern

Definition at line 21 of file ui.cpp.

Referenced by IsMsImeMessage(), and RegisterMSIMEMessage().

◆ WM_MSIME_UIREADY

UINT WM_MSIME_UIREADY
extern

Definition at line 15 of file ui.cpp.

Referenced by IsMsImeMessage(), and RegisterMSIMEMessage().