Mercurial > mplayer.hg
comparison gui/win32/preferences.c @ 34164:d57ed389b6e2
Resize the Win32 GUI preference window and reposition items.
This is necessary after having replaced string constants by
symbolic constants which differ in size.
author | ib |
---|---|
date | Tue, 25 Oct 2011 13:48:47 +0000 |
parents | 95c396eb89ab |
children | 9082a0976655 |
comparison
equal
deleted
inserted
replaced
34163:95c396eb89ab | 34164:d57ed389b6e2 |
---|---|
75 { | 75 { |
76 case WM_CREATE: | 76 case WM_CREATE: |
77 { | 77 { |
78 /* video and audio drivers */ | 78 /* video and audio drivers */ |
79 label = CreateWindow("static", acp(MSGTR_PREFERENCES_Video), | 79 label = CreateWindow("static", acp(MSGTR_PREFERENCES_Video), |
80 WS_CHILD | WS_VISIBLE, | 80 WS_CHILD | WS_VISIBLE | SS_RIGHT, |
81 10, 13, 70, 15, hwnd, | 81 10, 14, 60, 15, hwnd, |
82 NULL, ((LPCREATESTRUCT) lParam) -> hInstance, | 82 NULL, ((LPCREATESTRUCT) lParam) -> hInstance, |
83 NULL); | 83 NULL); |
84 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 84 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
85 | 85 |
86 label = CreateWindow("static", acp(MSGTR_PREFERENCES_Audio), | 86 label = CreateWindow("static", acp(MSGTR_PREFERENCES_Audio), |
87 WS_CHILD | WS_VISIBLE, | 87 WS_CHILD | WS_VISIBLE | SS_RIGHT, |
88 190, 13, 70, 15, hwnd, | 88 205, 14, 60, 15, hwnd, |
89 NULL, ((LPCREATESTRUCT) lParam) -> hInstance, | 89 NULL, ((LPCREATESTRUCT) lParam) -> hInstance, |
90 NULL); | 90 NULL); |
91 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 91 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
92 | 92 |
93 label = CreateWindow("static", acp(MSGTR_PREFERENCES_Coefficient), | 93 label = CreateWindow("static", acp(MSGTR_PREFERENCES_Coefficient), |
94 WS_CHILD | WS_VISIBLE, | 94 WS_CHILD | WS_VISIBLE | SS_RIGHT, |
95 10, 148, 115, 15, hwnd, | 95 10, 148, 140, 15, hwnd, |
96 NULL, ((LPCREATESTRUCT) lParam) -> hInstance, | 96 NULL, ((LPCREATESTRUCT) lParam) -> hInstance, |
97 NULL); | 97 NULL); |
98 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 98 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
99 | 99 |
100 label = CreateWindow("static", acp(MSGTR_PREFERENCES_AudioDelay), | 100 label = CreateWindow("static", acp(MSGTR_PREFERENCES_AudioDelay), |
101 WS_CHILD | WS_VISIBLE, | 101 WS_CHILD | WS_VISIBLE | SS_RIGHT, |
102 36, 187, 115, 15, hwnd, | 102 10, 187, 140, 15, hwnd, |
103 NULL, ((LPCREATESTRUCT) lParam) -> hInstance, | 103 NULL, ((LPCREATESTRUCT) lParam) -> hInstance, |
104 NULL); | 104 NULL); |
105 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 105 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
106 | 106 |
107 label = CreateWindow("static", acp(MSGTR_PREFERENCES_FRAME_OSD_Level), | 107 label = CreateWindow("static", acp(MSGTR_PREFERENCES_FRAME_OSD_Level), |
110 NULL, ((LPCREATESTRUCT) lParam) -> hInstance, | 110 NULL, ((LPCREATESTRUCT) lParam) -> hInstance, |
111 NULL); | 111 NULL); |
112 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 112 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
113 | 113 |
114 label = CreateWindow("static", acp(MSGTR_PREFERENCES_DVDDevice), | 114 label = CreateWindow("static", acp(MSGTR_PREFERENCES_DVDDevice), |
115 WS_CHILD | WS_VISIBLE, | 115 WS_CHILD | WS_VISIBLE | SS_RIGHT, |
116 80, 385, 115, 15, hwnd, | 116 55, 387, 100, 15, hwnd, |
117 NULL, ((LPCREATESTRUCT) lParam) -> hInstance, | 117 NULL, ((LPCREATESTRUCT) lParam) -> hInstance, |
118 NULL); | 118 NULL); |
119 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 119 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
120 | 120 |
121 label = CreateWindow("static", acp(MSGTR_PREFERENCES_CDROMDevice), | 121 label = CreateWindow("static", acp(MSGTR_PREFERENCES_CDROMDevice), |
122 WS_CHILD | WS_VISIBLE, | 122 WS_CHILD | WS_VISIBLE | SS_RIGHT, |
123 202, 385, 115, 15, hwnd, | 123 185, 387, 100, 15, hwnd, |
124 NULL, ((LPCREATESTRUCT) lParam) -> hInstance, | 124 NULL, ((LPCREATESTRUCT) lParam) -> hInstance, |
125 NULL); | 125 NULL); |
126 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 126 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
127 | 127 |
128 label = CreateWindow("static", acp(MSGTR_PREFERENCES_Priority), | 128 label = CreateWindow("static", acp(MSGTR_PREFERENCES_Priority), |
129 WS_CHILD | WS_VISIBLE, | 129 WS_CHILD | WS_VISIBLE | SS_RIGHT, |
130 217, 286, 115, 15, hwnd, | 130 200, 286, 100, 15, hwnd, |
131 NULL, ((LPCREATESTRUCT) lParam) -> hInstance, | 131 NULL, ((LPCREATESTRUCT) lParam) -> hInstance, |
132 NULL); | 132 NULL); |
133 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 133 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
134 | 134 |
135 vo_driver = CreateWindow("combobox", NULL, | 135 vo_driver = CreateWindow("combobox", NULL, |
145 ao_driver = CreateWindow("combobox", NULL, | 145 ao_driver = CreateWindow("combobox", NULL, |
146 CBS_DROPDOWNLIST | CB_SHOWDROPDOWN | | 146 CBS_DROPDOWNLIST | CB_SHOWDROPDOWN | |
147 CBS_NOINTEGRALHEIGHT | CBS_HASSTRINGS | | 147 CBS_NOINTEGRALHEIGHT | CBS_HASSTRINGS | |
148 WS_CHILD | WS_VISIBLE | | 148 WS_CHILD | WS_VISIBLE | |
149 WS_VSCROLL | WS_TABSTOP, | 149 WS_VSCROLL | WS_TABSTOP, |
150 260, 10, 100, 160, hwnd, | 150 275, 10, 100, 160, hwnd, |
151 (HMENU) ID_AO_DRIVER, | 151 (HMENU) ID_AO_DRIVER, |
152 ((LPCREATESTRUCT) lParam) -> hInstance, | 152 ((LPCREATESTRUCT) lParam) -> hInstance, |
153 NULL); | 153 NULL); |
154 | 154 |
155 prio = CreateWindow("combobox", NULL, | 155 prio = CreateWindow("combobox", NULL, |
156 CBS_DROPDOWNLIST | CB_SHOWDROPDOWN | | 156 CBS_DROPDOWNLIST | CB_SHOWDROPDOWN | |
157 CBS_NOINTEGRALHEIGHT | CBS_HASSTRINGS | | 157 CBS_NOINTEGRALHEIGHT | CBS_HASSTRINGS | |
158 WS_CHILD | WS_VISIBLE | | 158 WS_CHILD | WS_VISIBLE | |
159 WS_VSCROLL | WS_TABSTOP, | 159 WS_VSCROLL | WS_TABSTOP, |
160 260, 282, 100, 160, hwnd, | 160 310, 282, 100, 160, hwnd, |
161 (HMENU) ID_PRIO, | 161 (HMENU) ID_PRIO, |
162 ((LPCREATESTRUCT) lParam) -> hInstance, | 162 ((LPCREATESTRUCT) lParam) -> hInstance, |
163 NULL); | 163 NULL); |
164 | 164 |
165 /* checkboxes */ | 165 /* checkboxes */ |
166 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_DoubleBuffer), | 166 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_DoubleBuffer), |
167 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, | 167 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, |
168 25, 35, 150, 25, | 168 10, 35, 160, 25, |
169 hwnd, (HMENU) ID_DOUBLE, | 169 hwnd, (HMENU) ID_DOUBLE, |
170 ((LPCREATESTRUCT) lParam) -> hInstance, | 170 ((LPCREATESTRUCT) lParam) -> hInstance, |
171 NULL); | 171 NULL); |
172 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 172 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
173 | 173 |
174 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_DirectRender), | 174 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_DirectRender), |
175 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, | 175 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, |
176 25, 57, 150, 25, | 176 10, 57, 160, 25, |
177 hwnd, (HMENU) ID_DIRECT, | 177 hwnd, (HMENU) ID_DIRECT, |
178 ((LPCREATESTRUCT) lParam) -> hInstance, | 178 ((LPCREATESTRUCT) lParam) -> hInstance, |
179 NULL); | 179 NULL); |
180 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 180 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
181 | 181 |
182 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_FrameDrop), | 182 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_FrameDrop), |
183 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, | 183 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, |
184 25, 79, 150, 25, | 184 10, 79, 160, 25, |
185 hwnd, (HMENU) ID_FRAMEDROP, | 185 hwnd, (HMENU) ID_FRAMEDROP, |
186 ((LPCREATESTRUCT) lParam) -> hInstance, | 186 ((LPCREATESTRUCT) lParam) -> hInstance, |
187 NULL); | 187 NULL); |
188 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 188 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
189 | 189 |
190 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_NoIdle), | 190 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_NoIdle), |
191 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, | 191 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, |
192 25, 101, 150, 25, | 192 10, 101, 225, 25, |
193 hwnd, (HMENU) ID_IDLE, | 193 hwnd, (HMENU) ID_IDLE, |
194 ((LPCREATESTRUCT) lParam) -> hInstance, | 194 ((LPCREATESTRUCT) lParam) -> hInstance, |
195 NULL); | 195 NULL); |
196 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 196 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
197 | 197 |
198 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_NormalizeSound), | 198 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_NormalizeSound), |
199 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, | 199 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, |
200 205, 35, 150, 25, | 200 220, 35, 160, 25, |
201 hwnd, (HMENU) ID_NORMALIZE, | 201 hwnd, (HMENU) ID_NORMALIZE, |
202 ((LPCREATESTRUCT) lParam) -> hInstance, | 202 ((LPCREATESTRUCT) lParam) -> hInstance, |
203 NULL); | 203 NULL); |
204 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 204 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
205 | 205 |
206 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_SoftwareMixer), | 206 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_SoftwareMixer), |
207 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, | 207 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, |
208 205, 57, 150, 25, | 208 220, 57, 160, 25, |
209 hwnd, (HMENU) ID_SOFTMIX, | 209 hwnd, (HMENU) ID_SOFTMIX, |
210 ((LPCREATESTRUCT) lParam) -> hInstance, | 210 ((LPCREATESTRUCT) lParam) -> hInstance, |
211 NULL); | 211 NULL); |
212 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 212 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
213 | 213 |
214 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_ExtraStereo), | 214 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_ExtraStereo), |
215 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, | 215 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, |
216 205, 79, 150, 25, | 216 220, 79, 160, 25, |
217 hwnd, (HMENU) ID_EXTRASTEREO, | 217 hwnd, (HMENU) ID_EXTRASTEREO, |
218 ((LPCREATESTRUCT) lParam) -> hInstance, | 218 ((LPCREATESTRUCT) lParam) -> hInstance, |
219 NULL); | 219 NULL); |
220 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 220 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
221 | 221 |
227 NULL); | 227 NULL); |
228 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 228 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
229 | 229 |
230 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_AutoSync), | 230 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_AutoSync), |
231 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, | 231 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, |
232 192, 222, 100, 25, hwnd, | 232 240, 222, 110, 25, hwnd, |
233 (HMENU) ID_AUTOSYNC, | 233 (HMENU) ID_AUTOSYNC, |
234 ((LPCREATESTRUCT) lParam) -> hInstance, | 234 ((LPCREATESTRUCT) lParam) -> hInstance, |
235 NULL); | 235 NULL); |
236 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 236 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
237 | 237 |
238 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_VideoInSubwin), | 238 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_VideoInSubwin), |
239 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, | 239 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, |
240 85, 249, 250, 25, | 240 10, 249, 250, 25, |
241 hwnd, (HMENU) ID_SUBWINDOW, | 241 hwnd, (HMENU) ID_SUBWINDOW, |
242 ((LPCREATESTRUCT) lParam) -> hInstance, | 242 ((LPCREATESTRUCT) lParam) -> hInstance, |
243 NULL); | 243 NULL); |
244 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 244 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
245 | 245 |
246 /* osd level */ | 246 /* osd level */ |
247 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_OSD_LEVEL0), | 247 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_OSD_LEVEL0), |
248 WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON, | 248 WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON, |
249 95, 282, 100, 25, hwnd, | 249 15, 297, 200, 25, hwnd, |
250 (HMENU) ID_NONE, | 250 (HMENU) ID_NONE, |
251 ((LPCREATESTRUCT) lParam) -> hInstance, | 251 ((LPCREATESTRUCT) lParam) -> hInstance, |
252 NULL); | 252 NULL); |
253 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 253 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
254 | 254 |
255 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_OSD_LEVEL1), | 255 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_OSD_LEVEL1), |
256 WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON, | 256 WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON, |
257 95, 302, 180, 25, hwnd, | 257 15, 317, 395, 25, hwnd, |
258 (HMENU) ID_OSD1, | 258 (HMENU) ID_OSD1, |
259 ((LPCREATESTRUCT) lParam) -> hInstance, | 259 ((LPCREATESTRUCT) lParam) -> hInstance, |
260 NULL); | 260 NULL); |
261 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 261 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
262 | 262 |
263 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_OSD_LEVEL2), | 263 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_OSD_LEVEL2), |
264 WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON, | 264 WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON, |
265 95, 322, 250, 25, hwnd, | 265 15, 337, 395, 25, hwnd, |
266 (HMENU) ID_OSD2, | 266 (HMENU) ID_OSD2, |
267 ((LPCREATESTRUCT) lParam) -> hInstance, | 267 ((LPCREATESTRUCT) lParam) -> hInstance, |
268 NULL); | 268 NULL); |
269 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 269 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
270 | 270 |
271 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_OSD_LEVEL3), | 271 btn = CreateWindow("button", acp(MSGTR_PREFERENCES_OSD_LEVEL3), |
272 WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON, | 272 WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON, |
273 95, 342, 250, 25, hwnd, | 273 15, 357, 395, 25, hwnd, |
274 (HMENU) ID_OSD3, | 274 (HMENU) ID_OSD3, |
275 ((LPCREATESTRUCT) lParam) -> hInstance, | 275 ((LPCREATESTRUCT) lParam) -> hInstance, |
276 NULL); | 276 NULL); |
277 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 277 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
278 | 278 |
279 btn = CreateWindow("button", acp(MSGTR_Ok), | 279 btn = CreateWindow("button", acp(MSGTR_Ok), |
280 WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, | 280 WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, |
281 199, 417, 80, 25, hwnd, | 281 248, 417, 80, 25, hwnd, |
282 (HMENU) ID_APPLY, | 282 (HMENU) ID_APPLY, |
283 ((LPCREATESTRUCT) lParam) -> hInstance, | 283 ((LPCREATESTRUCT) lParam) -> hInstance, |
284 NULL); | 284 NULL); |
285 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 285 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
286 | 286 |
287 btn = CreateWindow("button", acp(MSGTR_Cancel), | 287 btn = CreateWindow("button", acp(MSGTR_Cancel), |
288 WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, | 288 WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, |
289 285, 417, 80, 25, hwnd, | 289 334, 417, 80, 25, hwnd, |
290 (HMENU) ID_CANCEL, | 290 (HMENU) ID_CANCEL, |
291 ((LPCREATESTRUCT) lParam) -> hInstance, | 291 ((LPCREATESTRUCT) lParam) -> hInstance, |
292 NULL); | 292 NULL); |
293 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 293 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
294 | 294 |
295 btn = CreateWindow("button", acp(MSGTR_Default), | 295 btn = CreateWindow("button", acp(MSGTR_Default), |
296 WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, | 296 WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, |
297 4, 417, 80, 25, hwnd, | 297 5, 417, 80, 25, hwnd, |
298 (HMENU) ID_DEFAULTS, | 298 (HMENU) ID_DEFAULTS, |
299 ((LPCREATESTRUCT) lParam) -> hInstance, | 299 ((LPCREATESTRUCT) lParam) -> hInstance, |
300 NULL); | 300 NULL); |
301 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 301 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
302 | 302 |
303 /* extra stereo coefficient trackbar */ | 303 /* extra stereo coefficient trackbar */ |
304 track1 = CreateWindow(TRACKBAR_CLASS, "Coefficient", | 304 track1 = CreateWindow(TRACKBAR_CLASS, "Coefficient", |
305 WS_CHILD | WS_VISIBLE | WS_TABSTOP | | 305 WS_CHILD | WS_VISIBLE | WS_TABSTOP | |
306 WS_DISABLED | TBS_HORZ | | 306 WS_DISABLED | TBS_HORZ | |
307 TBS_BOTTOM | TBS_NOTICKS, | 307 TBS_BOTTOM | TBS_NOTICKS, |
308 120, 142, 245, 35, hwnd, | 308 165, 142, 245, 35, hwnd, |
309 (HMENU) ID_TRACKBAR1, | 309 (HMENU) ID_TRACKBAR1, |
310 ((LPCREATESTRUCT) lParam) -> hInstance, | 310 ((LPCREATESTRUCT) lParam) -> hInstance, |
311 NULL); | 311 NULL); |
312 SendDlgItemMessage(hwnd, ID_TRACKBAR1, TBM_SETRANGE, 1, MAKELONG(-100, 100)); | 312 SendDlgItemMessage(hwnd, ID_TRACKBAR1, TBM_SETRANGE, 1, MAKELONG(-100, 100)); |
313 | 313 |
314 /* audio delay */ | 314 /* audio delay */ |
315 track2 = CreateWindow(TRACKBAR_CLASS, "Audio delay", | 315 track2 = CreateWindow(TRACKBAR_CLASS, "Audio delay", |
316 WS_CHILD | WS_VISIBLE | WS_TABSTOP | | 316 WS_CHILD | WS_VISIBLE | WS_TABSTOP | |
317 WS_DISABLED | TBS_HORZ | | 317 WS_DISABLED | TBS_HORZ | |
318 TBS_BOTTOM | TBS_NOTICKS, | 318 TBS_BOTTOM | TBS_NOTICKS, |
319 120, 182, 245, 35, hwnd, | 319 165, 182, 245, 35, hwnd, |
320 (HMENU) ID_TRACKBAR2, | 320 (HMENU) ID_TRACKBAR2, |
321 ((LPCREATESTRUCT) lParam) -> hInstance, | 321 ((LPCREATESTRUCT) lParam) -> hInstance, |
322 NULL); | 322 NULL); |
323 SendDlgItemMessage(hwnd, ID_TRACKBAR2, TBM_SETRANGE, 1, MAKELONG(-1000, 1000)); | 323 SendDlgItemMessage(hwnd, ID_TRACKBAR2, TBM_SETRANGE, 1, MAKELONG(-1000, 1000)); |
324 | 324 |
343 | 343 |
344 /* autosync */ | 344 /* autosync */ |
345 edit2 = CreateWindowEx(WS_EX_CLIENTEDGE, "edit", "autosync", | 345 edit2 = CreateWindowEx(WS_EX_CLIENTEDGE, "edit", "autosync", |
346 WS_CHILD | WS_VISIBLE | WS_DISABLED | | 346 WS_CHILD | WS_VISIBLE | WS_DISABLED | |
347 ES_LEFT | ES_AUTOHSCROLL, | 347 ES_LEFT | ES_AUTOHSCROLL, |
348 300, 225, 40, 20, hwnd, | 348 355, 225, 40, 20, hwnd, |
349 (HMENU) ID_EDIT2, | 349 (HMENU) ID_EDIT2, |
350 ((LPCREATESTRUCT) lParam) -> hInstance, | 350 ((LPCREATESTRUCT) lParam) -> hInstance, |
351 NULL); | 351 NULL); |
352 SendMessage(edit2, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 352 SendMessage(edit2, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
353 | 353 |
354 updown2 = CreateUpDownControl(WS_CHILD | WS_VISIBLE | | 354 updown2 = CreateUpDownControl(WS_CHILD | WS_VISIBLE | |
355 WS_DISABLED | UDS_SETBUDDYINT | | 355 WS_DISABLED | UDS_SETBUDDYINT | |
356 UDS_ARROWKEYS | UDS_NOTHOUSANDS, | 356 UDS_ARROWKEYS | UDS_NOTHOUSANDS, |
357 340, 225, 20, 20, hwnd, | 357 395, 225, 20, 20, hwnd, |
358 ID_UPDOWN2, | 358 ID_UPDOWN2, |
359 ((LPCREATESTRUCT) lParam) -> hInstance, | 359 ((LPCREATESTRUCT) lParam) -> hInstance, |
360 (HWND)edit2, 0, 0, 0); | 360 (HWND)edit2, 0, 0, 0); |
361 SendDlgItemMessage(hwnd, ID_UPDOWN2, UDM_SETRANGE32, (WPARAM)0, (LPARAM)10000); | 361 SendDlgItemMessage(hwnd, ID_UPDOWN2, UDM_SETRANGE32, (WPARAM)0, (LPARAM)10000); |
362 | 362 |
363 /* dvd and cd devices */ | 363 /* dvd and cd devices */ |
364 edit3 = CreateWindowEx(WS_EX_CLIENTEDGE, "edit", NULL, | 364 edit3 = CreateWindowEx(WS_EX_CLIENTEDGE, "edit", NULL, |
365 WS_CHILD | WS_VISIBLE | | 365 WS_CHILD | WS_VISIBLE | |
366 ES_LEFT | ES_AUTOHSCROLL, | 366 ES_LEFT | ES_AUTOHSCROLL, |
367 145, 382, 20, 20, hwnd, | 367 165, 384, 20, 20, hwnd, |
368 (HMENU) ID_DVDDEVICE, | 368 (HMENU) ID_DVDDEVICE, |
369 ((LPCREATESTRUCT) lParam) -> hInstance, | 369 ((LPCREATESTRUCT) lParam) -> hInstance, |
370 NULL); | 370 NULL); |
371 SendMessage(edit3, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 371 SendMessage(edit3, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
372 | 372 |
373 edit3 = CreateWindowEx(WS_EX_CLIENTEDGE, "edit", NULL, | 373 edit3 = CreateWindowEx(WS_EX_CLIENTEDGE, "edit", NULL, |
374 WS_CHILD | WS_VISIBLE | | 374 WS_CHILD | WS_VISIBLE | |
375 ES_LEFT| ES_AUTOHSCROLL, | 375 ES_LEFT| ES_AUTOHSCROLL, |
376 260, 382, 20, 20, hwnd, | 376 295, 384, 20, 20, hwnd, |
377 (HMENU) ID_CDDEVICE, | 377 (HMENU) ID_CDDEVICE, |
378 ((LPCREATESTRUCT) lParam) -> hInstance, | 378 ((LPCREATESTRUCT) lParam) -> hInstance, |
379 NULL); | 379 NULL); |
380 SendMessage(edit3, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); | 380 SendMessage(edit3, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0); |
381 | 381 |
710 wc.hIcon = gui->icon; | 710 wc.hIcon = gui->icon; |
711 wc.hbrBackground = SOLID_GREY; | 711 wc.hbrBackground = SOLID_GREY; |
712 wc.lpszClassName = acp(MSGTR_Preferences); | 712 wc.lpszClassName = acp(MSGTR_Preferences); |
713 wc.lpszMenuName = NULL; | 713 wc.lpszMenuName = NULL; |
714 RegisterClass(&wc); | 714 RegisterClass(&wc); |
715 x = (GetSystemMetrics(SM_CXSCREEN) / 2) - (375 / 2); | 715 x = (GetSystemMetrics(SM_CXSCREEN) / 2) - (425 / 2); |
716 y = (GetSystemMetrics(SM_CYSCREEN) / 2) - (474 / 2); | 716 y = (GetSystemMetrics(SM_CYSCREEN) / 2) - (474 / 2); |
717 hWnd = CreateWindow(acp(MSGTR_Preferences), | 717 hWnd = CreateWindow(acp(MSGTR_Preferences), |
718 acp(MSGTR_Preferences), | 718 acp(MSGTR_Preferences), |
719 WS_POPUPWINDOW | WS_CAPTION, | 719 WS_POPUPWINDOW | WS_CAPTION, |
720 x, | 720 x, |
721 y, | 721 y, |
722 375, | 722 425, |
723 474, | 723 474, |
724 NULL, | 724 NULL, |
725 NULL, | 725 NULL, |
726 hInstance, | 726 hInstance, |
727 NULL); | 727 NULL); |