2000-05-07 22:23:41 +02:00
|
|
|
#ifndef __WINE_RICHEDIT_H
|
|
|
|
#define __WINE_RICHEDIT_H
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "pshpack4.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _RICHEDIT_VER
|
|
|
|
#define _RICHEDIT_VER 0x0210
|
|
|
|
#endif /* _RICHEDIT_VER */
|
|
|
|
|
|
|
|
#define cchTextLimitDefault 0x7fff
|
|
|
|
|
|
|
|
#define RICHEDIT_CLASS20A "RichEdit20A"
|
2001-02-12 20:17:46 +01:00
|
|
|
static const WCHAR RICHEDIT_CLASS20W[] = { 'R','i','c','h','E','d','i','t','2','0','W', '\0' };
|
2000-05-07 22:23:41 +02:00
|
|
|
#define RICHEDIT_CLASS10A "RICHEDIT"
|
|
|
|
|
|
|
|
#if (_RICHEDIT_VER >= 0x0200 )
|
|
|
|
#define RICHEDIT_CLASS WINELIB_NAME_AW(RICHEDIT_CLASS20)
|
|
|
|
#else
|
|
|
|
#define RICHEDIT_CLASS RICHEDIT_CLASS10A
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define EM_CANPASTE (WM_USER + 50)
|
|
|
|
#define EM_DISPLAYBAND (WM_USER + 51)
|
|
|
|
#define EM_EXGETSEL (WM_USER + 52)
|
|
|
|
#define EM_EXLIMITTEXT (WM_USER + 53)
|
|
|
|
#define EM_EXLINEFROMCHAR (WM_USER + 54)
|
|
|
|
#define EM_EXSETSEL (WM_USER + 55)
|
|
|
|
#define EM_FINDTEXT (WM_USER + 56)
|
|
|
|
#define EM_FORMATRANGE (WM_USER + 57)
|
|
|
|
#define EM_GETCHARFORMAT (WM_USER + 58)
|
|
|
|
#define EM_GETEVENTMASK (WM_USER + 59)
|
|
|
|
#define EM_GETOLEINTERFACE (WM_USER + 60)
|
|
|
|
#define EM_GETPARAFORMAT (WM_USER + 61)
|
|
|
|
#define EM_GETSELTEXT (WM_USER + 62)
|
|
|
|
#define EM_HIDESELECTION (WM_USER + 63)
|
|
|
|
#define EM_PASTESPECIAL (WM_USER + 64)
|
|
|
|
#define EM_REQUESTRESIZE (WM_USER + 65)
|
|
|
|
#define EM_SELECTIONTYPE (WM_USER + 66)
|
|
|
|
#define EM_SETBKGNDCOLOR (WM_USER + 67)
|
|
|
|
#define EM_SETCHARFORMAT (WM_USER + 68)
|
|
|
|
#define EM_SETEVENTMASK (WM_USER + 69)
|
|
|
|
#define EM_SETOLECALLBACK (WM_USER + 70)
|
|
|
|
#define EM_SETPARAFORMAT (WM_USER + 71)
|
|
|
|
#define EM_SETTARGETDEVICE (WM_USER + 72)
|
|
|
|
#define EM_STREAMIN (WM_USER + 73)
|
|
|
|
#define EM_STREAMOUT (WM_USER + 74)
|
|
|
|
#define EM_GETTEXTRANGE (WM_USER + 75)
|
|
|
|
#define EM_FINDWORDBREAK (WM_USER + 76)
|
|
|
|
#define EM_SETOPTIONS (WM_USER + 77)
|
|
|
|
#define EM_GETOPTIONS (WM_USER + 78)
|
|
|
|
#define EM_FINDTEXTEX (WM_USER + 79)
|
|
|
|
#define EM_GETWORDBREAKPROCEX (WM_USER + 80)
|
|
|
|
#define EM_SETWORDBREAKPROCEX (WM_USER + 81)
|
|
|
|
|
2000-06-11 22:07:58 +02:00
|
|
|
typedef DWORD CALLBACK(* EDITSTREAMCALLBACK)( DWORD, LPBYTE, LONG, LONG * );
|
2000-05-07 22:23:41 +02:00
|
|
|
|
2001-11-16 19:11:15 +01:00
|
|
|
/* Rich edit control styles */
|
|
|
|
#define ES_SAVESEL 0x00008000
|
|
|
|
#define ES_SUNKEN 0x00004000
|
|
|
|
#define ES_DISABLENOSCROLL 0x00002000
|
|
|
|
#define ES_SELECTIONBAR 0x01000000
|
|
|
|
#define ES_VERTICAL 0x00400000
|
|
|
|
#define ES_NOIME 0x00080000
|
|
|
|
#define ES_SELFIME 0x00040000
|
|
|
|
|
|
|
|
/* CHARFORMAT structure */
|
|
|
|
typedef struct _charformat
|
|
|
|
{
|
|
|
|
UINT cbSize;
|
|
|
|
DWORD dwMask;
|
|
|
|
DWORD dwEffects;
|
|
|
|
LONG yHeight;
|
|
|
|
LONG yOffset;
|
|
|
|
COLORREF crTextColor;
|
|
|
|
BYTE bCharSet;
|
|
|
|
BYTE bPitchAndFamily;
|
|
|
|
char szFaceName[LF_FACESIZE];
|
|
|
|
} CHARFORMATA;
|
|
|
|
|
|
|
|
typedef struct _charformatw
|
|
|
|
{
|
|
|
|
UINT cbSize;
|
|
|
|
DWORD dwMask;
|
|
|
|
DWORD dwEffects;
|
|
|
|
LONG yHeight;
|
|
|
|
LONG yOffset;
|
|
|
|
COLORREF crTextColor;
|
|
|
|
BYTE bCharSet;
|
|
|
|
BYTE bPitchAndFamily;
|
|
|
|
WCHAR szFaceName[LF_FACESIZE];
|
|
|
|
} CHARFORMATW;
|
|
|
|
|
|
|
|
DECL_WINELIB_TYPE_AW(CHARFORMAT)
|
|
|
|
|
|
|
|
/* CHARFORMAT masks */
|
|
|
|
#define CFM_BOLD 0x00000001
|
|
|
|
#define CFM_ITALIC 0x00000002
|
|
|
|
#define CFM_UNDERLINE 0x00000004
|
|
|
|
#define CFM_STRIKEOUT 0x00000008
|
|
|
|
#define CFM_PROTECTED 0x00000010
|
|
|
|
#define CFM_SIZE 0x80000000
|
|
|
|
#define CFM_COLOR 0x40000000
|
|
|
|
#define CFM_FACE 0x20000000
|
|
|
|
#define CFM_OFFSET 0x10000000
|
|
|
|
#define CFM_CHARSET 0x08000000
|
|
|
|
|
|
|
|
/* CHARFORMAT effects */
|
|
|
|
#define CFE_BOLD 0x00000001
|
|
|
|
#define CFE_ITALIC 0x00000002
|
|
|
|
#define CFE_UNDERLINE 0x00000004
|
|
|
|
#define CFE_STRIKEOUT 0x00000008
|
|
|
|
#define CFE_PROTECTED 0x00000010
|
|
|
|
#define CFE_AUTOCOLOR 0x40000000
|
|
|
|
|
|
|
|
/* ECO operations */
|
|
|
|
#define ECOOP_SET 0x0001
|
|
|
|
#define ECOOP_OR 0x0002
|
|
|
|
#define ECOOP_AND 0x0003
|
|
|
|
#define ECOOP_XOR 0x0004
|
|
|
|
|
|
|
|
/* edit control options */
|
|
|
|
#define ECO_AUTOWORDSELECTION 0x00000001
|
|
|
|
#define ECO_AUTOVSCROLL 0x00000040
|
|
|
|
#define ECO_AUTOHSCROLL 0x00000080
|
|
|
|
#define ECO_NOHIDESEL 0x00000100
|
|
|
|
#define ECO_READONLY 0x00000800
|
|
|
|
#define ECO_WANTRETURN 0x00001000
|
|
|
|
#define ECO_SAVESEL 0x00008000
|
|
|
|
#define ECO_SELECTIONBAR 0x01000000
|
|
|
|
#define ECO_VERTICAL 0x00400000
|
|
|
|
|
|
|
|
/* Event notification masks */
|
|
|
|
#define ENM_NONE 0x00000000
|
|
|
|
#define ENM_CHANGE 0x00000001
|
|
|
|
#define ENM_UPDATE 0x00000002
|
|
|
|
#define ENM_SCROLL 0x00000004
|
|
|
|
#define ENM_KEYEVENTS 0x00010000
|
|
|
|
#define ENM_MOUSEEVENTS 0x00020000
|
|
|
|
#define ENM_REQUESTRESIZE 0x00040000
|
|
|
|
#define ENM_SELCHANGE 0x00080000
|
|
|
|
#define ENM_DROPFILES 0x00100000
|
|
|
|
#define ENM_PROTECTED 0x00200000
|
|
|
|
#define ENM_CORRECTTEXT 0x00400000
|
|
|
|
#define ENM_IMECHANGE 0x00800000
|
|
|
|
|
2001-01-22 20:25:27 +01:00
|
|
|
typedef struct _charrange
|
|
|
|
{
|
|
|
|
LONG cpMin;
|
|
|
|
LONG cpMax;
|
|
|
|
} CHARRANGE;
|
|
|
|
|
2000-05-07 22:23:41 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
DWORD dwCookie;
|
|
|
|
DWORD dwError;
|
|
|
|
EDITSTREAMCALLBACK pfnCallback;
|
|
|
|
} EDITSTREAM;
|
|
|
|
|
|
|
|
#define SF_TEXT 0x0001
|
|
|
|
#define SF_RTF 0x0002
|
|
|
|
#define SF_RTFNOOBJS 0x0003
|
|
|
|
#define SF_TEXTIZED 0x0004
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "poppack.h"
|
|
|
|
|
|
|
|
#endif /* __WINE_RICHEDIT_H */
|