You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.5 KiB
53 lines
1.5 KiB
#ifndef __I_IME_CALLBACK_H__
|
|
#define __I_IME_CALLBACK_H__
|
|
#include <windows.h>
|
|
#include <objbase.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
//----------------------------------------------------------------
|
|
// Interface Declaration
|
|
//
|
|
// {67419A52-0ECD-11d3-83FC-00C04F7A06E5}
|
|
DEFINE_GUID(IID_IImeCallback,
|
|
0x67419a52, 0xecd, 0x11d3, 0x83, 0xfc, 0x0, 0xc0, 0x4f, 0x7a, 0x6, 0xe5);
|
|
|
|
DECLARE_INTERFACE(IImeCallback);
|
|
DECLARE_INTERFACE_(IImeCallback,IUnknown)
|
|
{
|
|
//--- IUnknown ---
|
|
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE;
|
|
STDMETHOD_(ULONG, AddRef) (THIS) PURE;
|
|
STDMETHOD_(ULONG, Release)(THIS) PURE;
|
|
//---- IImeCallback ----
|
|
STDMETHOD(GetApplicationHWND)(THIS_ HWND *pHWND) PURE;
|
|
STDMETHOD(Notify)(THIS_ UINT notify, WPARAM wParam, LPARAM lParam) PURE;
|
|
};
|
|
|
|
//----------------------------------------------------------------
|
|
// IImeCallback::Notify()'s notify
|
|
// IMECBNOTIFY_IMEPADOPENED
|
|
// WPARAM wParam: not used. always 0
|
|
// LPARAM lParam: not used. always 0
|
|
//----------------------------------------------------------------
|
|
#define IMECBNOTIFY_IMEPADOPENED 0
|
|
|
|
//----------------------------------------------------------------
|
|
// IImeCallback::Notify()'s notify
|
|
// IMECBNOTIFY_IMEPADCLOSED
|
|
// WPARAM wParam: not used. always 0
|
|
// LPARAM lParam: not used. always 0
|
|
//----------------------------------------------------------------
|
|
#define IMECBNOTIFY_IMEPADCLOSED 1
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
};
|
|
#endif
|
|
#endif //__I_IME_CALLBACK_H__
|
|
|
|
|
|
|