104void CCompFinalizeButton::OnLeftClick()
134 RECT rc = { 0, 0, 0, 0 };
241 ret = partSize.
cx + 4;
245 return ((
ret < 0) ? 5 :
ret);
273 rc = { 2, 3, GripperWidth + 2,
nHeight + 7 };
280 GripperWidth +
nWidth + 4,
302 TEXT(
"SOFTWARE\\Microsoft\\CTF\\CUAS\\DefaultCompositionWindow"));
318 TEXT(
"SOFTWARE\\Microsoft\\CTF\\CUAS\\DefaultCompositionWindow"));
352 return ::PtInRect(&rc,
pt);
379 CUIFWindow::HandleMouseMsg(
uMsg,
x,
y);
396 pPolyText->
x += xDelta;
397 pPolyText->
y += yDelta;
412 for (iItem = 0; iItem < cItems; ++iItem)
417 if (pData1->
x == pData2->
x)
422 if (pData1->
y == pData2->
y)
454#define UICOMP_GWLP_INDEX 0
455#define UICOMP_GWLP_SIZE (UICOMP_GWLP_INDEX + sizeof(INT))
574 for (
INT iCompStr = 0; iCompStr < 3; ++iCompStr)
621 for (
INT i = 0;
i < 4; ++
i)
676 *pdwCompStrLen = compStr.
get().dwCompStrLen;
802 DWORD dwStyle = imcLock.
get().cfCompForm.dwStyle;
839 DWORD dwCompStrLen = 0;
848 for (
INT iCompStr = 0; iCompStr < 3; ++iCompStr)
859 for (
INT iCompStr = 0; iCompStr < 3; ++iCompStr)
872#define UI_GWLP_HIMC 0
873#define UI_GWLP_UI sizeof(HIMC)
874#define UI_GWLP_SIZE (UI_GWLP_UI + sizeof(UI*))
999 pContextOwnerServices->
AddRef();
1000 pContextOwnerServices->OnLayoutChange();
1001 pContextOwnerServices->Release();
1013 return imcLock.
m_hr;
1017 return imeContext.
m_hr;
1020 if (pCicIC &&
wParam == 0x10)
1035 return imcLock.
m_hr;
1071 if (
wParam == 0x10000000)
1085 if (!pCicIC || !pTLS)
1090 if (!pThreadMgr || !pProfile)
1094 pProfile->GetCodePageA(&uCodePage);
1132 return imcLock.
m_hr;
1135 return imeContext.
m_hr;
1149 return imcLock.
m_hr;
1152 return imeContext.
m_hr;
1256 case WM_IME_STARTCOMPOSITION:
1257 case WM_IME_COMPOSITION:
1258 case WM_IME_ENDCOMPOSITION:
1269 case WM_IME_STARTCOMPOSITION:
1274 case WM_IME_COMPOSITION:
1284 case WM_IME_ENDCOMPOSITION:
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
static void cicMemFree(LPVOID ptr)
static LPVOID cicMemReAlloc(LPVOID ptr, SIZE_T newSize)
static LPVOID cicMemAllocClear(SIZE_T size)
CCompFrameWindow(HIMC hIMC, DWORD style)
@implemented
CDefCompFrameGripper(CDefCompFrameWindow *pDefCompFrameWindow, LPCRECT prc, DWORD style)
@implemented
CDefCompFrameWindow * m_pDefCompFrameWindow
void MyScreenToClient(LPPOINT ppt, LPRECT prc)
@implemented
CDefCompFrameGripper * m_pGripper
void SetCompStrRect(INT nWidth, INT nHeight, BOOL bShow)
@implemented
void SavePosition()
@implemented
CDefCompFrameWindow(HIMC hIMC, DWORD style)
@implemented
INT GetGripperWidth()
@implemented
~CDefCompFrameWindow() override
@implemented
CCompFinalizeButton * m_pFinalizeButton
void LoadPosition()
@implemented
void SetModeBias(REFGUID rguid)
@implemented
GUID ConvertModeBias(LONG bias)
@implemented
STDMETHOD() GetThemeMargins(HDC hDC, int iStateId, int iPropId, LPRECT prc, MARGINS *pMargins)
HRESULT InternalOpenThemeData(HWND hWnd)
STDMETHOD() GetThemePartSize(HDC hDC, int iStateId, LPRECT prc, THEMESIZE eSize, SIZE *psz)
HRESULT EnsureThemeData(HWND hWnd)
UINT WPARAM LPARAM lParam
void Remove(size_t iItem, size_t cRemove=1)
void CreateCaret(HWND hWnd, SIZE size)
INPUTCONTEXTDX & get() const
ITfContextOwnerServices * m_pContextOwnerServices
HRESULT SetupReconvertString(CicIMCLock &imcLock, ITfThreadMgr_P *pThreadMgr, UINT uCodePage, UINT uMsg, BOOL bUndo)
@unimplemented
HRESULT DelayedReconvertFuncCall(CicIMCLock &imcLock)
@unimplemented
void ClearPrevCandidatePos()
HRESULT EscbClearDocFeedBuffer(CicIMCLock &imcLock, BOOL bFlag)
@unimplemented
HRESULT EndReconvertString(CicIMCLock &imcLock)
@unimplemented
HRESULT MsImeMouseHandler(DWORD dwUnknown58, DWORD dwUnknown59, UINT keys, CicIMCLock &imcLock)
@unimplemented
HRESULT GetLangId(_Out_ LANGID *pLangID)
@implemented
LSTATUS SetDword(LPCTSTR pszValueName, DWORD dwValue)
LSTATUS Open(HKEY hKey, LPCTSTR lpSubKey, REGSAM samDesired=KEY_READ)
LSTATUS Create(HKEY hKey, LPCTSTR lpSubKey)
LSTATUS QueryDword(LPCTSTR pszValueName, LPDWORD pdwValue)
DWORD m_dwSystemInfoFlags
ITfThreadMgr_P * m_pThreadMgr
static TLS * GetTLS()
@implemented
BOOL NonEACompositionEnabled()
@implemented
HRESULT UpdateCompositionRect(CicIMCLock &imcLock)
@unimplemented
INT GetLevelFromIMC(CicIMCLock &imcLock)
@implemented
static BOOL GetImeUIWndTextExtent(CicIMCLock &imcLock, LPARAM lParam)
@implemented
static BOOL InquireImeUIWndState(CicIMCLock &imcLock)
HRESULT DestroyCompositionWindow()
@implemented
HRESULT CreateDefFrameWnd(HWND hwndParent, HIMC hIMC)
@implemented
virtual ~UIComposition()
@implemented
void OnImeStartComposition(CicIMCLock &imcLock, HWND hUIWnd)
@unimplemented
LPWSTR GetCompStrBuffer(INT cchStr)
@implemented
HRESULT UpdateFont(CicIMCLock &imcLock)
@implemented
HRESULT OnImeSetContextAfter(CicIMCLock &imcLock)
@implemented
CCompButtonFrameWindow * m_pCompButtonFrameWindow
UIComposition(HWND hwndParent)
@unimplemented
static BOOL SendMessageToUI(CicIMCLock &imcLock, WPARAM wParam, LPARAM lParam)
HRESULT OnDestroy()
@implemented
void OnImeSetContext(CicIMCLock &imcLock, HWND hUIWnd, WPARAM wParam, LPARAM lParam)
@unimplemented
HRESULT OnImeNotifySetCompositionWindow(CicIMCLock &imcLock)
@implemented
HRESULT CreateCompositionWindow(CicIMCLock &imcLock, HWND hwndParent)
@implemented
CDefCompFrameWindow * m_pDefCompFrameWindow
HRESULT OnImeEndComposition()
@unimplemented
HRESULT UpdateShowCompWndFlag(CicIMCLock &imcLock, DWORD *pdwCompStrLen)
@implemented
HRESULT CreateCompButtonWnd(HWND hwndParent, HIMC hIMC)
@implemented
HRESULT OnImeCompositionUpdate(CicIMCLock &imcLock)
@implemented
void OnPaintTheme(WPARAM wParam)
@unimplemented
static LRESULT CALLBACK CompWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
@unimplemented
static LSTATUS(WINAPI *pRegDeleteTreeW)(HKEY
BOOL IsEALang(_In_opt_ LANGID LangID)
#define IDS_FINALIZE_STRING
HWND WINAPI ImmGetDefaultIMEWnd(HWND hWnd)
BOOL WINAPI ImmNotifyIME(HIMC hIMC, DWORD dwAction, DWORD dwIndex, DWORD_PTR dwValue)
HRESULT WINAPI GetThemeMargins(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, RECT *prc, MARGINS *pMargins)
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define CFS_FORCE_POSITION
#define IMN_SETCOMPOSITIONFONT
#define IMN_CLOSECANDIDATE
#define IMN_OPENCANDIDATE
#define IMN_SETCOMPOSITIONWINDOW
#define IMN_SETCANDIDATEPOS
#define IME_SYSINFO_WINLOGON
#define NI_COMPOSITIONSTR
HRESULT OnAttributeChange([in] REFGUID rguidAttribute)
static LRESULT CALLBACK ImeUIWndProcWorker(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
@implemented
static HRESULT CALLBACK ImeUIOnLayoutChange(LPARAM lParam)
@implemented
static HRESULT CALLBACK ImeUIPrivateHandler(UINT uMsg, WPARAM wParam, LPARAM lParam)
@implemented
static LRESULT CALLBACK ImeUIMsImeHandler(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
@implemented
static LRESULT CALLBACK ImeUINotifyHandler(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
@unimplemented
static LRESULT CALLBACK ImeUIMsImeModeBiasHandler(HWND hWnd, WPARAM wParam, LPARAM lParam)
@implemented
static LRESULT CALLBACK ImeUIMsImeReconvertRequest(HWND hWnd, WPARAM wParam, LPARAM lParam)
@implemented
static HRESULT CALLBACK ImeUIDelayedReconvertFuncCall(HWND hWnd)
@implemented
static HRESULT CALLBACK ImeUIMsImeMouseHandler(HWND hWnd, WPARAM wParam, LPARAM lParam)
@implemented
void _ClientToScreen(LPRECT prc)
@implemented
HRESULT RemoveLastLine(BOOL bHorizontal)
@implemented
CicArray< POLYTEXTW > m_PolyTextArray
CicArray< DWORD > m_ValueArray
HRESULT ShiftPolyText(INT xDelta, INT yDelta)
@implemented
POLYTEXTW * GetPolyAt(INT iItem)
@implemented
void RemoveAll()
@implemented
WCHAR lfFaceName[LF_FACESIZE]
virtual ~UI()
@implemented
void OnImeSetContext(CicIMCLock &imcLock, WPARAM wParam, LPARAM lParam)
@implemented
UI(HWND hWnd)
@implemented
void _Destroy()
@implemented
static void OnCreate(HWND hWnd)
@implemented
static void OnDestroy(HWND hWnd)
@implemented
HRESULT _Create()
@implemented
COMPOSITIONFORM cfCompForm
UINT WM_MSIME_RECONVERTREQUEST
UINT WM_MSIME_DOCUMENTFEED
BOOL RegisterImeClass(VOID)
@implemented
BOOL IsMsImeMessage(_In_ UINT uMsg)
@implemented
#define UICOMP_GWLP_INDEX
EXTERN_C LRESULT CALLBACK UIWndProc(_In_ HWND hWnd, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
@implemented
UINT WM_MSIME_QUERYPOSITION
BOOL RegisterMSIMEMessage(VOID)
@implemented
STDMETHODIMP_(void) CCompButtonFrameWindow
@implemented
VOID UnregisterImeClass(VOID)
@implemented
HRESULT WINAPI SetWindowTheme(_In_ HWND hwnd, _In_ LPCWSTR pszSubAppName, _In_ LPCWSTR pszSubIdList)
_Must_inspect_result_ _In_ WDFUSBDEVICE _In_opt_ WDFREQUEST _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_writes_opt_ NumCharacters PUSHORT _Inout_ PUSHORT _In_ UCHAR _In_opt_ USHORT LangID
HGDIOBJ WINAPI GetStockObject(_In_ int)
HFONT WINAPI CreateFontIndirectW(_In_ const LOGFONTW *)
#define HKEY_CURRENT_USER
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
BOOL WINAPI IsWindow(_In_opt_ HWND)
UINT WINAPI RegisterWindowMessageA(_In_ LPCSTR)
#define GetWindowLongPtrW
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
#define SW_SHOWNOACTIVATE
BOOL WINAPI GetClassInfoExW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _Out_ LPWNDCLASSEXW)
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
#define WM_IME_SETCONTEXT
BOOL WINAPI PtInRect(_In_ LPCRECT, _In_ POINT)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
ATOM WINAPI RegisterClassExW(_In_ CONST WNDCLASSEXW *)
HDC WINAPI GetDC(_In_opt_ HWND)
struct _WNDCLASSEXW WNDCLASSEXW
BOOL WINAPI OffsetRect(_Inout_ LPRECT, _In_ int, _In_ int)
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
#define MAKEINTRESOURCEW(i)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
#define SetWindowLongPtrW
BOOL WINAPI DestroyWindow(_In_ HWND)
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName)
BOOL WINAPI MoveWindow(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ BOOL)
BOOL WINAPI DestroyIcon(_In_ HICON)
BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT)
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level