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.

50 lines
1.6 KiB

  1. #ifndef __PADCB_H__
  2. #define __PADCB_H__
  3. #include "../../fecommon/include/iimecb.h"
  4. class CPadCB : public IImeCallback
  5. {
  6. public:
  7. //----------------------------------------------------------------
  8. //IUnknown
  9. //----------------------------------------------------------------
  10. virtual HRESULT __stdcall QueryInterface(REFIID riid, LPVOID* ppvObj);
  11. virtual ULONG __stdcall AddRef();
  12. virtual ULONG __stdcall Release();
  13. //----------------------------------------------------------------
  14. //IImeConnectionPoint method
  15. //----------------------------------------------------------------
  16. virtual HRESULT __stdcall GetApplicationHWND(HWND *pHWND);
  17. virtual HRESULT __stdcall Notify(UINT notify, WPARAM wParam, LPARAM lParam);
  18. CPadCB();
  19. ~CPadCB();
  20. void Initialize(void* pPad);
  21. private:
  22. void *m_pPad;
  23. LONG m_cRef;
  24. };
  25. typedef CPadCB* LPCPadCB;
  26. //----------------------------------------------------------------
  27. // IImeCallback::Notify()'s notify
  28. // IMECBNOTIFY_IMEPADOPENED
  29. // WPARAM wParam: not used. always 0
  30. // LPARAM lParam: not used. always 0
  31. //----------------------------------------------------------------
  32. #define IMECBNOTIFY_IMEPADOPENED 0
  33. //----------------------------------------------------------------
  34. // IImeCallback::Notify()'s notify
  35. // IMECBNOTIFY_IMEPADCLOSED
  36. // WPARAM wParam: not used. always 0
  37. // LPARAM lParam: not used. always 0
  38. //----------------------------------------------------------------
  39. #define IMECBNOTIFY_IMEPADCLOSED 1
  40. #endif //__PADCB_H__