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