source: Include/api_richedit.sbp@ 95

Last change on this file since 95 was 1, checked in by (none), 18 years ago
File size: 9.4 KB
Line 
1' api_richedit.sbp
2
3
4#ifndef _INC_RICHEDIT
5#define _INC_RICHEDIT
6
7
8Const MAX_TAB_STOPS = 32
9
10
11'CHARFORMAT struct
12Const CFM_BOLD = &H00000001
13Const CFM_ITALIC = &H00000002
14Const CFM_UNDERLINE = &H00000004
15Const CFM_STRIKEOUT = &H00000008
16Const CFM_PROTECTED = &H00000010
17Const CFM_LINK = &H00000020
18Const CFM_SIZE = &H80000000
19Const CFM_COLOR = &H40000000
20Const CFM_FACE = &H20000000
21Const CFM_OFFSET = &H10000000
22Const CFM_CHARSET = &H08000000
23
24Const CFE_BOLD = &H0001
25Const CFE_ITALIC = &H0002
26Const CFE_UNDERLINE = &H0004
27Const CFE_STRIKEOUT = &H0008
28Const CFE_PROTECTED = &H0010
29Const CFE_LINK = &H0020
30Const CFE_AUTOCOLOR = &H40000000
31
32Type CHARFORMAT
33 cbSize As DWord
34 dwMask As DWord
35 dwEffects As DWord
36 yHeight As Long
37 yOffset As Long
38 crTextColor As DWord
39 bCharSet As Byte
40 bPitchAndFamily As Byte
41 szFaceName[ELM(LF_FACESIZE)] As Byte
42End Type
43
44
45'CHARFORMAT2 struct
46Const CFM_SMALLCAPS = &H0040
47Const CFM_ALLCAPS = &H0080
48Const CFM_HIDDEN = &H0100
49Const CFM_OUTLINE = &H0200
50Const CFM_SHADOW = &H0400
51Const CFM_EMBOSS = &H0800
52Const CFM_IMPRINT = &H1000
53Const CFM_DISABLED = &H2000
54Const CFM_REVISED = &H4000
55Const CFM_BACKCOLOR = &H04000000
56Const CFM_LCID = &H02000000
57Const CFM_UNDERLINETYPE = &H00800000
58Const CFM_WEIGHT = &H00400000
59Const CFM_SPACING = &H00200000
60Const CFM_KERNING = &H00100000
61Const CFM_STYLE = &H00080000
62Const CFM_ANIMATION = &H00040000
63Const CFM_REVAUTHOR = &H00008000
64Const CFM_SUBSCRIPT = &H00030000
65Const CFM_SUPERSCRIPT = CFM_SUBSCRIPT
66
67Const CFE_SUBSCRIPT = &H00010000
68Const CFE_SUPERSCRIPT = &H00020000
69Const CFE_SMALLCAPS = CFM_SMALLCAPS
70Const CFE_ALLCAPS = CFM_ALLCAPS
71Const CFE_HIDDEN = CFM_HIDDEN
72Const CFE_OUTLINE = CFM_OUTLINE
73Const CFE_SHADOW = CFM_SHADOW
74Const CFE_EMBOSS = CFM_EMBOSS
75Const CFE_IMPRINT = CFM_IMPRINT
76Const CFE_DISABLED = CFM_DISABLED
77Const CFE_REVISED = CFM_REVISED
78
79Const CFU_CF1UNDERLINE = &HFF
80Const CFU_INVERT = &HFE
81Const CFU_UNDERLINEDOTTED = &H4
82Const CFU_UNDERLINEDOUBLE = &H3
83Const CFU_UNDERLINEWORD = &H2
84Const CFU_UNDERLINE = &H1
85Const CFU_UNDERLINENONE = 0
86
87Type CHARFORMAT2
88 cbSize As DWord
89 dwMask As DWord
90 dwEffects As DWord
91 yHeight As Long
92 yOffset As Long
93 crTextColor As DWord
94 bCharSet As Byte
95 bPitchAndFamily As Byte
96 szFaceName[ELM(LF_FACESIZE)] As Byte
97 wWeight As Word
98 sSpacing As Integer
99 crBackColor As DWord
100 lcid As DWord
101 dwReserved As DWord
102 sStyle As Integer
103 wKerning As Word
104 bUnderlineType As Byte
105 bAnimation As Byte
106 bRevAuthor As Byte
107 bReserved1 As Byte
108End Type
109
110
111'PARAFORMAT struct
112Const PFM_STARTINDENT = &H00000001
113Const PFM_RIGHTINDENT = &H00000002
114Const PFM_OFFSET = &H00000004
115Const PFM_ALIGNMENT = &H00000008
116Const PFM_TABSTOPS = &H00000010
117Const PFM_NUMBERING = &H00000020
118Const PFM_OFFSETINDENT = &H80000000
119
120Const PFA_LEFT = &H0001
121Const PFA_RIGHT = &H0002
122Const PFA_CENTER = &H0003
123
124Type PARAFORMAT
125 cbSize As DWord
126 dwMask As DWord
127 wNumbering As Word
128 wReserved As Word
129 dxStartIndent As Long
130 dxRightIndent As Long
131 dxOffset As Long
132 wAlignment As Word
133 cTabCount As Integer
134 rgxTabs[ELM(MAX_TAB_STOPS)] As Long
135End Type
136
137
138'PARAFORMAT2 struct
139Const PFM_SPACEBEFORE = &H00000040
140Const PFM_SPACEAFTER = &H00000080
141Const PFM_LINESPACING = &H00000100
142Const PFM_STYLE = &H00000400
143Const PFM_BORDER = &H00000800
144Const PFM_SHADING = &H00001000
145Const PFM_NUMBERINGSTYLE = &H00002000
146Const PFM_NUMBERINGTAB = &H00004000
147Const PFM_NUMBERINGSTART = &H00008000
148Const PFM_DIR = &H00010000
149Const PFM_RTLPARA = &H00010000
150Const PFM_KEEP = &H00020000
151Const PFM_KEEPNEXT = &H00040000
152Const PFM_PAGEBREAKBEFORE = &H00080000
153Const PFM_NOLINENUMBER = &H00100000
154Const PFM_NOWIDOWCONTROL = &H00200000
155Const PFM_DONOTHYPHEN = &H00400000
156Const PFM_SIDEBYSIDE = &H00800000
157Const PFM_TABLE = &Hc0000000
158
159Const PFE_RTLPARA = PFM_DIR >> 16
160Const PFE_RTLPAR = PFM_RTLPARA >> 16
161Const PFE_KEEP = PFM_KEEP >> 16
162Const PFE_KEEPNEXT = PFM_KEEPNEXT >> 16
163Const PFE_PAGEBREAKBEFORE = PFM_PAGEBREAKBEFORE >> 16
164Const PFE_NOLINENUMBER = PFM_NOLINENUMBER >> 16
165Const PFE_NOWIDOWCONTROL = PFM_NOWIDOWCONTROL >> 16
166Const PFE_DONOTHYPHEN = PFM_DONOTHYPHEN >> 16
167Const PFE_SIDEBYSIDE = PFM_SIDEBYSIDE >> 16
168
169Const PFA_JUSTIFY = &H0004
170
171Type PARAFORMAT2
172 cbSize As DWord
173 dwMask As DWord
174 wNumbering As Word
175 wReserved As Word
176 dxStartIndent As Long
177 dxRightIndent As Long
178 dxOffset As Long
179 wAlignment As Word
180 cTabCount As Integer
181 rgxTabs[ELM(MAX_TAB_STOPS)] As Long
182 dySpaceBefore As Long
183 dySpaceAfter As Long
184 dyLineSpacing As Long
185 sStyle As Integer
186 bLineSpacingRule As Byte
187 bCRC As Byte
188 wShadingWeight As Word
189 wShadingStyle As Word
190 wNumberingStart As Word
191 wNumberingStyle As Word
192 wNumberingTab As Word
193 wBorderSpace As Word
194 wBorderWidth As Word
195 wBorders As Word
196End Type
197
198
199
200'----------
201' Messages
202'----------
203
204Const EM_CANPASTE = WM_USER + 50
205Const EM_DISPLAYBAND = WM_USER + 51
206Const EM_EXGETSEL = WM_USER + 52
207Const EM_EXLIMITTEXT = WM_USER + 53
208Const EM_EXLINEFROMCHAR = WM_USER + 54
209Const EM_EXSETSEL = WM_USER + 55
210Const EM_FINDTEXT = WM_USER + 56
211Const EM_FORMATRANGE = WM_USER + 57
212Const EM_GETCHARFORMAT = WM_USER + 58
213Const EM_GETEVENTMASK = WM_USER + 59
214Const EM_GETOLEINTERFACE = WM_USER + 60
215Const EM_GETPARAFORMAT = WM_USER + 61
216Const EM_GETSELTEXT = WM_USER + 62
217Const EM_HIDESELECTION = WM_USER + 63
218Const EM_PASTESPECIAL = WM_USER + 64
219Const EM_REQUESTRESIZE = WM_USER + 65
220Const EM_SELECTIONTYPE = WM_USER + 66
221Const EM_SETBKGNDCOLOR = WM_USER + 67
222
223Const EM_SETCHARFORMAT = WM_USER + 68
224Const SCF_SELECTION = &H0001
225Const SCF_WORD = &H0002
226Const SCF_DEFAULT = &H0000
227Const SCF_ALL = &H0004
228Const SCF_USEUIRULES = &H0008
229
230Const EM_SETEVENTMASK = WM_USER + 69
231Const ENM_NONE = &H00000000
232Const ENM_CHANGE = &H00000001
233Const ENM_UPDATE = &H00000002
234Const ENM_SCROLL = &H00000004
235Const ENM_KEYEVENTS = &H00010000
236Const ENM_MOUSEEVENTS = &H00020000
237Const ENM_REQUESTRESIZE = &H00040000
238Const ENM_SELCHANGE = &H00080000
239Const ENM_DROPFILES = &H00100000
240Const ENM_PROTECTED = &H00200000
241Const ENM_CORRECTTEXT = &H00400000
242Const ENM_SCROLLEVENTS = &H00000008
243Const ENM_DRAGDROPDONE = &H00000010
244Const ENM_IMECHANGE = &H00800000
245Const ENM_LANGCHANGE = &H01000000
246Const ENM_OBJECTPOSITIONS = &H02000000
247Const ENM_LINK = &H04000000
248
249Const EM_SETOLECALLBACK = WM_USER + 70
250Const EM_SETPARAFORMAT = WM_USER + 71
251Const EM_SETTARGETDEVICE = WM_USER + 72
252Const EM_STREAMIN = WM_USER + 73
253Const EM_STREAMOUT = WM_USER + 74
254Const EM_GETTEXTRANGE = WM_USER + 75
255Const EM_FINDWORDBREAK = WM_USER + 76
256Const EM_SETOPTIONS = WM_USER + 77
257Const EM_GETOPTIONS = WM_USER + 78
258Const EM_FINDTEXTEX = WM_USER + 79
259Const EM_GETWORDBREAKPROCEX = WM_USER + 80
260Const EM_SETWORDBREAKPROCEX = WM_USER + 81
261Const EM_SETUNDOLIMIT = WM_USER + 82
262Const EM_REDO = WM_USER + 84
263Const EM_CANREDO = WM_USER + 85
264Const EM_GETUNDONAME = WM_USER + 86
265Const EM_GETREDONAME = WM_USER + 87
266Const EM_STOPGROUPTYPING = WM_USER + 88
267Const EM_SETTEXTMODE = WM_USER + 89
268Const EM_GETTEXTMODE = WM_USER + 90
269Const EM_AUTOURLDETECT = WM_USER + 91
270Const EM_GETAUTOURLDETECT = WM_USER + 92
271Const EM_SETPALETTE = WM_USER + 93
272Const EM_GETTEXTEX = WM_USER + 94
273Const EM_GETTEXTLENGTHEX = WM_USER + 95
274Const EM_SETPUNCTUATION = WM_USER + 100
275Const EM_GETPUNCTUATION = WM_USER + 101
276Const EM_SETWORDWRAPMODE = WM_USER + 102
277Const EM_GETWORDWRAPMODE = WM_USER + 103
278Const EM_SETIMECOLOR = WM_USER + 104
279Const EM_GETIMECOLOR = WM_USER + 105
280Const EM_SETIMEOPTIONS = WM_USER + 106
281Const EM_GETIMEOPTIONS = WM_USER + 107
282Const EM_CONVPOSITION = WM_USER + 108
283Const EM_SETLANGOPTIONS = WM_USER + 120
284Const EM_GETLANGOPTIONS = WM_USER + 121
285Const EM_GETIMECOMPMODE = WM_USER + 122
286Const EM_FINDTEXTW = WM_USER + 123
287Const EM_FINDTEXTEXW = WM_USER + 124
288Const EM_SETBIDIOPTIONS = WM_USER + 200
289Const EM_GETBIDIOPTIONS = WM_USER + 201
290
291
292
293'---------------
294' notifications
295'---------------
296
297Const EN_MSGFILTER = &H0700
298Type MSGFILTER
299 nmhdr As NMHDR
300 msg As DWord
301 wParam As WPARAM
302 lParam As LPARAM
303End Type
304
305Const EN_REQUESTRESIZE = &H0701
306Const EN_SELCHANGE = &H0702
307Const EN_DROPFILES = &H0703
308Const EN_PROTECTED = &H0704
309Const EN_CORRECTTEXT = &H0705
310Const EN_STOPNOUNDO = &H0706
311Const EN_IMECHANGE = &H0707
312Const EN_SAVECLIPBOARD = &H0708
313Const EN_OLEOPFAILED = &H0709
314Const EN_OBJECTPOSITIONS = &H070a
315Const EN_LINK = &H070b
316Const EN_DRAGDROPDONE = &H070c
317Const EN_ALIGN_LTR = &H0710
318Const EN_ALIGN_RTL = &H0711
319
320
321#endif '_INC_RICHEDIT
Note: See TracBrowser for help on using the repository browser.