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.

79 lines
1.9 KiB

  1. /*
  2. *
  3. * @doc INTERNAL
  4. *
  5. * @module _MSREMSG.H
  6. *
  7. * Purpose:
  8. * This file contains private Richedit messages and data.
  9. *
  10. * Author: <nl>
  11. * 12/20/99 honwch
  12. *
  13. * Copyright (c) 1995-2000, Microsoft Corporation. All rights reserved.
  14. */
  15. #ifndef _MSREMSG_H
  16. #define _MSREMSG_H
  17. #ifndef _C_MSGADVISESINK
  18. #define _C_MSGADVISESINK
  19. class CTextMsgFilter;
  20. class CMsgCallBack
  21. {
  22. public:
  23. CMsgCallBack(CTextMsgFilter *pTextMsgFilter) {_pTextMsgFilter = pTextMsgFilter;};
  24. ~CMsgCallBack() {};
  25. HRESULT HandlePostMessage(HWND hWnd, UINT msg, WPARAM wparam, LPARAM lparam, LRESULT *plres);
  26. HRESULT NotifyEvents(DWORD dwEvent);
  27. private:
  28. CTextMsgFilter *_pTextMsgFilter;
  29. };
  30. #endif
  31. typedef struct tagALTDISPLAYATTRIBUTE
  32. {
  33. COLORREF crText;
  34. COLORREF crBk;
  35. COLORREF crLine;
  36. WORD lsStyle;
  37. WORD wMask;
  38. } ALTDISPLAYATTRIBUTE;
  39. // Bit fields for EM_GETDOCFLAGS
  40. #define GDF_READONLY 0x0001
  41. #define GDF_OVERTYPE 0x0002
  42. #define GDF_SINGLECPG 0x0004
  43. #define GDF_RICHTEXT 0x0008
  44. #define GDF_ALL (GDF_READONLY | GDF_OVERTYPE | GDF_SINGLECPG | GDF_RICHTEXT)
  45. // Bits for the ALTDISPLAYATTRIBUTE wMask
  46. #define ADA_CRTEXT 0x0001
  47. #define ADA_CRBK 0x0002
  48. #define ADA_LSLINE 0x0004
  49. #define ADA_CRLINE 0x0008
  50. // Bits for NotifyEvents dwEvent
  51. #define NE_ENTERTOPLEVELCALLMGR 0x0001
  52. #define NE_EXITTOPLEVELCALLMGR 0x0002
  53. #define NE_CALLMGRSELCHANGE 0x0004
  54. #define NE_CALLMGRCHANGE 0x0008
  55. #define NE_LAYOUTCHANGE 0x0010
  56. #define NE_MODEBIASCHANGE 0x0020
  57. // Option for EM_SETUIM
  58. #define SES_USEAIMM11 0x0001
  59. #define SES_USEAIMM12 0x0002
  60. #define EM_PRI_MSG (WM_USER + 0x07000)
  61. #define EM_INSERTOBJ (EM_PRI_MSG + 0)
  62. #define EM_SETCALLBACK (EM_PRI_MSG + 1)
  63. #define EM_SETUPNOTIFY (EM_PRI_MSG + 2)
  64. #define EM_GETDOCFLAGS (EM_PRI_MSG + 3)
  65. #define EM_SETUIM (EM_PRI_MSG + 4)
  66. #define EM_GETPARATXTFLOW (EM_PRI_MSG + 5)
  67. #endif // _MSREMSG_H