27cpp_quote(
"#define TF_FLOATINGLANGBAR_WNDTITLEW L\"TF_FloatingLangBar_WndTitle\"")
28cpp_quote("
#define TF_FLOATINGLANGBAR_WNDTITLEA \"TF_FloatingLangBar_WndTitle\"")
30cpp_quote("
#define TF_FLOATINGLANGBAR_WNDTITLE TF_FLOATINGLANGBAR_WNDTITLEW")
32cpp_quote("#define TF_FLOATINGLANGBAR_WNDTITLE TF_FLOATINGLANGBAR_WNDTITLEA")
35/* Flags for ITfLangBarItemSink::OnUpdate */
36cpp_quote("#define TF_LBI_ICON 0x00000001")
37cpp_quote("#define TF_LBI_TEXT 0x00000002")
38cpp_quote("#define TF_LBI_TOOLTIP 0x00000004")
39cpp_quote("#define TF_LBI_BITMAP 0x00000008")
40cpp_quote("#define TF_LBI_BALLOON 0x00000010")
41cpp_quote("#define TF_LBI_CUSTOMUI 0x00000020")
42cpp_quote("#define TF_LBI_BTNALL (TF_LBI_TEXT | TF_LBI_ICON | TF_LBI_TOOLTIP)")
43cpp_quote("#define TF_LBI_BMPBTNALL (TF_LBI_TEXT | TF_LBI_BITMAP | TF_LBI_TOOLTIP)")
44cpp_quote("#define TF_LBI_BMPALL (TF_LBI_BITMAP | TF_LBI_TOOLTIP)")
45cpp_quote("#define TF_LBI_STATUS 0x00010000")
47/* Flags for ITfLangBarItem::GetInfo */
48cpp_quote("#define TF_LBI_STYLE_HIDDENSTATUSCONTROL 0x00000001")
49cpp_quote("#define TF_LBI_STYLE_SHOWNINTRAY 0x00000002")
50cpp_quote("#define TF_LBI_STYLE_HIDEONNOOTHERITEMS 0x00000004")
51cpp_quote("#define TF_LBI_STYLE_SHOWNINTRAYONLY 0x00000008")
52cpp_quote("#define TF_LBI_STYLE_HIDDENBYDEFAULT 0x00000010")
53cpp_quote("#define TF_LBI_STYLE_TEXTCOLORICON 0x00000020")
54cpp_quote("#define TF_LBI_STYLE_BTN_BUTTON 0x00010000")
55cpp_quote("#define TF_LBI_STYLE_BTN_MENU 0x00020000")
56cpp_quote("#define TF_LBI_STYLE_BTN_TOGGLE 0x00040000")
58/* Flags for ITfLangBarItem::GetStatus */
59cpp_quote("#define TF_LBI_STATUS_HIDDEN 0x00000001")
60cpp_quote("#define TF_LBI_STATUS_DISABLED 0x00000002")
61cpp_quote("#define TF_LBI_STATUS_BTN_TOGGLED 0x00010000")
63cpp_quote("#define TF_LBI_BMPF_VERTICAL 0x00000001")
65/* Flags for ShowFloating */
66cpp_quote("#define TF_SFT_SHOWNORMAL 0x00000001")
67cpp_quote("#define TF_SFT_DOCK 0x00000002")
68cpp_quote("#define TF_SFT_MINIMIZED 0x00000004")
69cpp_quote("#define TF_SFT_HIDDEN 0x00000008")
70cpp_quote("#define TF_SFT_NOTRANSPARENCY 0x00000010")
71cpp_quote("#define TF_SFT_LOWTRANSPARENCY 0x00000020")
72cpp_quote("#define TF_SFT_HIGHTRANSPARENCY 0x00000040")
73cpp_quote("#define TF_SFT_LABELS 0x00000080")
74cpp_quote("#define TF_SFT_NOLABELS 0x00000100")
75cpp_quote("#define TF_SFT_EXTRAICONSONMINIMIZED 0x00000200")
76cpp_quote("#define TF_SFT_NOEXTRAICONSONMINIMIZED 0x00000400")
77cpp_quote("#define TF_SFT_DESKBAND 0x00000800")
79/* OnMenuSelect flags */
80cpp_quote("#define TF_INVALIDMENUITEM (UINT)(-1)")
82/* SystemDeviceTypeLangbarItem flag */
83cpp_quote("#define TF_DTLBI_USEPROFILEICON 0x00000001")
91interface ITfLangBarEventSink;
92interface ITfLangBarItemMgr;
93interface ITfInputProcessorProfiles;
94interface IEnumTfLangBarItems;
95interface ITfLangBarItem;
96interface ITfLangBarItemSink;
97interface ITfLangBarItemBalloon;
98interface ITfLangBarItemBitmap;
99interface ITfLangBarItemBitmapButton;
100interface ITfLangBarItemButton;
102interface ITfSystemDeviceTypeLangBarItem;
103interface ITfSystemLangBarItem;
104interface ITfSystemLangBarItemSink;
105interface ITfSystemLangBarItemText;
109 uuid(87955690-e627-11d2-8ddb-00105a2799b5),
110 pointer_default(unique)
112interface ITfLangBarMgr: IUnknown
114 HRESULT AdviseEventSink(
115 [in] ITfLangBarEventSink *pSink,
118 [in] DWORD *pdwCookie);
120 HRESULT UnAdviseEventSink(
121 [in] DWORD dwCookie);
123 HRESULT GetThreadMarshalInterface(
124 [in] DWORD dwThreadId,
127 [out] IUnknown **ppunk);
129 HRESULT GetThreadLangBarItemMgr(
130 [in] DWORD dwThreadId,
131 [out] ITfLangBarItemMgr **pplbie,
132 [out] DWORD *pdwThreadid);
134 HRESULT GetInputProcessorProfiles(
135 [in] DWORD dwThreadId,
136 [out] ITfInputProcessorProfiles **ppaip,
137 [out] DWORD *pdwThreadid);
139 HRESULT RestoreLastFocus(
140 [out] DWORD *dwThreadId,
143 HRESULT SetModalInput(
144 [in] ITfLangBarEventSink *pSink,
145 [in] DWORD dwThreadId,
148 HRESULT ShowFloating(
151 HRESULT GetShowFloatingStatus(
152 [out] DWORD *pdwFlags);
157 uuid(18a4e900-e0ae-11d2-afdd-00105a2799b5),
158 pointer_default(unique)
160interface ITfLangBarEventSink: IUnknown
163 [in] DWORD dwThreadId);
165 HRESULT OnThreadTerminate(
166 [in] DWORD dwThreadId);
168 HRESULT OnThreadItemChange(
169 [in] DWORD dwThreadId);
171 HRESULT OnModalInput(
172 [in] DWORD dwThreadId,
177 HRESULT ShowFloating(
180 HRESULT GetItemFloatingRect(
181 [in] DWORD dwThreadId,
186const ULONG TF_LBI_DESC_MAXLEN = 32;
188typedef [uuid(12a1d29f-a065-440c-9746-eb2002c8bd19)] struct TF_LANGBARITEMINFO
194 WCHAR szDescription[TF_LBI_DESC_MAXLEN];
199 uuid(ba468c55-9956-4fb1-a59d-52a7dd7cc6aa),
200 pointer_default(unique)
202interface ITfLangBarItemMgr : IUnknown
205 [out] IEnumTfLangBarItems **ppEnum);
209 [out] ITfLangBarItem **ppItem);
212 [in] ITfLangBarItem *punk);
215 [in] ITfLangBarItem *punk);
217 HRESULT AdviseItemSink(
218 [in] ITfLangBarItemSink *punk,
219 [out] DWORD *pdwCookie,
220 [in] REFGUID rguidItem);
222 HRESULT UnadviseItemSink(
223 [in] DWORD dwCookie);
225 HRESULT GetItemFloatingRect(
226 [in] DWORD dwThreadId,
230 HRESULT GetItemsStatus(
232 [in, size_is(ulCount)] const GUID *prgguid,
233 [out, size_is(ulCount)] DWORD *pdwStatus);
236 [out] ULONG *pulCount);
240 [out, size_is(ulCount), length_is(*pcFetched)] ITfLangBarItem **ppItem,
241 [out, size_is(ulCount), length_is(*pcFetched)] TF_LANGBARITEMINFO *pInfo,
242 [out, size_is(ulCount), length_is(*pcFetched)] DWORD *pdwStatus,
243 [in, out, unique] ULONG *pcFetched);
245 HRESULT AdviseItemsSink(
247 [in, size_is(ulCount)] ITfLangBarItemSink **ppunk,
248 [in, size_is(ulCount)] const GUID *pguidItem,
249 [out, size_is(ulCount)] DWORD *pdwCookie);
251 HRESULT UnadviseItemsSink(
253 [in, size_is(ulCount)] DWORD *pdwCookie);
258 uuid(583f34d0-de25-11d2-afdd-00105a2799b5),
259 pointer_default(unique)
261interface IEnumTfLangBarItems : IUnknown
264 [out] IEnumTfLangBarItems **ppEnum);
268 [out, size_is(ulCount)] ITfLangBarItem **ppItem,
269 [in, out, unique] ULONG *pcFetched);
279 uuid(73540d69-edeb-4ee9-96c9-23aa30b25916),
280 pointer_default(unique)
282interface ITfLangBarItem : IUnknown
285 [out] TF_LANGBARITEMINFO *pInfo);
288 [out] DWORD *pdwStatus);
293 HRESULT GetTooltipString(
294 [out] BSTR *pbstrToolTip);
299 uuid(57dbe1a0-de25-11d2-afdd-00105a2799b5),
300 pointer_default(unique)
302interface ITfLangBarItemSink : IUnknown
310 uuid(01c2d285-d3c7-4b7b-b5b5-d97411d0c283),
311 pointer_default(unique)
313interface ITfLangBarItemBalloon : IUnknown
316 [in] TfLBIClick click,
318 [in] const RECT *prcArea);
320 HRESULT GetPreferredSize(
321 [in] const SIZE *pszDefault,
326 TF_LB_BALLOON_RECO = 0,
327 TF_LB_BALLOON_SHOW = 1,
328 TF_LB_BALLOON_MISS = 2
331 typedef struct TF_LBBALLOONINFO
333 TfLBBalloonStyle style;
337 HRESULT GetBalloonInfo(
338 [out] TF_LBBALLOONINFO *pInfo);
343 uuid(73830352-d722-4179-ada5-f045c98df355),
344 pointer_default(unique)
346interface ITfLangBarItemBitmap : IUnknown
349 [in] TfLBIClick click,
351 [in] const RECT *prcArea);
353 HRESULT GetPreferredSize(
354 [in] const SIZE *pszDefault,
361 [out] HBITMAP *phbmp,
362 [out] HBITMAP *phbmpMask);
367 uuid(a26a0525-3fae-4fa0-89ee-88a964f9f1b5),
368 pointer_default(unique)
370interface ITfLangBarItemBitmapButton : IUnknown
373 [in] TfLBIClick click,
375 [in] const RECT *prcArea);
378 [in] ITfMenu *pMenu);
380 HRESULT OnMenuSelect(
383 HRESULT GetPreferredSize(
384 [in] const SIZE *pszDefault,
391 [out] HBITMAP *phbmp,
392 [out] HBITMAP *phbmpMask);
395 [out] BSTR *pbstrText);
400 uuid(28c7f1d0-de25-11d2-afdd-00105a2799b5),
401 pointer_default(unique)
403interface ITfLangBarItemButton : IUnknown
406 [in] TfLBIClick click,
408 [in] const RECT *prcArea);
411 [in] ITfMenu *pMenu);
413 HRESULT OnMenuSelect(
417 [out] HICON *phIcon);
420 [out] BSTR *pbstrText);
425 uuid(6f8a98e4-aaa0-4f15-8c5b-07e0df0a3dd8),
426 pointer_default(unique)
428interface ITfMenu : IUnknown
430 const DWORD TF_LBMENUF_CHECKED = 0x00000001;
431 const DWORD TF_LBMENUF_SUBMENU = 0x00000002;
432 const DWORD TF_LBMENUF_SEPARATOR = 0x00000004;
433 const DWORD TF_LBMENUF_RADIOCHECKED = 0x00000008;
434 const DWORD TF_LBMENUF_GRAYED = 0x00000010;
440 [in] HBITMAP hbmpMask,
441 [in] const WCHAR *pch,
448 uuid(45672eb9-9059-46a2-838d-4530355f6a77),
449 pointer_default(unique)
451interface ITfSystemDeviceTypeLangBarItem : IUnknown
457 [out] DWORD *pdwFlags);
462 uuid(1e13e9ec-6b33-4d4a-b5eb-8a92f029f356),
463 pointer_default(unique)
465interface ITfSystemLangBarItem : IUnknown
470 HRESULT SetTooltipString(
471 [in] WCHAR *pchToolTip,
477 uuid(1449d9ab-13cf-4687-aa3e-8d8b18574396),
478 pointer_default(unique)
480interface ITfSystemLangBarItemSink : IUnknown
483 [in] ITfMenu *pMenu);
485 HRESULT OnMenuSelect(
491 uuid(5c4ce0e5-ba49-4b52-ac6b-3b397b4f701f),
492 pointer_default(unique)
494interface ITfSystemLangBarItemText : IUnknown
497 [in] const WCHAR *pch,
501 [out] BSTR *pbstrText);
CD3D10_BUFFER_DESC D3D10_BUFFER_DESC cpp_quote(" ~CD3D10_BUFFER_DESC() {}") operator const D3D10_BUFFER_DESC &() const