source: trunk/Include/api_richedit.sbp @ 435

Last change on this file since 435 was 300, checked in by dai, 16 years ago

trunkディレクトリを作成。bin、Include、TestCaseをtrunkに移動した。
標準ライブラリのビルドバッチを追加。

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