annotate gui/win32/preferences.c @ 36859:9bc711c42ea6

Update documentation. This is missing in r36954.
author ib
date Fri, 28 Feb 2014 14:20:52 +0000
parents 511047e8e0a2
children c0004493b01b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
1 /*
23079
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
2 * MPlayer GUI for Win32
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
3 * Copyright (C) 2003 Sascha Sommer <saschasommer@freenet.de>
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
4 * Copyright (C) 2006 Erik Augustson <erik_27can@yahoo.com>
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
5 * Copyright (C) 2006 Gianluigi Tiesi <sherpya@netfarm.it>
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
6 *
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
7 * This file is part of MPlayer.
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
8 *
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
9 * MPlayer is free software; you can redistribute it and/or modify
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
10 * it under the terms of the GNU General Public License as published by
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
11 * the Free Software Foundation; either version 2 of the License, or
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
12 * (at your option) any later version.
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
13 *
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
14 * MPlayer is distributed in the hope that it will be useful,
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
17 * GNU General Public License for more details.
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
18 *
26457
9ba6d4487292 Use standard GPL header.
diego
parents: 26372
diff changeset
19 * You should have received a copy of the GNU General Public License along
9ba6d4487292 Use standard GPL header.
diego
parents: 26372
diff changeset
20 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
9ba6d4487292 Use standard GPL header.
diego
parents: 26372
diff changeset
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23079
8e9b11648f40 Use proper GPL header.
diego
parents: 23078
diff changeset
22 */
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
23
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
24 #include <windows.h>
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
25 #include <commctrl.h>
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
26 #include <stdio.h>
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
27 #include <stdlib.h>
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
28 #include <string.h>
23091
52488bb09d90 Consistently use quotes instead of angled brackets in #include
diego
parents: 23079
diff changeset
29
52488bb09d90 Consistently use quotes instead of angled brackets in #include
diego
parents: 23079
diff changeset
30 #include "libvo/video_out.h"
52488bb09d90 Consistently use quotes instead of angled brackets in #include
diego
parents: 23079
diff changeset
31 #include "libao2/audio_out.h"
32068
ab6ac5b156ca Replace proc_priority extern declaration by osdep/priority.h #include.
diego
parents: 30558
diff changeset
32 #include "osdep/priority.h"
23091
52488bb09d90 Consistently use quotes instead of angled brackets in #include
diego
parents: 23079
diff changeset
33 #include "mixer.h"
33761
16286ee1fc71 Fix Win32 GUI compilation problems.
ib
parents: 33731
diff changeset
34 #include "gui/util/list.h"
36833
5691f930dca6 Fix bug with Win32 GUI preferences.
ib
parents: 36823
diff changeset
35 #include "gui/util/string.h"
35528
ab07b17fddfb Rebuild GUI directory structure.
ib
parents: 35501
diff changeset
36 #include "gui/ui/ui.h"
26372
76413880bfad Update include paths to account for build system changes.
diego
parents: 26193
diff changeset
37 #include "gui/interface.h"
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
38 #include "gui.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
39 #include "mp_msg.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
40 #include "help_mp.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
41 #include "dialogs.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
42
33619
35a12ef532de win32 gui: Move static function around to avoid a forward declaration.
diego
parents: 33614
diff changeset
43
36835
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
44 /**
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
45 * @brief Translate between the priority text presented to the user
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
46 * and the internal priority name.
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
47 *
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
48 * @param prio priority text or name to be translated
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
49 * @param idx 0 (translate internal name to localized user text) or
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
50 * 1 (translate localized user text to internal name)
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
51 *
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
52 * @return translation according to @a idx
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
53 */
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
54 static const char *get_priority (const char *prio, int idx)
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
55 {
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
56 static const struct
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
57 {
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
58 const char *localization;
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
59 const char *name;
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
60 } priority[] = {{MSGTR_GUI_WIN32_PriorityHigh, "high"},
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
61 {MSGTR_GUI_WIN32_PriorityAboveNormal, "abovenormal"},
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
62 {MSGTR_GUI_WIN32_PriorityNormal, "normal"},
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
63 {MSGTR_GUI_WIN32_PriorityBelowNormal, "belownormal"},
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
64 {MSGTR_GUI_WIN32_PriorityLow, "idle"}};
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
65 unsigned int i;
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
66
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
67 for (i = 0; i < sizeof(priority) / sizeof(*priority); i++)
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
68 {
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
69 const char *l = acp(priority[i].localization);
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
70
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
71 if (strcmp(idx == 0 ? priority[i].name : l, prio) == 0)
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
72 return (idx == 0 ? l : priority[i].name);
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
73 }
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
74
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
75 return NULL;
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
76 }
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
77
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
78 static LRESULT CALLBACK PrefsWndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
79 {
34390
9082a0976655 Remove options cdrom_device and dvd_device from the Win32 GUI.
ib
parents: 34164
diff changeset
80 HWND btn, label, edit1, edit2, updown1, updown2, track1, track2;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
81 static HWND vo_driver, ao_driver, prio;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
82 int i = 0, j = 0;
36823
edfa61ced4ad Remove pointless variables.
ib
parents: 36822
diff changeset
83 float stereopos = gtkAOExtraStereoMul * 10.0;
edfa61ced4ad Remove pointless variables.
ib
parents: 36822
diff changeset
84 float delaypos = audio_delay * 10.0;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
85
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
86 switch (iMsg)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
87 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
88 case WM_CREATE:
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
89 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
90 /* video and audio drivers */
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
91 label = CreateWindow("static", acp(MSGTR_GUI_Video),
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
92 WS_CHILD | WS_VISIBLE | SS_RIGHT,
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
93 10, 14, 60, 15, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
94 NULL, ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
95 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
96 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
97
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
98 label = CreateWindow("static", acp(MSGTR_GUI_Audio),
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
99 WS_CHILD | WS_VISIBLE | SS_RIGHT,
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
100 205, 14, 60, 15, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
101 NULL, ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
102 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
103 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
104
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
105 label = CreateWindow("static", acp(MSGTR_GUI_Coefficient":"),
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
106 WS_CHILD | WS_VISIBLE | SS_RIGHT,
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
107 10, 148, 140, 15, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
108 NULL, ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
109 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
110 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
111
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
112 label = CreateWindow("static", acp(MSGTR_GUI_AudioDelay":"),
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
113 WS_CHILD | WS_VISIBLE | SS_RIGHT,
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
114 10, 187, 140, 15, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
115 NULL, ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
116 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
117 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
118
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
119 label = CreateWindow("static", acp(MSGTR_GUI_OsdLevel),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
120 WS_CHILD | WS_VISIBLE,
34087
b2d908cd8a1f Add idle option to Win32 GUI preferences dialog.
ib
parents: 33761
diff changeset
121 10, 286, 115, 15, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
122 NULL, ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
123 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
124 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
125
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
126 label = CreateWindow("static", acp(MSGTR_GUI_WIN32_Priority),
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
127 WS_CHILD | WS_VISIBLE | SS_RIGHT,
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
128 200, 286, 100, 15, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
129 NULL, ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
130 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
131 SendMessage(label, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
132
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
133 vo_driver = CreateWindow("combobox", NULL,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
134 CBS_DROPDOWNLIST | CB_SHOWDROPDOWN |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
135 CBS_NOINTEGRALHEIGHT | CBS_HASSTRINGS |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
136 WS_CHILD | WS_VISIBLE |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
137 WS_VSCROLL | WS_TABSTOP,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
138 80, 10, 100, 160, hwnd,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
139 (HMENU) ID_VO_DRIVER,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
140 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
141 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
142
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
143 ao_driver = CreateWindow("combobox", NULL,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
144 CBS_DROPDOWNLIST | CB_SHOWDROPDOWN |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
145 CBS_NOINTEGRALHEIGHT | CBS_HASSTRINGS |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
146 WS_CHILD | WS_VISIBLE |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
147 WS_VSCROLL | WS_TABSTOP,
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
148 275, 10, 100, 160, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
149 (HMENU) ID_AO_DRIVER,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
150 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
151 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
152
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
153 prio = CreateWindow("combobox", NULL,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
154 CBS_DROPDOWNLIST | CB_SHOWDROPDOWN |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
155 CBS_NOINTEGRALHEIGHT | CBS_HASSTRINGS |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
156 WS_CHILD | WS_VISIBLE |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
157 WS_VSCROLL | WS_TABSTOP,
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
158 310, 282, 100, 160, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
159 (HMENU) ID_PRIO,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
160 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
161 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
162
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
163 /* checkboxes */
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
164 btn = CreateWindow("button", acp(MSGTR_GUI_EnableDoubleBuffering),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
165 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
36670
7d250553d451 Revise GUI help message texts.
ib
parents: 35528
diff changeset
166 10, 35, 205, 25,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
167 hwnd, (HMENU) ID_DOUBLE,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
168 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
169 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
170 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
171
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
172 btn = CreateWindow("button", acp(MSGTR_GUI_EnableDirectRendering),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
173 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
36670
7d250553d451 Revise GUI help message texts.
ib
parents: 35528
diff changeset
174 10, 57, 205, 25,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
175 hwnd, (HMENU) ID_DIRECT,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
176 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
177 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
178 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
179
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
180 btn = CreateWindow("button", acp(MSGTR_GUI_EnableFrameDropping),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
181 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
36670
7d250553d451 Revise GUI help message texts.
ib
parents: 35528
diff changeset
182 10, 79, 205, 25,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
183 hwnd, (HMENU) ID_FRAMEDROP,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
184 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
185 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
186 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
187
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
188 btn = CreateWindow("button", acp(MSGTR_GUI_QuitAfterPlaying),
34087
b2d908cd8a1f Add idle option to Win32 GUI preferences dialog.
ib
parents: 33761
diff changeset
189 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
190 10, 101, 225, 25,
34087
b2d908cd8a1f Add idle option to Win32 GUI preferences dialog.
ib
parents: 33761
diff changeset
191 hwnd, (HMENU) ID_IDLE,
b2d908cd8a1f Add idle option to Win32 GUI preferences dialog.
ib
parents: 33761
diff changeset
192 ((LPCREATESTRUCT) lParam) -> hInstance,
b2d908cd8a1f Add idle option to Win32 GUI preferences dialog.
ib
parents: 33761
diff changeset
193 NULL);
b2d908cd8a1f Add idle option to Win32 GUI preferences dialog.
ib
parents: 33761
diff changeset
194 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
b2d908cd8a1f Add idle option to Win32 GUI preferences dialog.
ib
parents: 33761
diff changeset
195
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
196 btn = CreateWindow("button", acp(MSGTR_GUI_NormalizeSound),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
197 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
36670
7d250553d451 Revise GUI help message texts.
ib
parents: 35528
diff changeset
198 220, 35, 190, 25,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
199 hwnd, (HMENU) ID_NORMALIZE,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
200 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
201 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
202 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
203
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
204 btn = CreateWindow("button", acp(MSGTR_GUI_EnableSoftwareMixer),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
205 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
36670
7d250553d451 Revise GUI help message texts.
ib
parents: 35528
diff changeset
206 220, 57, 190, 25,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
207 hwnd, (HMENU) ID_SOFTMIX,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
208 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
209 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
210 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
211
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
212 btn = CreateWindow("button", acp(MSGTR_GUI_EnableExtraStereo),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
213 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
36670
7d250553d451 Revise GUI help message texts.
ib
parents: 35528
diff changeset
214 220, 79, 190, 25,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
215 hwnd, (HMENU) ID_EXTRASTEREO,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
216 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
217 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
218 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
219
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
220 btn = CreateWindow("button", acp(MSGTR_GUI_EnableCache),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
221 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
36670
7d250553d451 Revise GUI help message texts.
ib
parents: 35528
diff changeset
222 10, 222, 100, 25,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
223 hwnd, (HMENU) ID_CACHE,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
224 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
225 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
226 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
227
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
228 btn = CreateWindow("button", acp(MSGTR_GUI_EnableAutomaticAVSync),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
229 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
36670
7d250553d451 Revise GUI help message texts.
ib
parents: 35528
diff changeset
230 225, 222, 185, 25, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
231 (HMENU) ID_AUTOSYNC,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
232 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
233 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
234 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
235
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
236 btn = CreateWindow("button", acp(MSGTR_GUI_WIN32_DisplayInVideoWindow),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
237 WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
238 10, 249, 250, 25,
34697
ac6b38cd0d45 Rename sub window video window.
ib
parents: 34610
diff changeset
239 hwnd, (HMENU) ID_VIDEOWINDOW,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
240 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
241 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
242 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
243
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
244 /* osd level */
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
245 btn = CreateWindow("button", acp(MSGTR_GUI_OsdLevel0),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
246 WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON,
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
247 15, 297, 200, 25, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
248 (HMENU) ID_NONE,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
249 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
250 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
251 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
252
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
253 btn = CreateWindow("button", acp(MSGTR_GUI_OsdLevel1),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
254 WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON,
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
255 15, 317, 395, 25, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
256 (HMENU) ID_OSD1,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
257 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
258 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
259 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
260
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
261 btn = CreateWindow("button", acp(MSGTR_GUI_OsdLevel2),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
262 WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON,
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
263 15, 337, 395, 25, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
264 (HMENU) ID_OSD2,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
265 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
266 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
267 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
268
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
269 btn = CreateWindow("button", acp(MSGTR_GUI_OsdLevel3),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
270 WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON,
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
271 15, 357, 395, 25, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
272 (HMENU) ID_OSD3,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
273 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
274 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
275 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
276
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
277 btn = CreateWindow("button", acp(MSGTR_GUI_Ok),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
278 WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON,
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
279 248, 417, 80, 25, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
280 (HMENU) ID_APPLY,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
281 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
282 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
283 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
284
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
285 btn = CreateWindow("button", acp(MSGTR_GUI_Cancel),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
286 WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON,
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
287 334, 417, 80, 25, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
288 (HMENU) ID_CANCEL,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
289 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
290 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
291 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
292
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
293 btn = CreateWindow("button", acp(MSGTR_GUI_WIN32_Defaults),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
294 WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON,
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
295 5, 417, 80, 25, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
296 (HMENU) ID_DEFAULTS,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
297 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
298 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
299 SendMessage(btn, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
300
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
301 /* extra stereo coefficient trackbar */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
302 track1 = CreateWindow(TRACKBAR_CLASS, "Coefficient",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
303 WS_CHILD | WS_VISIBLE | WS_TABSTOP |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
304 WS_DISABLED | TBS_HORZ |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
305 TBS_BOTTOM | TBS_NOTICKS,
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
306 165, 142, 245, 35, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
307 (HMENU) ID_TRACKBAR1,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
308 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
309 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
310 SendDlgItemMessage(hwnd, ID_TRACKBAR1, TBM_SETRANGE, 1, MAKELONG(-100, 100));
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
311
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
312 /* audio delay */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
313 track2 = CreateWindow(TRACKBAR_CLASS, "Audio delay",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
314 WS_CHILD | WS_VISIBLE | WS_TABSTOP |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
315 WS_DISABLED | TBS_HORZ |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
316 TBS_BOTTOM | TBS_NOTICKS,
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
317 165, 182, 245, 35, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
318 (HMENU) ID_TRACKBAR2,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
319 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
320 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
321 SendDlgItemMessage(hwnd, ID_TRACKBAR2, TBM_SETRANGE, 1, MAKELONG(-1000, 1000));
36822
95e3f435bc57 Enable setting full audio delay value range.
ib
parents: 36821
diff changeset
322 SendDlgItemMessage(hwnd, ID_TRACKBAR2, TBM_SETLINESIZE, 0, (LPARAM) 1);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
323
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
324 /* cache */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
325 edit1 = CreateWindowEx(WS_EX_CLIENTEDGE, "edit", "cache",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
326 WS_CHILD | WS_VISIBLE | WS_DISABLED |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
327 ES_LEFT | ES_AUTOHSCROLL,
36670
7d250553d451 Revise GUI help message texts.
ib
parents: 35528
diff changeset
328 115, 225, 60, 20, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
329 (HMENU) ID_EDIT1,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
330 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
331 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
332 SendMessage(edit1, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
333
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
334 updown1 = CreateUpDownControl(WS_CHILD | WS_VISIBLE |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
335 WS_DISABLED | UDS_SETBUDDYINT |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
336 UDS_ARROWKEYS | UDS_NOTHOUSANDS,
34709
b74a8e55c632 Increase width of control for cache size in Win32 GUI.
ib
parents: 34707
diff changeset
337 165, 225, 20, 20, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
338 ID_UPDOWN1,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
339 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
340 (HWND)edit1, 0, 0, 0);
34707
0a4b7681a408 Update GUI code after r34792.
ib
parents: 34697
diff changeset
341 SendDlgItemMessage(hwnd, ID_UPDOWN1, UDM_SETRANGE32, (WPARAM)32, (LPARAM)0x7fffffff);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
342
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
343 /* autosync */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
344 edit2 = CreateWindowEx(WS_EX_CLIENTEDGE, "edit", "autosync",
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
345 WS_CHILD | WS_VISIBLE | WS_DISABLED |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
346 ES_LEFT | ES_AUTOHSCROLL,
36670
7d250553d451 Revise GUI help message texts.
ib
parents: 35528
diff changeset
347 355, 247, 40, 20, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
348 (HMENU) ID_EDIT2,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
349 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
350 NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
351 SendMessage(edit2, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
352
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
353 updown2 = CreateUpDownControl(WS_CHILD | WS_VISIBLE |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
354 WS_DISABLED | UDS_SETBUDDYINT |
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
355 UDS_ARROWKEYS | UDS_NOTHOUSANDS,
36670
7d250553d451 Revise GUI help message texts.
ib
parents: 35528
diff changeset
356 395, 247, 20, 20, hwnd,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
357 ID_UPDOWN2,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
358 ((LPCREATESTRUCT) lParam) -> hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
359 (HWND)edit2, 0, 0, 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
360 SendDlgItemMessage(hwnd, ID_UPDOWN2, UDM_SETRANGE32, (WPARAM)0, (LPARAM)10000);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
361
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
362 while(video_out_drivers[i])
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
363 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
364 const vo_info_t *info = video_out_drivers[i++]->info;
36839
8474d0444828 Cosmetic: Reformat and adjust indent.
ib
parents: 36838
diff changeset
365 if(!video_driver_list)
36840
511047e8e0a2 Remove unnecessary casts.
ib
parents: 36839
diff changeset
366 listSet(&video_driver_list, info->short_name);
36839
8474d0444828 Cosmetic: Reformat and adjust indent.
ib
parents: 36838
diff changeset
367 SendDlgItemMessage(hwnd, ID_VO_DRIVER, CB_ADDSTRING, 0, (LPARAM) info->short_name);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
368 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
369 /* Special case for directx:noaccel */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
370 SendDlgItemMessage(hwnd, ID_VO_DRIVER, CB_ADDSTRING, 0, (LPARAM) "directx:noaccel");
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
371 SendMessage(vo_driver, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
372
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
373 while(audio_out_drivers[j])
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
374 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
375 const ao_info_t *info = audio_out_drivers[j++]->info;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
376 if(!audio_driver_list)
36840
511047e8e0a2 Remove unnecessary casts.
ib
parents: 36839
diff changeset
377 listSet(&audio_driver_list, info->short_name);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
378 SendDlgItemMessage(hwnd, ID_AO_DRIVER, CB_ADDSTRING, 0, (LPARAM) info->short_name);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
379 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
380 SendMessage(ao_driver, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
381
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
382 /* priority list, i'm leaving out realtime for safety's sake */
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
383 SendDlgItemMessage(hwnd, ID_PRIO, CB_INSERTSTRING, 0, (LPARAM) acp(MSGTR_GUI_WIN32_PriorityLow));
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
384 SendDlgItemMessage(hwnd, ID_PRIO, CB_INSERTSTRING, 0, (LPARAM) acp(MSGTR_GUI_WIN32_PriorityBelowNormal));
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
385 SendDlgItemMessage(hwnd, ID_PRIO, CB_INSERTSTRING, 0, (LPARAM) acp(MSGTR_GUI_WIN32_PriorityNormal));
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
386 SendDlgItemMessage(hwnd, ID_PRIO, CB_INSERTSTRING, 0, (LPARAM) acp(MSGTR_GUI_WIN32_PriorityAboveNormal));
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
387 SendDlgItemMessage(hwnd, ID_PRIO, CB_INSERTSTRING, 0, (LPARAM) acp(MSGTR_GUI_WIN32_PriorityHigh));
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
388 SendMessage(prio, WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
389
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
390 /* set our preferences on what we already have */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
391 if(video_driver_list)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
392 SendDlgItemMessage(hwnd, ID_VO_DRIVER, CB_SETCURSEL,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
393 (WPARAM)SendMessage(vo_driver, CB_FINDSTRING, -1,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
394 (LPARAM)video_driver_list[0]), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
395
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
396 if(audio_driver_list)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
397 SendDlgItemMessage(hwnd, ID_AO_DRIVER, CB_SETCURSEL,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
398 (WPARAM)SendMessage(ao_driver, CB_FINDSTRING, -1,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
399 (LPARAM)audio_driver_list[0]), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
400
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
401 if(vo_doublebuffering)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
402 SendDlgItemMessage(hwnd, ID_DOUBLE, BM_SETCHECK, 1, 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
403 if(vo_directrendering)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
404 SendDlgItemMessage(hwnd, ID_DIRECT, BM_SETCHECK, 1, 0);
34087
b2d908cd8a1f Add idle option to Win32 GUI preferences dialog.
ib
parents: 33761
diff changeset
405 if(!player_idle_mode)
b2d908cd8a1f Add idle option to Win32 GUI preferences dialog.
ib
parents: 33761
diff changeset
406 SendDlgItemMessage(hwnd, ID_IDLE, BM_SETCHECK, 1, 0);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
407 if(frame_dropping)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
408 SendDlgItemMessage(hwnd, ID_FRAMEDROP, BM_SETCHECK, 1, 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
409 if(gtkAONorm)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
410 SendDlgItemMessage(hwnd, ID_NORMALIZE, BM_SETCHECK, 1, 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
411 if(soft_vol)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
412 SendDlgItemMessage(hwnd, ID_SOFTMIX, BM_SETCHECK, 1, 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
413 if(gtkAOExtraStereo)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
414 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
415 SendDlgItemMessage(hwnd, ID_EXTRASTEREO, BM_SETCHECK, 1, 0);
33555
c5a19bbeac2b Cosmetic: Rename some GUI variables and functions.
ib
parents: 33298
diff changeset
416 if(!guiInfo.Playing)
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
417 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
418 EnableWindow(track1, 1);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
419 EnableWindow(track2, 1);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
420 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
421 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
422 else gtkAOExtraStereoMul = 1.0;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
423 SendDlgItemMessage(hwnd, ID_TRACKBAR1, TBM_SETPOS, 1, (LPARAM)stereopos);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
424
36820
d90c15fd18d3 Cosmetic: Adjust indent.
ib
parents: 36819
diff changeset
425 SendDlgItemMessage(hwnd, ID_TRACKBAR2, TBM_SETPOS, 1, (LPARAM)delaypos);
36821
7958d1c69edc Fix bug with audio delay slider in Win32 GUI.
ib
parents: 36820
diff changeset
426 EnableWindow(GetDlgItem(hwnd, ID_TRACKBAR2), TRUE);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
427
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
428 if(gtkCacheOn) {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
429 SendDlgItemMessage(hwnd, ID_CACHE, BM_SETCHECK, 1, 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
430 EnableWindow(edit1, 1);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
431 EnableWindow(updown1, 1);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
432 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
433 else gtkCacheSize = 2048;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
434 SendDlgItemMessage(hwnd, ID_UPDOWN1, UDM_SETPOS32, 0, (LPARAM)gtkCacheSize);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
435
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
436 if(gtkAutoSyncOn) {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
437 SendDlgItemMessage(hwnd, ID_AUTOSYNC, BM_SETCHECK, 1, 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
438 EnableWindow(edit2, 1);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
439 EnableWindow(updown2, 1);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
440 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
441 else gtkAutoSync = 0;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
442 SendDlgItemMessage(hwnd, ID_UPDOWN2, UDM_SETPOS32, 0, (LPARAM)gtkAutoSync);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
443
34697
ac6b38cd0d45 Rename sub window video window.
ib
parents: 34610
diff changeset
444 if(video_window)
ac6b38cd0d45 Rename sub window video window.
ib
parents: 34610
diff changeset
445 SendDlgItemMessage(hwnd, ID_VIDEOWINDOW, BM_SETCHECK, 1, 0);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
446
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
447 if(!osd_level)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
448 SendDlgItemMessage(hwnd, ID_NONE, BM_SETCHECK, 1, 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
449 else if(osd_level == 1)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
450 SendDlgItemMessage(hwnd, ID_OSD1, BM_SETCHECK, 1, 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
451 else if(osd_level == 2)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
452 SendDlgItemMessage(hwnd, ID_OSD2, BM_SETCHECK, 1, 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
453 else if(osd_level == 3)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
454 SendDlgItemMessage(hwnd, ID_OSD3, BM_SETCHECK, 1, 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
455
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
456 if(proc_priority)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
457 SendDlgItemMessage(hwnd, ID_PRIO, CB_SETCURSEL,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
458 (WPARAM)SendMessage(prio, CB_FINDSTRING, -1,
36835
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
459 (LPARAM)get_priority(proc_priority, 0)), 0);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
460
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
461 else SendDlgItemMessage(hwnd, ID_PRIO, CB_SETCURSEL, 2, 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
462
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
463 break;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
464 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
465 case WM_CTLCOLORDLG:
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
466 case WM_CTLCOLOREDIT:
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
467 case WM_CTLCOLORBTN:
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
468 case WM_CTLCOLORSTATIC:
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
469 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
470 HDC hdc = (HDC)wParam;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
471 SetBkMode(hdc, TRANSPARENT);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
472 return (INT_PTR)SOLID_GREY;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
473 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
474 break;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
475 case WM_COMMAND:
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
476 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
477 switch (LOWORD(wParam))
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
478 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
479 case ID_EXTRASTEREO:
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
480 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
481 if(SendDlgItemMessage(hwnd, ID_EXTRASTEREO, BM_GETCHECK, 0, 0) == BST_CHECKED)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
482 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
483 EnableWindow(GetDlgItem(hwnd, ID_TRACKBAR1), 1);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
484 } else {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
485 EnableWindow(GetDlgItem(hwnd, ID_TRACKBAR1), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
486 SendDlgItemMessage(hwnd, ID_TRACKBAR1, TBM_SETPOS, 1, (LPARAM)10.0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
487 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
488 break;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
489 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
490 case ID_CACHE:
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
491 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
492 if(SendDlgItemMessage(hwnd, ID_CACHE, BM_GETCHECK, 0, 0) == BST_CHECKED)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
493 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
494 EnableWindow(GetDlgItem(hwnd, ID_EDIT1), 1);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
495 EnableWindow(GetDlgItem(hwnd, ID_UPDOWN1), 1);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
496 } else {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
497 EnableWindow(GetDlgItem(hwnd, ID_EDIT1), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
498 EnableWindow(GetDlgItem(hwnd, ID_UPDOWN1), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
499 SendDlgItemMessage(hwnd, ID_UPDOWN1, UDM_SETPOS32, 1, (LPARAM)2048);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
500 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
501 break;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
502 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
503 case ID_AUTOSYNC:
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
504 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
505 if(SendDlgItemMessage(hwnd, ID_AUTOSYNC, BM_GETCHECK, 0, 0) == BST_CHECKED)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
506 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
507 EnableWindow(GetDlgItem(hwnd, ID_EDIT2), 1);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
508 EnableWindow(GetDlgItem(hwnd, ID_UPDOWN2), 1);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
509 } else {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
510 EnableWindow(GetDlgItem(hwnd, ID_EDIT2), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
511 EnableWindow(GetDlgItem(hwnd, ID_UPDOWN2), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
512 SendDlgItemMessage(hwnd, ID_UPDOWN2, UDM_SETPOS32, 1, (LPARAM)0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
513 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
514 break;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
515 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
516 case ID_DEFAULTS:
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
517 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
518 SendDlgItemMessage(hwnd, ID_VO_DRIVER, CB_SETCURSEL,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
519 (WPARAM)SendMessage(vo_driver, CB_FINDSTRING, -1, (LPARAM)"directx"), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
520
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
521 SendDlgItemMessage(hwnd, ID_AO_DRIVER, CB_SETCURSEL,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
522 (WPARAM)SendMessage(ao_driver, CB_FINDSTRING, -1, (LPARAM)"dsound"), 0);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
523
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
524 SendDlgItemMessage(hwnd, ID_PRIO, CB_SETCURSEL,
36815
4c44fdd14655 Fix issue with Win32 GUI default preferences.
ib
parents: 36780
diff changeset
525 (WPARAM)SendMessage(prio, CB_FINDSTRING, -1, (LPARAM)"normal"), 0);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
526
36815
4c44fdd14655 Fix issue with Win32 GUI default preferences.
ib
parents: 36780
diff changeset
527 SendDlgItemMessage(hwnd, ID_TRACKBAR1, TBM_SETPOS, TRUE, (LPARAM)10.0);
4c44fdd14655 Fix issue with Win32 GUI default preferences.
ib
parents: 36780
diff changeset
528 SendDlgItemMessage(hwnd, ID_TRACKBAR2, TBM_SETPOS, TRUE, (LPARAM)0.0);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
529 SendDlgItemMessage(hwnd, ID_UPDOWN1, UDM_SETPOS32, 0, (LPARAM)gtkCacheSize);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
530 SendDlgItemMessage(hwnd, ID_UPDOWN2, UDM_SETPOS32, 0, (LPARAM)gtkAutoSync);
36815
4c44fdd14655 Fix issue with Win32 GUI default preferences.
ib
parents: 36780
diff changeset
531 SendDlgItemMessage(hwnd, ID_DOUBLE, BM_SETCHECK, BST_CHECKED, 0);
4c44fdd14655 Fix issue with Win32 GUI default preferences.
ib
parents: 36780
diff changeset
532 SendDlgItemMessage(hwnd, ID_DIRECT, BM_SETCHECK, BST_UNCHECKED, 0);
4c44fdd14655 Fix issue with Win32 GUI default preferences.
ib
parents: 36780
diff changeset
533 SendDlgItemMessage(hwnd, ID_IDLE, BM_SETCHECK, BST_UNCHECKED, 0);
4c44fdd14655 Fix issue with Win32 GUI default preferences.
ib
parents: 36780
diff changeset
534 SendDlgItemMessage(hwnd, ID_FRAMEDROP, BM_SETCHECK, BST_UNCHECKED, 0);
4c44fdd14655 Fix issue with Win32 GUI default preferences.
ib
parents: 36780
diff changeset
535 SendDlgItemMessage(hwnd, ID_NORMALIZE, BM_SETCHECK, BST_UNCHECKED, 0);
4c44fdd14655 Fix issue with Win32 GUI default preferences.
ib
parents: 36780
diff changeset
536 SendDlgItemMessage(hwnd, ID_SOFTMIX, BM_SETCHECK, BST_UNCHECKED, 0);
4c44fdd14655 Fix issue with Win32 GUI default preferences.
ib
parents: 36780
diff changeset
537 SendDlgItemMessage(hwnd, ID_EXTRASTEREO, BM_SETCHECK, BST_UNCHECKED, 0);
4c44fdd14655 Fix issue with Win32 GUI default preferences.
ib
parents: 36780
diff changeset
538 SendDlgItemMessage(hwnd, ID_CACHE, BM_SETCHECK, BST_UNCHECKED, 0);
4c44fdd14655 Fix issue with Win32 GUI default preferences.
ib
parents: 36780
diff changeset
539 SendDlgItemMessage(hwnd, ID_AUTOSYNC, BM_SETCHECK, BST_UNCHECKED, 0);
4c44fdd14655 Fix issue with Win32 GUI default preferences.
ib
parents: 36780
diff changeset
540 SendDlgItemMessage(hwnd, ID_VIDEOWINDOW, BM_SETCHECK, BST_CHECKED, 0);
4c44fdd14655 Fix issue with Win32 GUI default preferences.
ib
parents: 36780
diff changeset
541 SendDlgItemMessage(hwnd, ID_NONE, BM_SETCHECK, BST_UNCHECKED, 0);
4c44fdd14655 Fix issue with Win32 GUI default preferences.
ib
parents: 36780
diff changeset
542 SendDlgItemMessage(hwnd, ID_OSD1, BM_SETCHECK, BST_CHECKED, 0);
4c44fdd14655 Fix issue with Win32 GUI default preferences.
ib
parents: 36780
diff changeset
543 SendDlgItemMessage(hwnd, ID_OSD2, BM_SETCHECK, BST_UNCHECKED, 0);
4c44fdd14655 Fix issue with Win32 GUI default preferences.
ib
parents: 36780
diff changeset
544 SendDlgItemMessage(hwnd, ID_OSD3, BM_SETCHECK, BST_UNCHECKED, 0);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
545 break;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
546 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
547 case ID_CANCEL:
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
548 DestroyWindow(hwnd);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
549 return 0;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
550 case ID_APPLY:
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
551 {
36780
a5550a57a6cb Fix bug with Win32 GUI preferences.
ib
parents: 36725
diff changeset
552 int idx, strl;
36834
b2e529a2cbab Fix bug with Win32 GUI preferences.
ib
parents: 36833
diff changeset
553 char *driver, *procprio, *caption;
36719
9ba7cfbe20c9 Fix usage of acp().
ib
parents: 36694
diff changeset
554
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
555 /* Set the video driver */
36780
a5550a57a6cb Fix bug with Win32 GUI preferences.
ib
parents: 36725
diff changeset
556 idx = SendMessage(vo_driver, CB_GETCURSEL, 0, 0);
a5550a57a6cb Fix bug with Win32 GUI preferences.
ib
parents: 36725
diff changeset
557 strl = SendMessage(vo_driver, CB_GETLBTEXTLEN, (WPARAM)idx, 0);
a5550a57a6cb Fix bug with Win32 GUI preferences.
ib
parents: 36725
diff changeset
558 driver = malloc(strl + 1);
a5550a57a6cb Fix bug with Win32 GUI preferences.
ib
parents: 36725
diff changeset
559 SendMessage(vo_driver, CB_GETLBTEXT, (WPARAM)idx, (LPARAM)driver);
a5550a57a6cb Fix bug with Win32 GUI preferences.
ib
parents: 36725
diff changeset
560 listSet(&video_driver_list, driver);
a5550a57a6cb Fix bug with Win32 GUI preferences.
ib
parents: 36725
diff changeset
561 free(driver);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
562
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
563 /* Set the audio driver */
36780
a5550a57a6cb Fix bug with Win32 GUI preferences.
ib
parents: 36725
diff changeset
564 idx = SendMessage(ao_driver, CB_GETCURSEL, 0, 0);
a5550a57a6cb Fix bug with Win32 GUI preferences.
ib
parents: 36725
diff changeset
565 strl = SendMessage(ao_driver, CB_GETLBTEXTLEN, (WPARAM)idx, 0);
a5550a57a6cb Fix bug with Win32 GUI preferences.
ib
parents: 36725
diff changeset
566 driver = malloc(strl + 1);
a5550a57a6cb Fix bug with Win32 GUI preferences.
ib
parents: 36725
diff changeset
567 SendMessage(ao_driver, CB_GETLBTEXT, (WPARAM)idx, (LPARAM)driver);
a5550a57a6cb Fix bug with Win32 GUI preferences.
ib
parents: 36725
diff changeset
568 listSet(&audio_driver_list, driver);
a5550a57a6cb Fix bug with Win32 GUI preferences.
ib
parents: 36725
diff changeset
569 free(driver);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
570
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
571 /* Set the priority level */
36834
b2e529a2cbab Fix bug with Win32 GUI preferences.
ib
parents: 36833
diff changeset
572 idx = SendMessage(prio, CB_GETCURSEL, 0, 0);
b2e529a2cbab Fix bug with Win32 GUI preferences.
ib
parents: 36833
diff changeset
573 strl = SendMessage(prio, CB_GETLBTEXTLEN, (WPARAM)idx, 0);
b2e529a2cbab Fix bug with Win32 GUI preferences.
ib
parents: 36833
diff changeset
574 procprio = malloc(strl + 1);
b2e529a2cbab Fix bug with Win32 GUI preferences.
ib
parents: 36833
diff changeset
575 SendMessage(prio, CB_GETLBTEXT, (WPARAM)idx, (LPARAM)procprio);
36835
6bc38224c74a Fix bug with Win32 GUI preferences.
ib
parents: 36834
diff changeset
576 setdup(&proc_priority, get_priority(procprio, 1));
36834
b2e529a2cbab Fix bug with Win32 GUI preferences.
ib
parents: 36833
diff changeset
577 free(procprio);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
578
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
579 /* double buffering */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
580 if(SendDlgItemMessage(hwnd, ID_DOUBLE, BM_GETCHECK, 0, 0) == BST_CHECKED)
35501
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
581 vo_doublebuffering = TRUE;
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
582 else vo_doublebuffering = FALSE;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
583
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
584 /* direct rendering */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
585 if(SendDlgItemMessage(hwnd, ID_DIRECT, BM_GETCHECK, 0, 0) == BST_CHECKED)
35501
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
586 vo_directrendering = TRUE;
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
587 else vo_directrendering = FALSE;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
588
34087
b2d908cd8a1f Add idle option to Win32 GUI preferences dialog.
ib
parents: 33761
diff changeset
589 /* quit after playing */
b2d908cd8a1f Add idle option to Win32 GUI preferences dialog.
ib
parents: 33761
diff changeset
590 if(SendDlgItemMessage(hwnd, ID_IDLE, BM_GETCHECK, 0, 0) == BST_CHECKED)
35501
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
591 player_idle_mode = FALSE;
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
592 else player_idle_mode = TRUE;
34087
b2d908cd8a1f Add idle option to Win32 GUI preferences dialog.
ib
parents: 33761
diff changeset
593
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
594 /* frame dropping */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
595 if(SendDlgItemMessage(hwnd, ID_FRAMEDROP, BM_GETCHECK, 0, 0) == BST_CHECKED)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
596 frame_dropping = 1;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
597 else frame_dropping = 0;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
598
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
599 /* normalize */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
600 if(SendDlgItemMessage(hwnd, ID_NORMALIZE, BM_GETCHECK, 0, 0) == BST_CHECKED)
35501
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
601 gtkAONorm = TRUE;
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
602 else gtkAONorm = FALSE;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
603
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
604 /* software mixer */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
605 if(SendDlgItemMessage(hwnd, ID_SOFTMIX, BM_GETCHECK, 0, 0) == BST_CHECKED)
35501
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
606 soft_vol = TRUE;
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
607 else soft_vol = FALSE;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
608
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
609 /* extra stereo */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
610 if(SendDlgItemMessage(hwnd, ID_EXTRASTEREO, BM_GETCHECK, 0, 0) == BST_CHECKED)
35501
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
611 gtkAOExtraStereo = TRUE;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
612 else {
35501
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
613 gtkAOExtraStereo = FALSE;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
614 gtkAOExtraStereoMul = 10.0;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
615 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
616 gtkAOExtraStereoMul = SendDlgItemMessage(hwnd, ID_TRACKBAR1, TBM_GETPOS, 0, 0) / 10.0;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
617
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
618 /* audio delay */
36822
95e3f435bc57 Enable setting full audio delay value range.
ib
parents: 36821
diff changeset
619 audio_delay = SendDlgItemMessage(hwnd, ID_TRACKBAR2, TBM_GETPOS, 0, 0) / 10.0;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
620
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
621 /* cache */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
622 if(SendDlgItemMessage(hwnd, ID_CACHE, BM_GETCHECK, 0, 0) == BST_CHECKED)
35501
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
623 gtkCacheOn = TRUE;
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
624 else gtkCacheOn = FALSE;
36818
530c055800f2 Add cast.
ib
parents: 36817
diff changeset
625 gtkCacheSize = SendDlgItemMessage(hwnd, ID_UPDOWN1, UDM_GETPOS32, 0, (LPARAM)NULL);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
626
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
627 /* autosync */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
628 if(SendDlgItemMessage(hwnd, ID_AUTOSYNC, BM_GETCHECK, 0, 0) == BST_CHECKED)
35501
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
629 gtkAutoSyncOn = TRUE;
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
630 else gtkAutoSyncOn = FALSE;
36818
530c055800f2 Add cast.
ib
parents: 36817
diff changeset
631 gtkAutoSync = SendDlgItemMessage(hwnd, ID_UPDOWN2, UDM_GETPOS32, 0, (LPARAM)NULL);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
632
34697
ac6b38cd0d45 Rename sub window video window.
ib
parents: 34610
diff changeset
633 /* video window */
ac6b38cd0d45 Rename sub window video window.
ib
parents: 34610
diff changeset
634 if(SendDlgItemMessage(hwnd, ID_VIDEOWINDOW, BM_GETCHECK, 0, 0) == BST_CHECKED)
35501
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
635 video_window = TRUE;
7bb176fac55c Use boolean symbolic constants in Win32 GUI.
ib
parents: 34709
diff changeset
636 else video_window = FALSE;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
637
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
638 /* osd level */
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
639 if(SendDlgItemMessage(hwnd, ID_NONE, BM_GETCHECK, 0, 0) == BST_CHECKED)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
640 osd_level = 0;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
641 else if(SendDlgItemMessage(hwnd, ID_OSD1, BM_GETCHECK, 0, 0) == BST_CHECKED)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
642 osd_level = 1;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
643 else if(SendDlgItemMessage(hwnd, ID_OSD2, BM_GETCHECK, 0, 0) == BST_CHECKED)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
644 osd_level = 2;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
645 else if(SendDlgItemMessage(hwnd, ID_OSD3, BM_GETCHECK, 0, 0) == BST_CHECKED)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
646 osd_level = 3;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
647
36724
3561e179b25c Make message box less annoying.
ib
parents: 36722
diff changeset
648 if (guiInfo.Playing)
3561e179b25c Make message box less annoying.
ib
parents: 36722
diff changeset
649 {
36725
31138a69aee6 Cosmetic: Adjust indent.
ib
parents: 36724
diff changeset
650 caption = strdup(acp(MSGTR_GUI_Information));
31138a69aee6 Cosmetic: Adjust indent.
ib
parents: 36724
diff changeset
651 MessageBox(hwnd, acp(MSGTR_GUI_MSG_PlaybackNeedsRestart), caption, MB_OK | MB_ICONINFORMATION);
31138a69aee6 Cosmetic: Adjust indent.
ib
parents: 36724
diff changeset
652 free(caption);
36724
3561e179b25c Make message box less annoying.
ib
parents: 36722
diff changeset
653 }
3561e179b25c Make message box less annoying.
ib
parents: 36722
diff changeset
654
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
655 DestroyWindow(hwnd);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
656 break;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
657 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
658 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
659 return 0;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
660 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
661 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
662 return DefWindowProc(hwnd, iMsg, wParam, lParam);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
663 }
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
664
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
665 void display_prefswindow(gui_t *gui)
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
666 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
667 HWND hWnd;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
668 HINSTANCE hInstance = GetModuleHandle(NULL);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
669 WNDCLASS wc;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
670 int x, y;
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
671 if(FindWindow(NULL, acp(MSGTR_GUI_Preferences))) return;
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
672 wc.style = CS_HREDRAW | CS_VREDRAW;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
673 wc.lpfnWndProc = PrefsWndProc;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
674 wc.cbClsExtra = 0;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
675 wc.cbWndExtra = 0;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
676 wc.hInstance = hInstance;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
677 wc.hCursor = LoadCursor(NULL,IDC_ARROW);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
678 wc.hIcon = gui->icon;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
679 wc.hbrBackground = SOLID_GREY;
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
680 wc.lpszClassName = acp(MSGTR_GUI_Preferences);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
681 wc.lpszMenuName = NULL;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
682 RegisterClass(&wc);
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
683 x = (GetSystemMetrics(SM_CXSCREEN) / 2) - (425 / 2);
34087
b2d908cd8a1f Add idle option to Win32 GUI preferences dialog.
ib
parents: 33761
diff changeset
684 y = (GetSystemMetrics(SM_CYSCREEN) / 2) - (474 / 2);
36694
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
685 hWnd = CreateWindow(acp(MSGTR_GUI_Preferences),
eed2fb870f43 Rename symbolic constants of GUI help message texts.
ib
parents: 36672
diff changeset
686 acp(MSGTR_GUI_Preferences),
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
687 WS_POPUPWINDOW | WS_CAPTION,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
688 x,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
689 y,
34164
d57ed389b6e2 Resize the Win32 GUI preference window and reposition items.
ib
parents: 34163
diff changeset
690 425,
34087
b2d908cd8a1f Add idle option to Win32 GUI preferences dialog.
ib
parents: 33761
diff changeset
691 474,
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
692 NULL,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
693 NULL,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
694 hInstance,
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
695 NULL);
33638
dbca6aa18b50 Cast new user data value in SetWindowLongPtr() to LONG_PTR.
ib
parents: 33619
diff changeset
696 SetWindowLongPtr(hWnd, GWLP_USERDATA, (LONG_PTR) gui);
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
697 ShowWindow(hWnd, SW_SHOW);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
698 UpdateWindow(hWnd);
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
699 }