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.

64 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1985 - 1999, Microsoft Corporation
  3. Module Name:
  4. icocb.h
  5. Abstract:
  6. This file defines the CInputContextOwnerCallBack Class.
  7. Author:
  8. Revision History:
  9. Notes:
  10. --*/
  11. #ifndef _ICOCB_H_
  12. #define _ICOCB_H_
  13. #include "cime.h"
  14. class CMouseSink;
  15. class ImmIfIME;
  16. class CInputContextOwnerCallBack : public CInputContextOwner
  17. {
  18. public:
  19. CInputContextOwnerCallBack(LIBTHREAD *pLibTLS);
  20. virtual ~CInputContextOwnerCallBack();
  21. void SetCallbackDataPointer(void* pv)
  22. {
  23. SetCallbackPV(pv);
  24. };
  25. BOOL Init();
  26. //
  27. // Mouse sink
  28. //
  29. LRESULT MsImeMouseHandler(ULONG uEdge, ULONG uQuadrant, ULONG dwBtnStatus, IMCLock& imc,
  30. ImmIfIME* ImmIfIme);
  31. //
  32. // Callbacks
  33. //
  34. private:
  35. static HRESULT ICOwnerSinkCallback(UINT uCode, ICOARGS *pargs, void *pv);
  36. HRESULT GetAttribute(const GUID *pguid, VARIANT *pvarValue);
  37. //
  38. // Mouse sink
  39. //
  40. CMouseSink *m_pMouseSink;
  41. LIBTHREAD *m_pLibTLS;
  42. };
  43. #endif // _ICOCB_H_