1 | ' api_windowstyles.sbp
|
---|
2 |
|
---|
3 | '---------------
|
---|
4 | 'Window Styles
|
---|
5 | '---------------
|
---|
6 |
|
---|
7 | Const WS_OVERLAPPED = &H00000000
|
---|
8 | Const WS_POPUP = &H80000000
|
---|
9 | Const WS_CHILD = &H40000000
|
---|
10 | Const WS_MINIMIZE = &H20000000
|
---|
11 | Const WS_VISIBLE = &H10000000
|
---|
12 | Const WS_DISABLED = &H08000000
|
---|
13 | Const WS_CLIPSIBLINGS = &H04000000
|
---|
14 | Const WS_CLIPCHILDREN = &H02000000
|
---|
15 | Const WS_MAXIMIZE = &H01000000
|
---|
16 | Const WS_CAPTION = &H00C00000 'WS_BORDER or WS_DLGFRAME
|
---|
17 | Const WS_BORDER = &H00800000
|
---|
18 | Const WS_DLGFRAME = &H00400000
|
---|
19 | Const WS_VSCROLL = &H00200000
|
---|
20 | Const WS_HSCROLL = &H00100000
|
---|
21 | Const WS_SYSMENU = &H00080000
|
---|
22 | Const WS_THICKFRAME = &H00040000
|
---|
23 | Const WS_GROUP = &H00020000
|
---|
24 | Const WS_TABSTOP = &H00010000
|
---|
25 |
|
---|
26 | Const WS_MINIMIZEBOX = &H00020000
|
---|
27 | Const WS_MAXIMIZEBOX = &H00010000
|
---|
28 |
|
---|
29 | Const WS_TILED = WS_OVERLAPPED
|
---|
30 | Const WS_ICONIC = WS_MINIMIZE
|
---|
31 | Const WS_SIZEBOX = WS_THICKFRAME
|
---|
32 |
|
---|
33 | ' Common Window Styles
|
---|
34 | Const WS_OVERLAPPEDWINDOW =WS_OVERLAPPED or WS_CAPTION or WS_SYSMENU or WS_THICKFRAME or WS_MINIMIZEBOX or WS_MAXIMIZEBOX
|
---|
35 | Const WS_POPUPWINDOW = WS_POPUP or WS_BORDER or WS_SYSMENU
|
---|
36 | Const WS_CHILDWINDOW = WS_CHILD
|
---|
37 | Const WS_TILEDWINDOW = WS_OVERLAPPEDWINDOW
|
---|
38 |
|
---|
39 |
|
---|
40 | '-------------------------
|
---|
41 | ' Extended Window Styles
|
---|
42 | '-------------------------
|
---|
43 |
|
---|
44 | Const WS_EX_DLGMODALFRAME = &H00000001
|
---|
45 | Const WS_EX_NOPARENTNOTIFY = &H00000004
|
---|
46 | Const WS_EX_TOPMOST = &H00000008
|
---|
47 | Const WS_EX_ACCEPTFILES = &H00000010
|
---|
48 | Const WS_EX_TRANSPARENT = &H00000020
|
---|
49 | Const WS_EX_MDICHILD = &H00000040
|
---|
50 | Const WS_EX_TOOLWINDOW = &H00000080
|
---|
51 | Const WS_EX_WINDOWEDGE = &H00000100
|
---|
52 | Const WS_EX_CLIENTEDGE = &H00000200
|
---|
53 | Const WS_EX_CONTEXTHELP = &H00000400
|
---|
54 |
|
---|
55 | Const WS_EX_RIGHT = &H00001000
|
---|
56 | Const WS_EX_LEFT = &H00000000
|
---|
57 | Const WS_EX_RTLREADING = &H00002000
|
---|
58 | Const WS_EX_LTRREADING = &H00000000
|
---|
59 | Const WS_EX_LEFTSCROLLBAR = &H00004000
|
---|
60 | Const WS_EX_RIGHTSCROLLBAR = &H00000000
|
---|
61 |
|
---|
62 | Const WS_EX_CONTROLPARENT = &H00010000
|
---|
63 | Const WS_EX_STATICEDGE = &H00020000
|
---|
64 | Const WS_EX_APPWINDOW = &H00040000
|
---|
65 |
|
---|
66 | Const WS_EX_OVERLAPPEDWINDOW =WS_EX_WINDOWEDGE or WS_EX_CLIENTEDGE
|
---|
67 | Const WS_EX_PALETTEWINDOW = WS_EX_WINDOWEDGE or WS_EX_TOOLWINDOW or WS_EX_TOPMOST
|
---|
68 |
|
---|
69 |
|
---|
70 | '------------------------
|
---|
71 | ' Button Control Styles
|
---|
72 | '------------------------
|
---|
73 |
|
---|
74 | Const BS_PUSHBUTTON = &H00000000
|
---|
75 | Const BS_DEFPUSHBUTTON = &H00000001
|
---|
76 | Const BS_CHECKBOX = &H00000002
|
---|
77 | Const BS_AUTOCHECKBOX = &H00000003
|
---|
78 | Const BS_RADIOBUTTON = &H00000004
|
---|
79 | Const BS_3STATE = &H00000005
|
---|
80 | Const BS_AUTO3STATE = &H00000006
|
---|
81 | Const BS_GROUPBOX = &H00000007
|
---|
82 | Const BS_USERBUTTON = &H00000008
|
---|
83 | Const BS_AUTORADIOBUTTON =&H00000009
|
---|
84 | Const BS_OWNERDRAW = &H0000000B
|
---|
85 | Const BS_LEFTTEXT = &H00000020
|
---|
86 | Const BS_TEXT = &H00000000
|
---|
87 | Const BS_ICON = &H00000040
|
---|
88 | Const BS_BITMAP = &H00000080
|
---|
89 | Const BS_LEFT = &H00000100
|
---|
90 | Const BS_RIGHT = &H00000200
|
---|
91 | Const BS_CENTER = &H00000300
|
---|
92 | Const BS_TOP = &H00000400
|
---|
93 | Const BS_BOTTOM = &H00000800
|
---|
94 | Const BS_VCENTER = &H00000C00
|
---|
95 | Const BS_PUSHLIKE = &H00001000
|
---|
96 | Const BS_MULTILINE = &H00002000
|
---|
97 | Const BS_NOTIFY = &H00004000
|
---|
98 | Const BS_FLAT = &H00008000
|
---|
99 | Const BS_RIGHTBUTTON = BS_LEFTTEXT
|
---|
100 |
|
---|
101 |
|
---|
102 | '-------------------
|
---|
103 | ' Combo Box styles
|
---|
104 | '-------------------
|
---|
105 |
|
---|
106 | Const CBS_SIMPLE = &H0001
|
---|
107 | Const CBS_DROPDOWN = &H0002
|
---|
108 | Const CBS_DROPDOWNLIST = &H0003
|
---|
109 | Const CBS_OWNERDRAWFIXED = &H0010
|
---|
110 | Const CBS_OWNERDRAWVARIABLE =&H0020
|
---|
111 | Const CBS_AUTOHSCROLL = &H0040
|
---|
112 | Const CBS_OEMCONVERT = &H0080
|
---|
113 | Const CBS_SORT = &H0100
|
---|
114 | Const CBS_HASSTRINGS = &H0200
|
---|
115 | Const CBS_NOINTEGRALHEIGHT = &H0400
|
---|
116 | Const CBS_DISABLENOSCROLL = &H0800
|
---|
117 | Const CBS_UPPERCASE = &H2000
|
---|
118 | Const CBS_LOWERCASE = &H4000
|
---|
119 |
|
---|
120 |
|
---|
121 | '----------------------
|
---|
122 | ' Edit Control Styles
|
---|
123 | '----------------------
|
---|
124 |
|
---|
125 | Const ES_LEFT = &H0000
|
---|
126 | Const ES_CENTER = &H0001
|
---|
127 | Const ES_RIGHT = &H0002
|
---|
128 | Const ES_MULTILINE = &H0004
|
---|
129 | Const ES_UPPERCASE = &H0008
|
---|
130 | Const ES_LOWERCASE = &H0010
|
---|
131 | Const ES_PASSWORD = &H0020
|
---|
132 | Const ES_AUTOVSCROLL = &H0040
|
---|
133 | Const ES_AUTOHSCROLL = &H0080
|
---|
134 | Const ES_NOHIDESEL = &H0100
|
---|
135 | Const ES_OEMCONVERT = &H0400
|
---|
136 | Const ES_READONLY = &H0800
|
---|
137 | Const ES_WANTRETURN = &H1000
|
---|
138 | Const ES_NUMBER = &H2000
|
---|
139 |
|
---|
140 |
|
---|
141 | '-----------------
|
---|
142 | ' Listbox Styles
|
---|
143 | '-----------------
|
---|
144 |
|
---|
145 | Const LBS_NOTIFY = &H0001
|
---|
146 | Const LBS_SORT = &H0002
|
---|
147 | Const LBS_NOREDRAW = &H0004
|
---|
148 | Const LBS_MULTIPLESEL = &H0008
|
---|
149 | Const LBS_OWNERDRAWFIXED = &H0010
|
---|
150 | Const LBS_OWNERDRAWVARIABLE =&H0020
|
---|
151 | Const LBS_HASSTRINGS = &H0040
|
---|
152 | Const LBS_USETABSTOPS = &H0080
|
---|
153 | Const LBS_NOINTEGRALHEIGHT = &H0100
|
---|
154 | Const LBS_MULTICOLUMN = &H0200
|
---|
155 | Const LBS_WANTKEYBOARDINPUT =&H0400
|
---|
156 | Const LBS_EXTENDEDSEL = &H0800
|
---|
157 | Const LBS_DISABLENOSCROLL = &H1000
|
---|
158 | Const LBS_NODATA = &H2000
|
---|
159 | Const LBS_NOSEL = &H4000
|
---|
160 | Const LBS_STANDARD = LBS_NOTIFY or LBS_SORT or WS_VSCROLL or WS_BORDER
|
---|
161 |
|
---|
162 |
|
---|
163 | '--------------------
|
---|
164 | ' Scroll Bar Styles
|
---|
165 | '--------------------
|
---|
166 |
|
---|
167 | Const SBS_HORZ = &H0000
|
---|
168 | Const SBS_VERT = &H0001
|
---|
169 | Const SBS_TOPALIGN = &H0002
|
---|
170 | Const SBS_LEFTALIGN = &H0002
|
---|
171 | Const SBS_BOTTOMALIGN = &H0004
|
---|
172 | Const SBS_RIGHTALIGN = &H0004
|
---|
173 | Const SBS_SIZEBOXTOPLEFTALIGN = &H0002
|
---|
174 | Const SBS_SIZEBOXBOTTOMRIGHTALIGN =&H0004
|
---|
175 | Const SBS_SIZEBOX = &H0008
|
---|
176 | Const SBS_SIZEGRIP = &H0010
|
---|
177 |
|
---|
178 |
|
---|
179 | '---------------------------
|
---|
180 | ' Static Control Constants
|
---|
181 | '---------------------------
|
---|
182 |
|
---|
183 | Const SS_LEFT = &H00000000
|
---|
184 | Const SS_CENTER = &H00000001
|
---|
185 | Const SS_RIGHT = &H00000002
|
---|
186 | Const SS_ICON = &H00000003
|
---|
187 | Const SS_BLACKRECT = &H00000004
|
---|
188 | Const SS_GRAYRECT = &H00000005
|
---|
189 | Const SS_WHITERECT = &H00000006
|
---|
190 | Const SS_BLACKFRAME = &H00000007
|
---|
191 | Const SS_GRAYFRAME = &H00000008
|
---|
192 | Const SS_WHITEFRAME = &H00000009
|
---|
193 | Const SS_USERITEM = &H0000000A
|
---|
194 | Const SS_SIMPLE = &H0000000B
|
---|
195 | Const SS_LEFTNOWORDWRAP = &H0000000C
|
---|
196 | Const SS_OWNERDRAW = &H0000000D
|
---|
197 | Const SS_BITMAP = &H0000000E
|
---|
198 | Const SS_ENHMETAFILE = &H0000000F
|
---|
199 | Const SS_ETCHEDHORZ = &H00000010
|
---|
200 | Const SS_ETCHEDVERT = &H00000011
|
---|
201 | Const SS_ETCHEDFRAME = &H00000012
|
---|
202 | Const SS_TYPEMASK = &H0000001F
|
---|
203 | Const SS_NOPREFIX = &H00000080
|
---|
204 | Const SS_NOTIFY = &H00000100
|
---|
205 | Const SS_CENTERIMAGE = &H00000200
|
---|
206 | Const SS_RIGHTJUST = &H00000400
|
---|
207 | Const SS_REALSIZEIMAGE = &H00000800
|
---|
208 | Const SS_SUNKEN = &H00001000
|
---|
209 | Const SS_ENDELLIPSIS = &H00004000
|
---|
210 | Const SS_PATHELLIPSIS = &H00008000
|
---|
211 | Const SS_WORDELLIPSIS = &H0000C000
|
---|
212 | Const SS_ELLIPSISMASK = &H0000C000
|
---|
213 |
|
---|
214 |
|
---|
215 | '----------------
|
---|
216 | ' Dialog Styles
|
---|
217 | '----------------
|
---|
218 |
|
---|
219 | Const DS_ABSALIGN = &H01
|
---|
220 | Const DS_SYSMODAL = &H02
|
---|
221 | Const DS_LOCALEDIT = &H20
|
---|
222 | Const DS_SETFONT = &H40
|
---|
223 | Const DS_MODALFRAME = &H80
|
---|
224 | Const DS_NOIDLEMSG = &H100
|
---|
225 | Const DS_SETFOREGROUND = &H200
|
---|
226 |
|
---|
227 | Const DS_3DLOOK = &H0004
|
---|
228 | Const DS_FIXEDSYS = &H0008
|
---|
229 | Const DS_NOFAILCREATE = &H0010
|
---|
230 | Const DS_CONTROL = &H0400
|
---|
231 | Const DS_CENTER = &H0800
|
---|
232 | Const DS_CENTERMOUSE = &H1000
|
---|
233 | Const DS_CONTEXTHELP = &H2000
|
---|
234 |
|
---|
235 | Const DS_SHELLFONT = (DS_SETFONT Or DS_FIXEDSYS)
|
---|