Leaked source code of windows server 2003
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.

55 lines
1.5 KiB

  1. #ifndef _HWXAPP_H_
  2. #define _HWXAPP_H_
  3. #include <windows.h>
  4. #include "recog.h"
  5. #include "imepad.h"
  6. class CApplet;
  7. typedef CApplet *LPCApplet;
  8. class CHwxInkWindow;
  9. //----------------------------------------------------------------
  10. //IME98A enhance by ToshiaK: add IImeSpecifyApplets
  11. //----------------------------------------------------------------
  12. class CApplet: public IImePadApplet,public IImeSpecifyApplets
  13. {
  14. public:
  15. HRESULT __stdcall QueryInterface(REFIID refiid, VOID **ppv);
  16. ULONG __stdcall AddRef(void);
  17. ULONG __stdcall Release(void);
  18. STDMETHODIMP GetAppletIIDList(THIS_
  19. REFIID refiid,
  20. LPAPPLETIDLIST lpIIDList);
  21. STDMETHODIMP Initialize(IUnknown *pIImePad);
  22. STDMETHODIMP Terminate(VOID);
  23. STDMETHODIMP GetAppletConfig(LPIMEAPPLETCFG lpAppletCfg);
  24. STDMETHODIMP CreateUI(HWND hwndParent,
  25. LPIMEAPPLETUI lpImeAppletUI);
  26. STDMETHODIMP Notify(IUnknown *pImePad,
  27. INT notify,
  28. WPARAM wParam,
  29. LPARAM lParam);
  30. CApplet();
  31. CApplet(HINSTANCE hInst);
  32. ~CApplet();
  33. void *operator new(size_t size);
  34. void operator delete(void *pv);
  35. void SendHwxChar(WCHAR wch);
  36. void SendHwxStringCandidate(LPIMESTRINGCANDIDATE lpISC);
  37. void SendHwxStringCandidateInfo(LPIMESTRINGCANDIDATEINFO lpISC);
  38. _inline IImePad * GetIImePad() { return m_pPad; }
  39. _inline HINSTANCE GetInstance() { return m_hInstance; }
  40. protected:
  41. LONG m_cRef;
  42. private:
  43. IImePad *m_pPad;
  44. HINSTANCE m_hInstance;
  45. CHwxInkWindow * m_pCHwxInkWindow;
  46. BOOL m_bInit;
  47. };
  48. #endif //_HWXAPP_H_