mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:06:04 +00:00
[MSCTF][MSUTB][SDK] Add CTipbarItem and CTipbarThread (#6477)
Supporting the Language bar... JIRA issue: CORE-19363 - Modify msctf.spec. - Add CTipbarThread and CTipbarItem classes.
This commit is contained in:
parent
eb55d984c0
commit
23db429e42
4 changed files with 686 additions and 4 deletions
|
@ -68,6 +68,9 @@ cpp_quote("EXTERN_C BOOL WINAPI TF_GetMlngHKL(_In_ INT iKL, _Out_ HKL *phKL, _Ou
|
|||
cpp_quote("EXTERN_C INT WINAPI TF_GetMlngIconIndex(_In_ INT iKL);")
|
||||
cpp_quote("EXTERN_C HICON WINAPI TF_InatExtractIcon(_In_ INT iKL);")
|
||||
cpp_quote("EXTERN_C HRESULT WINAPI TF_RunInputCPL(VOID);")
|
||||
cpp_quote("EXTERN_C BOOL WINAPI TF_GetThreadFlags(_In_ DWORD dwThreadId, _Out_ LPDWORD pdwFlags1, _Out_ LPDWORD pdwFlags2, _Out_ LPDWORD pdwFlags3);")
|
||||
cpp_quote("EXTERN_C LONG WINAPI TF_CheckThreadInputIdle(_In_ DWORD dwThreadId, _In_ DWORD dwMilliseconds);")
|
||||
cpp_quote("EXTERN_C BOOL WINAPI TF_IsInMarshaling(_In_ DWORD dwThreadId);")
|
||||
|
||||
cpp_quote("EXTERN_C const GUID GUID_PROP_TEXTOWNER;")
|
||||
cpp_quote("EXTERN_C const GUID GUID_PROP_ATTRIBUTE;")
|
||||
|
|
|
@ -65,6 +65,19 @@ void cicInitUIFSys(void);
|
|||
void cicDoneUIFSys(void);
|
||||
void cicUpdateUIFSys(void);
|
||||
|
||||
inline void cicGetWorkAreaRect(POINT pt, LPRECT prc)
|
||||
{
|
||||
::SystemParametersInfo(SPI_GETWORKAREA, 0, prc, 0);
|
||||
|
||||
HMONITOR hMon = ::MonitorFromPoint(pt, MONITOR_DEFAULTTONEAREST);
|
||||
if (hMon)
|
||||
{
|
||||
MONITORINFO mi = { sizeof(mi) };
|
||||
if (::GetMonitorInfo(hMon, &mi))
|
||||
*prc = mi.rcWork;
|
||||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <uxtheme.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue