ReactOS 0.4.16-dev-1255-g6dd0406
mlng.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS msctf.dll
3 * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
4 * PURPOSE: Multi-language handling of Cicero
5 * COPYRIGHT: Copyright 2024 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
6 */
7
8#pragma once
9
10#define CTF_COMPAT_DELAY_FIRST_ACTIVATE 2
11
13{
19
20 void InitDesc();
21 void InitIcon();
22
25 void SetDesc(LPCWSTR pszDesc);
26};
27
28class CStaticIconList : public CicArray<HICON>
29{
30public:
31 static INT s_cx;
32 static INT s_cy;
33
35
36 void Init(INT cxIcon, INT cyIcon);
38 HICON ExtractIcon(INT iIcon);
39 void GetIconSize(INT *pcx, INT *pcy);
41 void RemoveAll(BOOL bNoLock);
42};
43
46
50 _In_ INT nWidth,
51 _In_ INT nHeight,
52 _In_ const LOGFONTW *plf);
53
57
60
void GetIconSize(INT *pcx, INT *pcy)
@implemented
Definition: mlng.cpp:480
CStaticIconList()
Definition: mlng.h:34
INT AddIcon(HICON hIcon)
@implemented
Definition: mlng.cpp:452
void RemoveAll(BOOL bNoLock)
@implemented
Definition: mlng.cpp:498
static INT s_cy
Definition: mlng.h:32
static INT s_cx
Definition: mlng.h:31
INT GetImageCount()
@implemented
Definition: mlng.cpp:489
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
USHORT LANGID
Definition: mui.h:9
HICON GetIconFromFile(_In_ INT cx, _In_ INT cy, _In_ LPCWSTR pszFileName, _In_ INT iIcon)
@implemented
Definition: mlng.cpp:212
HICON InatCreateIconBySize(_In_ LANGID LangID, _In_ INT nWidth, _In_ INT nHeight, _In_ const LOGFONTW *plf)
@implemented
Definition: mlng.cpp:262
DWORD GetHKLSubstitute(_In_ HKL hKL)
@implemented
Definition: mlng.cpp:94
VOID InatRemoveAll(VOID)
@implemented
Definition: mlng.cpp:348
INT InatAddIcon(_In_ HICON hIcon)
@implemented
Definition: mlng.cpp:253
HICON InatCreateIcon(_In_ LANGID LangID)
@implemented
Definition: mlng.cpp:317
INT InatGetImageCount(VOID)
@implemented
Definition: mlng.cpp:342
VOID UninitINAT(VOID)
@implemented
Definition: mlng.cpp:355
BOOL InatGetIconSize(_Out_ INT *pcx, _Out_ INT *pcy)
@implemented
Definition: mlng.cpp:335
static HICON
Definition: imagelist.c:80
HICON hIcon
Definition: msconfig.c:44
UINT_PTR HKL
Definition: msctf.idl:125
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:586
_Out_opt_ int * cx
Definition: commctrl.h:585
#define ExtractIcon
Definition: shellapi.h:727
Definition: mlng.h:13
void InitDesc()
@implemented
Definition: mlng.cpp:371
void InitIcon()
@implemented
Definition: mlng.cpp:384
HKL m_hKL
Definition: mlng.h:14
void SetDesc(LPCWSTR pszDesc)
@implemented
Definition: mlng.cpp:424
INT GetIconIndex()
@implemented
Definition: mlng.cpp:430
BOOL m_bInitDesc
Definition: mlng.h:15
WCHAR m_szDesc[128]
Definition: mlng.h:18
BOOL m_bInitIcon
Definition: mlng.h:16
INT m_iIconIndex
Definition: mlng.h:17
LPCWSTR GetDesc()
@implemented
Definition: mlng.cpp:415
int32_t INT
Definition: typedefs.h:58
WORD WORD PSZ PSZ pszFileName
Definition: vdmdbg.h:44
_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
Definition: wdfusb.h:1083
__wchar_t WCHAR
Definition: xmlstorage.h:180
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185