annotate win32/richedit.d @ 1:4a9dcbd9e54f

-files of 0.13 beta -fixes so that it now compiles with the current dmd version
author marton@basel.hu
date Tue, 05 Apr 2011 20:44:01 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
1 /***********************************************************************\
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
2 * richedit.d *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
3 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
4 * Windows API header module *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
5 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
6 * Translated from MinGW Windows headers *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
7 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
8 * Placed into public domain *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
9 \***********************************************************************/
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
10 module win32.richedit;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
11
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
12 private import win32.windef, win32.winuser;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
13 private import win32.wingdi; // for LF_FACESIZE
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
14
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
15 align(4):
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
16
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
17 version(Unicode) {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
18 const wchar[] RICHEDIT_CLASS = "RichEdit20W";
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
19 } else {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
20 const char[] RICHEDIT_CLASS = "RichEdit20A";
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
21 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
22
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
23 const RICHEDIT_CLASS10A = "RICHEDIT";
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
24
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
25 const TCHAR[]
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
26 CF_RTF = "Rich Text Format",
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
27 CF_RTFNOOBJS = "Rich Text Format Without Objects",
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
28 CF_RETEXTOBJ = "RichEdit Text and Objects";
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
29
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
30 const DWORD
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
31 CFM_BOLD = 1,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
32 CFM_ITALIC = 2,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
33 CFM_UNDERLINE = 4,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
34 CFM_STRIKEOUT = 8,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
35 CFM_PROTECTED = 16,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
36 CFM_LINK = 32,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
37 CFM_SIZE = 0x80000000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
38 CFM_COLOR = 0x40000000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
39 CFM_FACE = 0x20000000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
40 CFM_OFFSET = 0x10000000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
41 CFM_CHARSET = 0x08000000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
42 CFM_SUBSCRIPT = 0x00030000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
43 CFM_SUPERSCRIPT = 0x00030000;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
44
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
45 const DWORD
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
46 CFE_BOLD = 1,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
47 CFE_ITALIC = 2,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
48 CFE_UNDERLINE = 4,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
49 CFE_STRIKEOUT = 8,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
50 CFE_PROTECTED = 16,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
51 CFE_SUBSCRIPT = 0x00010000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
52 CFE_SUPERSCRIPT = 0x00020000,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
53 CFE_AUTOCOLOR = 0x40000000;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
54
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
55 const CFM_EFFECTS = CFM_BOLD | CFM_ITALIC | CFM_UNDERLINE | CFM_COLOR
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
56 | CFM_STRIKEOUT | CFE_PROTECTED | CFM_LINK;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
57
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
58 // flags for EM_SETIMEOPTIONS
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
59 const LPARAM
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
60 IMF_FORCENONE = 1,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
61 IMF_FORCEENABLE = 2,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
62 IMF_FORCEDISABLE = 4,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
63 IMF_CLOSESTATUSWINDOW = 8,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
64 IMF_VERTICAL = 32,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
65 IMF_FORCEACTIVE = 64,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
66 IMF_FORCEINACTIVE = 128,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
67 IMF_FORCEREMEMBER = 256;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
68
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
69 const SEL_EMPTY=0;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
70 const SEL_TEXT=1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
71 const SEL_OBJECT=2;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
72 const SEL_MULTICHAR=4;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
73 const SEL_MULTIOBJECT=8;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
74
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
75 const MAX_TAB_STOPS=32;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
76
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
77 const PFM_ALIGNMENT=8;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
78 const PFM_NUMBERING=32;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
79 const PFM_OFFSET=4;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
80 const PFM_OFFSETINDENT=0x80000000;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
81 const PFM_RIGHTINDENT=2;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
82 const PFM_STARTINDENT=1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
83 const PFM_TABSTOPS=16;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
84 const PFM_BORDER=2048;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
85 const PFM_LINESPACING=256;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
86 const PFM_NUMBERINGSTART=32768;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
87 const PFM_NUMBERINGSTYLE=8192;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
88 const PFM_NUMBERINGTAB=16384;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
89 const PFM_SHADING=4096;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
90 const PFM_SPACEAFTER=128;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
91 const PFM_SPACEBEFORE=64;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
92 const PFM_STYLE=1024;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
93 const PFM_DONOTHYPHEN=4194304;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
94 const PFM_KEEP=131072;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
95 const PFM_KEEPNEXT=262144;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
96 const PFM_NOLINENUMBER=1048576;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
97 const PFM_NOWIDOWCONTROL=2097152;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
98 const PFM_PAGEBREAKBEFORE=524288;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
99 const PFM_RTLPARA=65536;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
100 const PFM_SIDEBYSIDE=8388608;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
101 const PFM_TABLE=1073741824;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
102 const PFN_BULLET=1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
103
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
104 const PFE_DONOTHYPHEN=64;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
105 const PFE_KEEP=2;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
106 const PFE_KEEPNEXT=4;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
107 const PFE_NOLINENUMBER=16;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
108 const PFE_NOWIDOWCONTROL=32;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
109 const PFE_PAGEBREAKBEFORE=8;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
110 const PFE_RTLPARA=1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
111 const PFE_SIDEBYSIDE=128;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
112 const PFE_TABLE=16384;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
113 const PFA_LEFT=1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
114 const PFA_RIGHT=2;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
115 const PFA_CENTER=3;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
116 const PFA_JUSTIFY=4;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
117 const PFA_FULL_INTERWORD=4;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
118
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
119 const SF_TEXT=1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
120 const SF_RTF=2;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
121 const SF_RTFNOOBJS=3;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
122 const SF_TEXTIZED=4;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
123 const SF_UNICODE=16;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
124 const SF_USECODEPAGE=32;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
125 const SF_NCRFORNONASCII=64;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
126 const SF_RTFVAL=0x0700;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
127
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
128 const SFF_PWD=0x0800;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
129 const SFF_KEEPDOCINFO=0x1000;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
130 const SFF_PERSISTVIEWSCALE=0x2000;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
131 const SFF_PLAINRTF=0x4000;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
132 const SFF_SELECTION=0x8000;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
133
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
134 const WB_CLASSIFY = 3;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
135 const WB_MOVEWORDLEFT = 4;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
136 const WB_MOVEWORDRIGHT = 5;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
137 const WB_LEFTBREAK = 6;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
138 const WB_RIGHTBREAK = 7;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
139 const WB_MOVEWORDPREV = 4;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
140 const WB_MOVEWORDNEXT = 5;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
141 const WB_PREVBREAK = 6;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
142 const WB_NEXTBREAK = 7;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
143
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
144 const WBF_WORDWRAP = 16;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
145 const WBF_WORDBREAK = 32;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
146 const WBF_OVERFLOW = 64;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
147 const WBF_LEVEL1 = 128;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
148 const WBF_LEVEL2 = 256;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
149 const WBF_CUSTOM = 512;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
150
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
151 const ES_DISABLENOSCROLL = 8192;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
152 const ES_SUNKEN = 16384;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
153 const ES_SAVESEL = 32768;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
154 const ES_EX_NOCALLOLEINIT = 16777216;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
155 const ES_NOIME = 524288;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
156 const ES_NOOLEDRAGDROP = 8;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
157 const ES_SELECTIONBAR = 16777216;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
158 const ES_SELFIME = 262144;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
159 const ES_VERTICAL = 4194304;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
160
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
161 const EM_CANPASTE = WM_USER+50;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
162 const EM_DISPLAYBAND = WM_USER+51;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
163 const EM_EXGETSEL = WM_USER+52;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
164 const EM_EXLIMITTEXT = WM_USER+53;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
165 const EM_EXLINEFROMCHAR = WM_USER+54;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
166 const EM_EXSETSEL = WM_USER+55;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
167 const EM_FINDTEXT = WM_USER+56;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
168 const EM_FORMATRANGE = WM_USER+57;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
169 const EM_GETCHARFORMAT = WM_USER+58;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
170 const EM_GETEVENTMASK = WM_USER+59;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
171 const EM_GETOLEINTERFACE = WM_USER+60;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
172 const EM_GETPARAFORMAT = WM_USER+61;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
173 const EM_GETSELTEXT = WM_USER+62;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
174 const EM_HIDESELECTION = WM_USER+63;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
175 const EM_PASTESPECIAL = WM_USER+64;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
176 const EM_REQUESTRESIZE = WM_USER+65;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
177 const EM_SELECTIONTYPE = WM_USER+66;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
178 const EM_SETBKGNDCOLOR = WM_USER+67;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
179 const EM_SETCHARFORMAT = WM_USER+68;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
180 const EM_SETEVENTMASK = WM_USER+69;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
181 const EM_SETOLECALLBACK = WM_USER+70;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
182 const EM_SETPARAFORMAT = WM_USER+71;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
183 const EM_SETTARGETDEVICE = WM_USER+72;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
184 const EM_STREAMIN = WM_USER+73;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
185 const EM_STREAMOUT = WM_USER+74;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
186 const EM_GETTEXTRANGE = WM_USER+75;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
187 const EM_FINDWORDBREAK = WM_USER+76;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
188 const EM_SETOPTIONS = WM_USER+77;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
189 const EM_GETOPTIONS = WM_USER+78;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
190 const EM_FINDTEXTEX = WM_USER+79;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
191 const EM_GETWORDBREAKPROCEX = WM_USER+80;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
192 const EM_SETWORDBREAKPROCEX = WM_USER+81;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
193 /* RichEdit 2.0 messages */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
194 const EM_SETUNDOLIMIT = WM_USER+82;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
195 const EM_REDO = WM_USER+84;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
196 const EM_CANREDO = WM_USER+85;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
197 const EM_GETUNDONAME = WM_USER+86;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
198 const EM_GETREDONAME = WM_USER+87;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
199 const EM_STOPGROUPTYPING = WM_USER+88;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
200 const EM_SETTEXTMODE = WM_USER+89;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
201 const EM_GETTEXTMODE = WM_USER+90;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
202 const EM_AUTOURLDETECT = WM_USER+91;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
203 const EM_GETAUTOURLDETECT = WM_USER + 92;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
204 const EM_SETPALETTE = WM_USER + 93;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
205 const EM_GETTEXTEX = WM_USER+94;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
206 const EM_GETTEXTLENGTHEX = WM_USER+95;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
207 const EM_SHOWSCROLLBAR = WM_USER+96;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
208 const EM_SETTEXTEX = WM_USER + 97;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
209 const EM_SETPUNCTUATION = WM_USER + 100;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
210 const EM_GETPUNCTUATION = WM_USER + 101;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
211 const EM_SETWORDWRAPMODE = WM_USER + 102;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
212 const EM_GETWORDWRAPMODE = WM_USER + 103;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
213 const EM_SETIMECOLOR = WM_USER + 104;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
214 const EM_GETIMECOLOR = WM_USER + 105;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
215 const EM_SETIMEOPTIONS = WM_USER + 106;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
216 const EM_GETIMEOPTIONS = WM_USER + 107;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
217 const EM_SETLANGOPTIONS = WM_USER+120;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
218 const EM_GETLANGOPTIONS = WM_USER+121;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
219 const EM_GETIMECOMPMODE = WM_USER+122;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
220 const EM_FINDTEXTW = WM_USER + 123;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
221 const EM_FINDTEXTEXW = WM_USER + 124;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
222 const EM_RECONVERSION = WM_USER + 125;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
223 const EM_SETBIDIOPTIONS = WM_USER + 200;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
224 const EM_GETBIDIOPTIONS = WM_USER + 201;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
225 const EM_SETTYPOGRAPHYOPTIONS = WM_USER+202;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
226 const EM_GETTYPOGRAPHYOPTIONS = WM_USER+203;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
227 const EM_SETEDITSTYLE = WM_USER + 204;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
228 const EM_GETEDITSTYLE = WM_USER + 205;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
229 const EM_GETSCROLLPOS = WM_USER+221;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
230 const EM_SETSCROLLPOS = WM_USER+222;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
231 const EM_SETFONTSIZE = WM_USER+223;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
232 const EM_GETZOOM = WM_USER+224;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
233 const EM_SETZOOM = WM_USER+225;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
234
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
235 const EN_MSGFILTER = 1792;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
236 const EN_REQUESTRESIZE = 1793;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
237 const EN_SELCHANGE = 1794;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
238 const EN_DROPFILES = 1795;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
239 const EN_PROTECTED = 1796;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
240 const EN_CORRECTTEXT = 1797;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
241 const EN_STOPNOUNDO = 1798;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
242 const EN_IMECHANGE = 1799;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
243 const EN_SAVECLIPBOARD = 1800;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
244 const EN_OLEOPFAILED = 1801;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
245 const EN_LINK = 1803;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
246
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
247 const ENM_NONE = 0;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
248 const ENM_CHANGE = 1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
249 const ENM_UPDATE = 2;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
250 const ENM_SCROLL = 4;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
251 const ENM_SCROLLEVENTS = 8;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
252 const ENM_DRAGDROPDONE = 16;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
253 const ENM_KEYEVENTS = 65536;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
254 const ENM_MOUSEEVENTS = 131072;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
255 const ENM_REQUESTRESIZE = 262144;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
256 const ENM_SELCHANGE = 524288;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
257 const ENM_DROPFILES = 1048576;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
258 const ENM_PROTECTED = 2097152;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
259 const ENM_CORRECTTEXT = 4194304;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
260 const ENM_IMECHANGE = 8388608;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
261 const ENM_LANGCHANGE = 16777216;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
262 const ENM_OBJECTPOSITIONS = 33554432;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
263 const ENM_LINK = 67108864;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
264
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
265 const ECO_AUTOWORDSELECTION=1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
266 const ECO_AUTOVSCROLL=64;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
267 const ECO_AUTOHSCROLL=128;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
268 const ECO_NOHIDESEL=256;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
269 const ECO_READONLY=2048;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
270 const ECO_WANTRETURN=4096;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
271 const ECO_SAVESEL=0x8000;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
272 const ECO_SELECTIONBAR=0x1000000;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
273 const ECO_VERTICAL=0x400000;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
274
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
275 enum {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
276 ECOOP_SET = 1,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
277 ECOOP_OR,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
278 ECOOP_AND,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
279 ECOOP_XOR
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
280 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
281
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
282 const SCF_DEFAULT = 0;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
283 const SCF_SELECTION = 1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
284 const SCF_WORD = 2;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
285 const SCF_ALL = 4;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
286 const SCF_USEUIRULES = 8;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
287
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
288 const TM_PLAINTEXT=1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
289 const TM_RICHTEXT=2;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
290 const TM_SINGLELEVELUNDO=4;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
291 const TM_MULTILEVELUNDO=8;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
292 const TM_SINGLECODEPAGE=16;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
293 const TM_MULTICODEPAGE=32;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
294
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
295 const GT_DEFAULT=0;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
296 const GT_USECRLF=1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
297
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
298 const yHeightCharPtsMost=1638;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
299 const lDefaultTab=720;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
300
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
301 struct CHARFORMATA {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
302 UINT cbSize = this.sizeof;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
303 DWORD dwMask;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
304 DWORD dwEffects;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
305 LONG yHeight;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
306 LONG yOffset;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
307 COLORREF crTextColor;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
308 BYTE bCharSet;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
309 BYTE bPitchAndFamily;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
310 char szFaceName[LF_FACESIZE];
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
311 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
312 struct CHARFORMATW {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
313 UINT cbSize = this.sizeof;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
314 DWORD dwMask;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
315 DWORD dwEffects;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
316 LONG yHeight;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
317 LONG yOffset;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
318 COLORREF crTextColor;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
319 BYTE bCharSet;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
320 BYTE bPitchAndFamily;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
321 WCHAR szFaceName[LF_FACESIZE];
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
322 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
323
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
324 struct CHARFORMAT2A {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
325 UINT cbSize = this.sizeof;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
326 DWORD dwMask;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
327 DWORD dwEffects;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
328 LONG yHeight;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
329 LONG yOffset;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
330 COLORREF crTextColor;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
331 BYTE bCharSet;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
332 BYTE bPitchAndFamily;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
333 char szFaceName[LF_FACESIZE];
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
334 WORD wWeight;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
335 SHORT sSpacing;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
336 COLORREF crBackColor;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
337 LCID lcid;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
338 DWORD dwReserved;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
339 SHORT sStyle;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
340 WORD wKerning;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
341 BYTE bUnderlineType;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
342 BYTE bAnimation;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
343 BYTE bRevAuthor;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
344 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
345
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
346 struct CHARFORMAT2W {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
347 UINT cbSize = this.sizeof;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
348 DWORD dwMask;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
349 DWORD dwEffects;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
350 LONG yHeight;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
351 LONG yOffset;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
352 COLORREF crTextColor;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
353 BYTE bCharSet;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
354 BYTE bPitchAndFamily;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
355 WCHAR szFaceName[LF_FACESIZE];
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
356 WORD wWeight;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
357 SHORT sSpacing;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
358 COLORREF crBackColor;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
359 LCID lcid;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
360 DWORD dwReserved;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
361 SHORT sStyle;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
362 WORD wKerning;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
363 BYTE bUnderlineType;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
364 BYTE bAnimation;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
365 BYTE bRevAuthor;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
366 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
367
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
368 struct CHARRANGE {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
369 LONG cpMin;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
370 LONG cpMax;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
371 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
372
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
373 struct COMPCOLOR {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
374 COLORREF crText;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
375 COLORREF crBackground;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
376 DWORD dwEffects;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
377 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
378
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
379 extern (Windows) {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
380 alias DWORD function(DWORD,PBYTE,LONG,LONG*) EDITSTREAMCALLBACK;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
381 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
382
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
383 struct EDITSTREAM {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
384 DWORD dwCookie;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
385 DWORD dwError;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
386 EDITSTREAMCALLBACK pfnCallback;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
387 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
388
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
389 struct ENCORRECTTEXT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
390 NMHDR nmhdr;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
391 CHARRANGE chrg;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
392 WORD seltyp;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
393 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
394
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
395 struct ENDROPFILES {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
396 NMHDR nmhdr;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
397 HANDLE hDrop;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
398 LONG cp;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
399 BOOL fProtected;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
400 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
401
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
402 struct ENLINK {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
403 NMHDR nmhdr;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
404 UINT msg;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
405 WPARAM wParam;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
406 LPARAM lParam;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
407 CHARRANGE chrg;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
408 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
409
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
410 struct ENOLEOPFAILED {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
411 NMHDR nmhdr;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
412 LONG iob;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
413 LONG lOper;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
414 HRESULT hr;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
415 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
416
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
417 struct ENPROTECTED {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
418 NMHDR nmhdr;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
419 UINT msg;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
420 WPARAM wParam;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
421 LPARAM lParam;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
422 CHARRANGE chrg;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
423 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
424 alias ENPROTECTED* LPENPROTECTED;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
425
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
426 struct ENSAVECLIPBOARD {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
427 NMHDR nmhdr;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
428 LONG cObjectCount;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
429 LONG cch;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
430 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
431
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
432 struct FINDTEXTA {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
433 CHARRANGE chrg;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
434 LPSTR lpstrText;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
435 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
436
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
437 struct FINDTEXTW {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
438 CHARRANGE chrg;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
439 LPWSTR lpstrText;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
440 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
441
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
442 struct FINDTEXTEXA {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
443 CHARRANGE chrg;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
444 LPSTR lpstrText;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
445 CHARRANGE chrgText;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
446 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
447
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
448 struct FINDTEXTEXW {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
449 CHARRANGE chrg;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
450 LPWSTR lpstrText;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
451 CHARRANGE chrgText;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
452 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
453
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
454 struct FORMATRANGE {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
455 HDC hdc;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
456 HDC hdcTarget;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
457 RECT rc;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
458 RECT rcPage;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
459 CHARRANGE chrg;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
460 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
461
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
462 struct MSGFILTER {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
463 NMHDR nmhdr;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
464 UINT msg;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
465 WPARAM wParam;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
466 LPARAM lParam;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
467 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
468
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
469 struct PARAFORMAT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
470 UINT cbSize = this.sizeof;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
471 DWORD dwMask;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
472 WORD wNumbering;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
473 WORD wReserved;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
474 LONG dxStartIndent;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
475 LONG dxRightIndent;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
476 LONG dxOffset;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
477 WORD wAlignment;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
478 SHORT cTabCount;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
479 LONG rgxTabs[MAX_TAB_STOPS];
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
480 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
481
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
482 struct PARAFORMAT2 {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
483 UINT cbSize = this.sizeof;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
484 DWORD dwMask;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
485 WORD wNumbering;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
486 WORD wEffects;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
487 LONG dxStartIndent;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
488 LONG dxRightIndent;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
489 LONG dxOffset;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
490 WORD wAlignment;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
491 SHORT cTabCount;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
492 LONG rgxTabs[MAX_TAB_STOPS];
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
493 LONG dySpaceBefore;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
494 LONG dySpaceAfter;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
495 LONG dyLineSpacing;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
496 SHORT sStype;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
497 BYTE bLineSpacingRule;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
498 BYTE bOutlineLevel;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
499 WORD wShadingWeight;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
500 WORD wShadingStyle;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
501 WORD wNumberingStart;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
502 WORD wNumberingStyle;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
503 WORD wNumberingTab;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
504 WORD wBorderSpace;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
505 WORD wBorderWidth;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
506 WORD wBorders;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
507 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
508
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
509 struct SELCHANGE {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
510 NMHDR nmhdr;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
511 CHARRANGE chrg;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
512 WORD seltyp;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
513 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
514
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
515 struct TEXTRANGEA {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
516 CHARRANGE chrg;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
517 LPSTR lpstrText;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
518 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
519
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
520 struct TEXTRANGEW {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
521 CHARRANGE chrg;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
522 LPWSTR lpstrText;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
523 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
524
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
525 struct REQRESIZE {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
526 NMHDR nmhdr;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
527 RECT rc;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
528 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
529
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
530 struct REPASTESPECIAL {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
531 DWORD dwAspect;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
532 DWORD dwParam;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
533 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
534
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
535 struct PUNCTUATION {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
536 UINT iSize;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
537 LPSTR szPunctuation;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
538 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
539
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
540 struct GETTEXTEX {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
541 DWORD cb;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
542 DWORD flags;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
543 UINT codepage;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
544 LPCSTR lpDefaultChar;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
545 LPBOOL lpUsedDefaultChar;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
546 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
547
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
548 extern (Windows) {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
549 alias LONG function(char*,LONG,BYTE,INT) EDITWORDBREAKPROCEX;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
550 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
551
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
552 /* Defines for EM_SETTYPOGRAPHYOPTIONS */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
553 const TO_ADVANCEDTYPOGRAPHY = 1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
554 const TO_SIMPLELINEBREAK = 2;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
555
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
556 /* Defines for GETTEXTLENGTHEX */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
557 const GTL_DEFAULT = 0;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
558 const GTL_USECRLF = 1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
559 const GTL_PRECISE = 2;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
560 const GTL_CLOSE = 4;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
561 const GTL_NUMCHARS = 8;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
562 const GTL_NUMBYTES = 16;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
563
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
564 struct GETTEXTLENGTHEX {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
565 DWORD flags;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
566 UINT codepage;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
567 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
568
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
569 version(Unicode) {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
570 alias CHARFORMATW CHARFORMAT;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
571 alias CHARFORMAT2W CHARFORMAT2;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
572 alias FINDTEXTW FINDTEXT;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
573 alias FINDTEXTEXW FINDTEXTEX;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
574 alias TEXTRANGEW TEXTRANGE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
575 } else {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
576 alias CHARFORMATA CHARFORMAT;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
577 alias CHARFORMAT2A CHARFORMAT2;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
578 alias FINDTEXTA FINDTEXT;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
579 alias FINDTEXTEXA FINDTEXTEX;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
580 alias TEXTRANGEA TEXTRANGE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
581 }