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