FLTK 1.3.2
aimm.h
1 //
2 // "$Id: aimm.h 8864 2011-07-19 04:49:30Z greg.ercolano $"
3 //
4 // Standard dialog header file for the UTF-8 Fast Light Tool Kit (FLTK-UTF8).
5 //
6 // Copyright 2009-2010 by Bill Spitzak and others.
7 //
8 // This library is free software. Distribution and use rights are outlined in
9 // the file "COPYING" which should have been included with this file. If this
10 // file is missing or damaged, see the license at:
11 //
12 // http://www.fltk.org/COPYING.php
13 //
14 // Please report all bugs and problems on the following page:
15 //
16 // http://www.fltk.org/str.php
17 //
18 
19 #ifndef AIMM_H
20 # define AIMM_H
21 //# define HANDLE_PTR HANDLE*
22 //# define DWORD_PTR DWORD*
23 //# define CLSCTX_INPROC_SERVER 0x1
24 const GUID IID_IActiveIMMApp = { 0x8c0e040, 0x62d1, 0x11d1, {0x93, 0x26, 0x00, 0x60, 0xb0, 0x67, 0xb8, 0x6e}};
25 const GUID CLSID_CActiveIMM = { 0x4955dd33, 0xb159, 0x11d0, {0x8f, 0xcf, 0x00, 0xaa, 0x00, 0x6b, 0xcc, 0x59}};
26 /*
27  class IUnknown
28  {
29  public:
30 
31  virtual long __stdcall QueryInterface(
32  const GUID & riid,
33  void **ppvObject) = 0;
34 
35  virtual ULONG __stdcall AddRef( void) = 0;
36 
37  virtual ULONG __stdcall Release( void) = 0;
38  };
39 
40 extern "C" __declspec(dllimport) long __stdcall CoInitialize(void far *pvReserved);
41 extern "C" __declspec(dllimport) long __stdcall CoCreateInstance(const GUID & rclsid, IUnknown * pUnkOuter,
42  DWORD dwClsContext, const GUID & riid, LPVOID FAR* ppv);
43 
44 */
45 
46  class IActiveIMMApp : public IUnknown
47  {
48  public:
49  virtual long __stdcall AssociateContext(
50  HWND hWnd,
51  HIMC hIME,
52  HIMC *phPrev) = 0;
53 
54  virtual long __stdcall ConfigureIMEA(
55  HKL hKL,
56  HWND hWnd,
57  DWORD dwMode,
58  void *pData) = 0;
59 
60  virtual long __stdcall ConfigureIMEW(
61  HKL hKL,
62  HWND hWnd,
63  DWORD dwMode,
64  void *pData) = 0;
65 
66  virtual long __stdcall CreateContext(
67  HIMC *phIMC) = 0;
68 
69  virtual long __stdcall DestroyContext(
70  HIMC hIME) = 0;
71 
72  virtual long __stdcall EnumRegisterWordA(
73  HKL hKL,
74  LPSTR szReading,
75  DWORD dwStyle,
76  LPSTR szRegister,
77  LPVOID pData,
78  void **pEnum) = 0;
79 
80  virtual long __stdcall EnumRegisterWordW(
81  HKL hKL,
82  LPWSTR szReading,
83  DWORD dwStyle,
84  LPWSTR szRegister,
85  LPVOID pData,
86  void **pEnum) = 0;
87 
88  virtual long __stdcall EscapeA(
89  HKL hKL,
90  HIMC hIMC,
91  UINT uEscape,
92  /* [out][in] */ LPVOID pData,
93  LRESULT *plResult) = 0;
94 
95  virtual long __stdcall EscapeW(
96  HKL hKL,
97  HIMC hIMC,
98  UINT uEscape,
99  /* [out][in] */ LPVOID pData,
100  LRESULT *plResult) = 0;
101 
102  virtual long __stdcall GetCandidateListA(
103  HIMC hIMC,
104  DWORD dwIndex,
105  UINT uBufLen,
106  void *pCandList,
107  UINT *puCopied) = 0;
108 
109  virtual long __stdcall GetCandidateListW(
110  HIMC hIMC,
111  DWORD dwIndex,
112  UINT uBufLen,
113  void *pCandList,
114  UINT *puCopied) = 0;
115 
116  virtual long __stdcall GetCandidateListCountA(
117  HIMC hIMC,
118  DWORD *pdwListSize,
119  DWORD *pdwBufLen) = 0;
120 
121  virtual long __stdcall GetCandidateListCountW(
122  HIMC hIMC,
123  DWORD *pdwListSize,
124  DWORD *pdwBufLen) = 0;
125 
126  virtual long __stdcall GetCandidateWindow(
127  HIMC hIMC,
128  DWORD dwIndex,
129  void *pCandidate) = 0;
130 
131  virtual long __stdcall GetCompositionFontA(
132  HIMC hIMC,
133  LOGFONTA *plf) = 0;
134 
135  virtual long __stdcall GetCompositionFontW(
136  HIMC hIMC,
137  LOGFONTW *plf) = 0;
138 
139  virtual long __stdcall GetCompositionStringA(
140  HIMC hIMC,
141  DWORD dwIndex,
142  DWORD dwBufLen,
143  LONG *plCopied,
144  LPVOID pBuf) = 0;
145 
146  virtual long __stdcall GetCompositionStringW(
147  HIMC hIMC,
148  DWORD dwIndex,
149  DWORD dwBufLen,
150  LONG *plCopied,
151  LPVOID pBuf) = 0;
152 
153  virtual long __stdcall GetCompositionWindow(
154  HIMC hIMC,
155  void *pCompForm) = 0;
156 
157  virtual long __stdcall GetContext(
158  HWND hWnd,
159  HIMC *phIMC) = 0;
160 
161  virtual long __stdcall GetConversionListA(
162  HKL hKL,
163  HIMC hIMC,
164  LPSTR pSrc,
165  UINT uBufLen,
166  UINT uFlag,
167  void *pDst,
168  UINT *puCopied) = 0;
169 
170  virtual long __stdcall GetConversionListW(
171  HKL hKL,
172  HIMC hIMC,
173  LPWSTR pSrc,
174  UINT uBufLen,
175  UINT uFlag,
176  void *pDst,
177  UINT *puCopied) = 0;
178 
179  virtual long __stdcall GetConversionStatus(
180  HIMC hIMC,
181  DWORD *pfdwConversion,
182  DWORD *pfdwSentence) = 0;
183 
184  virtual long __stdcall GetDefaultIMEWnd(
185  HWND hWnd,
186  HWND *phDefWnd) = 0;
187 
188  virtual long __stdcall GetDescriptionA(
189  HKL hKL,
190  UINT uBufLen,
191  LPSTR szDescription,
192  UINT *puCopied) = 0;
193 
194  virtual long __stdcall GetDescriptionW(
195  HKL hKL,
196  UINT uBufLen,
197  LPWSTR szDescription,
198  UINT *puCopied) = 0;
199 
200  virtual long __stdcall GetGuideLineA(
201  HIMC hIMC,
202  DWORD dwIndex,
203  DWORD dwBufLen,
204  LPSTR pBuf,
205  DWORD *pdwResult) = 0;
206 
207  virtual long __stdcall GetGuideLineW(
208  HIMC hIMC,
209  DWORD dwIndex,
210  DWORD dwBufLen,
211  LPWSTR pBuf,
212  DWORD *pdwResult) = 0;
213 
214  virtual long __stdcall GetIMEFileNameA(
215  HKL hKL,
216  UINT uBufLen,
217  LPSTR szFileName,
218  UINT *puCopied) = 0;
219 
220  virtual long __stdcall GetIMEFileNameW(
221  HKL hKL,
222  UINT uBufLen,
223  LPWSTR szFileName,
224  UINT *puCopied) = 0;
225 
226  virtual long __stdcall GetOpenStatus(
227  HIMC hIMC) = 0;
228 
229  virtual long __stdcall GetProperty(
230  HKL hKL,
231  DWORD fdwIndex,
232  DWORD *pdwProperty) = 0;
233 
234  virtual long __stdcall GetRegisterWordStyleA(
235  HKL hKL,
236  UINT nItem,
237  STYLEBUFA *pStyleBuf,
238  UINT *puCopied) = 0;
239 
240  virtual long __stdcall GetRegisterWordStyleW(
241  HKL hKL,
242  UINT nItem,
243  STYLEBUFW *pStyleBuf,
244  UINT *puCopied) = 0;
245 
246  virtual long __stdcall GetStatusWindowPos(
247  HIMC hIMC,
248  POINT *pptPos) = 0;
249 
250  virtual long __stdcall GetVirtualKey(
251  HWND hWnd,
252  UINT *puVirtualKey) = 0;
253 
254  virtual long __stdcall InstallIMEA(
255  LPSTR szIMEFileName,
256  LPSTR szLayoutText,
257  HKL *phKL) = 0;
258 
259  virtual long __stdcall InstallIMEW(
260  LPWSTR szIMEFileName,
261  LPWSTR szLayoutText,
262  HKL *phKL) = 0;
263 
264  virtual long __stdcall IsIME(
265  HKL hKL) = 0;
266 
267  virtual long __stdcall IsUIMessageA(
268  HWND hWndIME,
269  UINT msg,
270  WPARAM wParam,
271  LPARAM lParam) = 0;
272 
273  virtual long __stdcall IsUIMessageW(
274  HWND hWndIME,
275  UINT msg,
276  WPARAM wParam,
277  LPARAM lParam) = 0;
278 
279  virtual long __stdcall NotifyIME(
280  HIMC hIMC,
281  DWORD dwAction,
282  DWORD dwIndex,
283  DWORD dwValue) = 0;
284 
285  virtual long __stdcall RegisterWordA(
286  HKL hKL,
287  LPSTR szReading,
288  DWORD dwStyle,
289  LPSTR szRegister) = 0;
290 
291  virtual long __stdcall RegisterWordW(
292  HKL hKL,
293  LPWSTR szReading,
294  DWORD dwStyle,
295  LPWSTR szRegister) = 0;
296 
297  virtual long __stdcall ReleaseContext(
298  HWND hWnd,
299  HIMC hIMC) = 0;
300 
301  virtual long __stdcall SetCandidateWindow(
302  HIMC hIMC,
303  void *pCandidate) = 0;
304 
305  virtual long __stdcall SetCompositionFontA(
306  HIMC hIMC,
307  LOGFONTA *plf) = 0;
308 
309  virtual long __stdcall SetCompositionFontW(
310  HIMC hIMC,
311  LOGFONTW *plf) = 0;
312 
313  virtual long __stdcall SetCompositionStringA(
314  HIMC hIMC,
315  DWORD dwIndex,
316  LPVOID pComp,
317  DWORD dwCompLen,
318  LPVOID pRead,
319  DWORD dwReadLen) = 0;
320 
321  virtual long __stdcall SetCompositionStringW(
322  HIMC hIMC,
323  DWORD dwIndex,
324  LPVOID pComp,
325  DWORD dwCompLen,
326  LPVOID pRead,
327  DWORD dwReadLen) = 0;
328 
329  virtual long __stdcall SetCompositionWindow(
330  HIMC hIMC,
331  void *pCompForm) = 0;
332 
333  virtual long __stdcall SetConversionStatus(
334  HIMC hIMC,
335  DWORD fdwConversion,
336  DWORD fdwSentence) = 0;
337 
338  virtual long __stdcall SetOpenStatus(
339  HIMC hIMC,
340  BOOL fOpen) = 0;
341 
342  virtual long __stdcall SetStatusWindowPos(
343  HIMC hIMC,
344  POINT *pptPos) = 0;
345 
346  virtual long __stdcall SimulateHotKey(
347  HWND hWnd,
348  DWORD dwHotKeyID) = 0;
349 
350  virtual long __stdcall UnregisterWordA(
351  HKL hKL,
352  LPSTR szReading,
353  DWORD dwStyle,
354  LPSTR szUnregister) = 0;
355 
356  virtual long __stdcall UnregisterWordW(
357  HKL hKL,
358  LPWSTR szReading,
359  DWORD dwStyle,
360  LPWSTR szUnregister) = 0;
361 
362  virtual long __stdcall Activate(
363  BOOL fRestoreLayout) = 0;
364 
365  virtual long __stdcall Deactivate( void) = 0;
366 
367  virtual long __stdcall OnDefWindowProc(
368  HWND hWnd,
369  UINT Msg,
370  WPARAM wParam,
371  LPARAM lParam,
372  LRESULT *plResult) = 0;
373 
374  virtual long __stdcall FilterClientWindows(
375  ATOM *aaClassList,
376  UINT uSize) = 0;
377 
378  virtual long __stdcall GetCodePageA(
379  HKL hKL,
380  UINT *uCodePage) = 0;
381 
382  virtual long __stdcall GetLangId(
383  HKL hKL,
384  WORD *plid) = 0;
385 
386  virtual long __stdcall AssociateContextEx(
387  HWND hWnd,
388  HIMC hIMC,
389  DWORD dwFlags) = 0;
390 
391  virtual long __stdcall DisableIME(
392  DWORD idThread) = 0;
393 
394  virtual long __stdcall GetImeMenuItemsA(
395  HIMC hIMC,
396  DWORD dwFlags,
397  DWORD dwType,
398  void *pImeParentMenu,
399  void *pImeMenu,
400  DWORD dwSize,
401  DWORD *pdwResult) = 0;
402 
403  virtual long __stdcall GetImeMenuItemsW(
404  HIMC hIMC,
405  DWORD dwFlags,
406  DWORD dwType,
407  void *pImeParentMenu,
408  void *pImeMenu,
409  DWORD dwSize,
410  DWORD *pdwResult) = 0;
411 
412  virtual long __stdcall EnumInputContext(
413  DWORD idThread,
414  void **ppEnum) = 0;
415 
416  };
417 
418 #endif
419 
420 //
421 // End of "$Id: aimm.h 8864 2011-07-19 04:49:30Z greg.ercolano $".
422 //
Definition: aimm.h:46