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.

63 lines
1.1 KiB

  1. /*
  2. * _TXTNOT.H
  3. *
  4. * Purpose:
  5. * Text Notification Manager declarations
  6. *
  7. * Author:
  8. * Honwch 1/12/2000
  9. *
  10. * Copyright (c) 1995-2000, Microsoft Corporation. All rights reserved.
  11. */
  12. #ifndef _TXTNOT_H_
  13. #define _TXTNOT_H_
  14. #include "_notmgr.h"
  15. class CTxtEdit;
  16. /*
  17. * CTextNotify
  18. *
  19. * @class
  20. * CTextNotify forwards notification to Messgae Filter
  21. *
  22. */
  23. class CTextNotify : public ITxNotify
  24. {
  25. //@access Public Methods
  26. public:
  27. CTextNotify(CTxtEdit * ped) { _ped = ped; }
  28. ~CTextNotify();
  29. //
  30. // ITxNotify Interface
  31. //
  32. void OnPreReplaceRange(
  33. LONG cp,
  34. LONG cchDel,
  35. LONG cchNew,
  36. LONG cpFormatMin,
  37. LONG cpFormatMax,
  38. NOTIFY_DATA *pNotifyData );
  39. void OnPostReplaceRange(
  40. LONG cp,
  41. LONG cchDel,
  42. LONG cchNew,
  43. LONG cpFormatMin,
  44. LONG cpFormatMax,
  45. NOTIFY_DATA *pNotifyData );
  46. void Zombie() {_ped = NULL;};
  47. BOOL Add(ITxNotify *pMsgFilterNotify);
  48. BOOL Remove(ITxNotify *pMsgFilterNotify);
  49. //@access Protected Methods
  50. protected:
  51. CTxtEdit *_ped;
  52. ITxNotify *_pMsgFilterNotify;
  53. };
  54. #endif _TXTNOT_H_