Author: janderwald
Date: Sat Sep 15 18:54:01 2007
New Revision: 29058
URL:
http://svn.reactos.org/svn/reactos?rev=29058&view=rev
Log:
- move VolumeDlgProc function to own file volume.c
- read default waveout device (thanks to Silverbade)
- improve volume dialog proc
- update all languages resources which current code changes
Added:
trunk/reactos/dll/cpl/mmsys/volume.c (with props)
Modified:
trunk/reactos/dll/cpl/mmsys/lang/cs-CZ.rc
trunk/reactos/dll/cpl/mmsys/lang/de-DE.rc
trunk/reactos/dll/cpl/mmsys/lang/el-GR.rc
trunk/reactos/dll/cpl/mmsys/lang/en-US.rc
trunk/reactos/dll/cpl/mmsys/lang/es-ES.rc
trunk/reactos/dll/cpl/mmsys/lang/fr-FR.rc
trunk/reactos/dll/cpl/mmsys/lang/id-ID.rc
trunk/reactos/dll/cpl/mmsys/lang/it-IT.rc
trunk/reactos/dll/cpl/mmsys/lang/nl-NL.rc
trunk/reactos/dll/cpl/mmsys/lang/pl-PL.rc
trunk/reactos/dll/cpl/mmsys/lang/pt-BR.rc
trunk/reactos/dll/cpl/mmsys/lang/ru-RU.rc
trunk/reactos/dll/cpl/mmsys/lang/uk-UA.rc
trunk/reactos/dll/cpl/mmsys/mmsys.c
trunk/reactos/dll/cpl/mmsys/mmsys.h
trunk/reactos/dll/cpl/mmsys/mmsys.rbuild
trunk/reactos/dll/cpl/mmsys/resource.h
trunk/reactos/dll/cpl/mmsys/sounds.c (props changed)
Modified: trunk/reactos/dll/cpl/mmsys/lang/cs-CZ.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/lang/cs-CZ.r…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/lang/cs-CZ.rc (original)
+++ trunk/reactos/dll/cpl/mmsys/lang/cs-CZ.rc Sat Sep 15 18:54:01 2007
@@ -6,10 +6,10 @@
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDI_CPLICON, IDI_CPLICON, 8,5,32,32
- LTEXT "",-1,40,10,194,36
+ LTEXT "",IDC_DEVICE_NAME,40,10,194,36
GROUPBOX "Device volume", -1, 7,30,230,100
ICON IDI_CPLICON, IDI_CPLICON, 17,45,32,32
- CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | WS_TABSTOP, 65, 45, 140, 14
+ CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | TBS_ENABLESELRANGE | TBS_BOTTOM | TBS_HORZ | WS_TABSTOP, 65, 45, 140, 14
LTEXT "Low",-1,62,66,30,17
LTEXT "High",-1,195,66,30,17
CHECKBOX "&Mute", IDC_MUTE_CHECKBOX, 50, 78, 140, 10
@@ -29,16 +29,16 @@
BEGIN
LTEXT "A sound scheme is a set of sounds applied to events to in ReactOS and
programs. You can select an existing scheme or save one you have
modified.",-1,8,7,230,40
LTEXT "Sound s&cheme:",-1,8,42,150,17
- COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST
+ COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "Sav&e As...", -1, 134,70,50,15
PUSHBUTTON "&Delete", -1, 188,70,50,15
LTEXT "To change sounds, click a program event in the following list and then
select a sound to apply. You can save the changes as a new sound
scheme.",-1,8,90,230,40
LTEXT "&Pogram events:",-1,8,118,150,17
CONTROL "", IDC_SCHEME_LIST, "SysListView32", LVS_REPORT |
LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SORTASCENDING | WS_BORDER | WS_TABSTOP, 8, 130,
230, 60, WS_EX_CLIENTEDGE
- LTEXT "&Sounds:",-1,8,194,80,17
- COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 46, CBS_DROPDOWNLIST
- PUSHBUTTON "", -1, 168,205,15,15
- PUSHBUTTON "&Brouse...", -1, 188,205,50,15
+ LTEXT "&Sounds:", IDC_TEXT_SOUND,8,194,80,17, WS_DISABLED
+ COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 146, CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL |
CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_DISABLED
+ PUSHBUTTON "", IDC_PLAY_SOUND, 168,205,15,15, WS_DISABLED
+ PUSHBUTTON "&Brouse...", IDC_BROWSE_SOUND, 188,205,50,15, WS_DISABLED
END
IDD_AUDIO DIALOGEX 0, 0, 246, 228
@@ -99,6 +99,7 @@
BEGIN
IDS_CPLNAME "Zvuky a zvuková zaøízení"
IDS_CPLDESCRIPTION "Upraví zvukové schéma Vaeho poèítaèe, nebo nastaví
reproduktory a nahrávací zaøízení."
+ IDS_NO_SOUND "(None)"
END
Modified: trunk/reactos/dll/cpl/mmsys/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/lang/de-DE.r…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/lang/de-DE.rc (original)
+++ trunk/reactos/dll/cpl/mmsys/lang/de-DE.rc Sat Sep 15 18:54:01 2007
@@ -6,14 +6,14 @@
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDI_CPLICON, IDI_CPLICON, 8,5,32,32
- LTEXT "",-1,40,10,194,36
+ LTEXT "",IDC_DEVICE_NAME,40,10,194,36
GROUPBOX "Gerätelautstärke", -1, 7,30,230,100
ICON IDI_CPLICON, IDI_CPLICON, 17,45,32,32
- CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | WS_TABSTOP, 65, 45, 140, 14
+ CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | TBS_ENABLESELRANGE | TBS_BOTTOM | TBS_HORZ | WS_TABSTOP, 65, 45, 140, 14
LTEXT "Niedrig",-1,62,66,30,17
LTEXT "Hoch",-1,195,66,30,17
CHECKBOX "Stu&mmschalten", IDC_MUTE_CHECKBOX, 50, 78, 140, 10
- CHECKBOX "Lautstärkeregelungs-&Icon in der Taskleiste zeigen",
IDC_ICON_IN_TASKBAR, 50, 92, 140, 10
+ CHECKBOX "Lautstärkeregelungs-&Icon in der Taskleiste zeigen",
IDC_ICON_IN_TASKBAR, 50, 92, 170, 10
PUSHBUTTON "Er&weitert", -1, 150,105,75,15
GROUPBOX "Lautsprechereintellungen", -1, 7,140,230,80
CONTROL "", IDC_SPEAKIMG, "Static", SS_OWNERDRAW, 4, 160, 70, 70
@@ -29,16 +29,16 @@
BEGIN
LTEXT "Ein Soundschema ist eine Kollektion von Sounds, die bestimmtem
Ereignissen in Programmen in ReactOS zugordnet sind. Sie können ein existierendes Schema
anwählen oder ein modifiziertes speichern.",-1,8,7,230,40
LTEXT "Sounds&chema:",-1,8,42,150,17
- COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST
+ COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "Sp&eichern unter...", -1, 134,70,50,15
PUSHBUTTON "&Löschen", -1, 188,70,50,15
LTEXT "Um Sounds zu ändern, klicken Sie auf ein Programmereignis in der
folgenden Liste und wählen Sie einen Sound. Sie können Änderungen als neue Soundschemata
speichern.",-1,8,90,230,40
LTEXT "&Pogrammereignisse:",-1,8,118,150,17
CONTROL "", IDC_SCHEME_LIST, "SysListView32", LVS_REPORT |
LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SORTASCENDING | WS_BORDER | WS_TABSTOP, 8, 130,
230, 60, WS_EX_CLIENTEDGE
- LTEXT "&Sounds:",-1,8,194,80,17
- COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 46, CBS_DROPDOWNLIST
- PUSHBUTTON "", -1, 168,205,15,15
- PUSHBUTTON "&Durchsuchen...", -1, 188,205,50,15
+ LTEXT "&Sounds:", IDC_TEXT_SOUND,8,194,80,17, WS_DISABLED
+ COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 146, CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL |
CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_DISABLED
+ PUSHBUTTON "", IDC_PLAY_SOUND, 168,205,15,15, WS_DISABLED
+ PUSHBUTTON "&Durchsuchen...", IDC_BROWSE_SOUND, 188,205,81,15,
WS_DISABLED
END
IDD_AUDIO DIALOGEX 0, 0, 246, 228
@@ -99,6 +99,7 @@
BEGIN
IDS_CPLNAME "Sound und Audio Geräte"
IDS_CPLDESCRIPTION "Ändert das Sound-Schema Ihres Computers, oder konfiguriert
die Einstellungen für Ihre Lautsprecher und Aufnahmegeräte."
+ IDS_NO_SOUND "(Kein)"
END
Modified: trunk/reactos/dll/cpl/mmsys/lang/el-GR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/lang/el-GR.r…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/lang/el-GR.rc (original)
+++ trunk/reactos/dll/cpl/mmsys/lang/el-GR.rc Sat Sep 15 18:54:01 2007
@@ -6,10 +6,10 @@
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDI_CPLICON, IDI_CPLICON, 8,5,32,32
- LTEXT "",-1,40,10,194,36
+ LTEXT "",IDC_DEVICE_NAME,40,10,194,36
GROUPBOX "Device volume", -1, 7,30,230,100
ICON IDI_CPLICON, IDI_CPLICON, 17,45,32,32
- CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | WS_TABSTOP, 65, 45, 140, 14
+ CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | TBS_ENABLESELRANGE | TBS_BOTTOM | TBS_HORZ | WS_TABSTOP, 65, 45, 140, 14
LTEXT "Low",-1,62,66,30,17
LTEXT "High",-1,195,66,30,17
CHECKBOX "&Mute", IDC_MUTE_CHECKBOX, 50, 78, 140, 10
@@ -29,16 +29,16 @@
BEGIN
LTEXT "A sound scheme is a set of sounds applied to events to in ReactOS and
programs. You can select an existing scheme or save one you have
modified.",-1,8,7,230,40
LTEXT "Sound s&cheme:",-1,8,42,150,17
- COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST
+ COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "Sav&e As...", -1, 134,70,50,15
PUSHBUTTON "&Delete", -1, 188,70,50,15
LTEXT "To change sounds, click a program event in the following list and then
select a sound to apply. You can save the changes as a new sound
scheme.",-1,8,90,230,40
LTEXT "&Pogram events:",-1,8,118,150,17
CONTROL "", IDC_SCHEME_LIST, "SysListView32", LVS_REPORT |
LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SORTASCENDING | WS_BORDER | WS_TABSTOP, 8, 130,
230, 60, WS_EX_CLIENTEDGE
- LTEXT "&Sounds:",-1,8,194,80,17
- COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 46, CBS_DROPDOWNLIST
- PUSHBUTTON "", -1, 168,205,15,15
- PUSHBUTTON "&Brouse...", -1, 188,205,50,15
+ LTEXT "&Sounds:",IDC_TEXT_SOUND,8,194,80,17, WS_DISABLED
+ COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 146, CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL |
CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_DISABLED
+ PUSHBUTTON "", IDC_PLAY_SOUND, 168,205,15,15, WS_DISABLED
+ PUSHBUTTON "&Browse...", IDC_BROWSE_SOUND, 188,205,50,15, WS_DISABLED
END
IDD_AUDIO DIALOGEX 0, 0, 246, 228
@@ -99,6 +99,7 @@
BEGIN
IDS_CPLNAME "ÓõóêåõÝò Þ÷ïõ"
IDS_CPLDESCRIPTION "ÁëëÜæåé ôï ó÷Þìá Þ÷ïõ ôïõ õðïëïãéóôÞ Þ ôñïðïðïéåß ôéò
ñõèìßóåéò ãéá ôá ç÷åßá êáé ôéò óõóêåõÝò åããñáöÞò Þ÷ïõ."
+ IDS_NO_SOUND "(None)"
END
Modified: trunk/reactos/dll/cpl/mmsys/lang/en-US.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/lang/en-US.r…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/lang/en-US.rc (original)
+++ trunk/reactos/dll/cpl/mmsys/lang/en-US.rc Sat Sep 15 18:54:01 2007
@@ -6,10 +6,10 @@
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDI_CPLICON, IDI_CPLICON, 8,5,32,32
- LTEXT "",-1,40,10,194,36
+ LTEXT "",IDC_DEVICE_NAME,40,10,194,36
GROUPBOX "Device volume", -1, 7,30,230,100
ICON IDI_CPLICON, IDI_CPLICON, 17,45,32,32
- CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | WS_TABSTOP, 65, 45, 140, 14
+ CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | TBS_ENABLESELRANGE | TBS_BOTTOM | TBS_HORZ | WS_TABSTOP, 65, 45, 140, 14
LTEXT "Low",-1,62,66,30,17
LTEXT "High",-1,195,66,30,17
CHECKBOX "&Mute", IDC_MUTE_CHECKBOX, 50, 78, 140, 10
@@ -29,16 +29,16 @@
BEGIN
LTEXT "A sound scheme is a set of sounds applied to events to in ReactOS and
programs. You can select an existing scheme or save one you have
modified.",-1,8,7,230,40
LTEXT "Sound s&cheme:",-1,8,42,150,17
- COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST
+ COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "Sav&e As...", -1, 134,70,50,15
PUSHBUTTON "&Delete", -1, 188,70,50,15
LTEXT "To change sounds, click a program event in the following list and then
select a sound to apply. You can save the changes as a new sound
scheme.",-1,8,90,230,40
LTEXT "&Program events:",-1,8,118,150,17
CONTROL "", IDC_SCHEME_LIST, "SysListView32", LVS_REPORT |
LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SORTASCENDING | WS_BORDER | WS_TABSTOP, 8, 130,
230, 60, WS_EX_CLIENTEDGE
- LTEXT "&Sounds:",-1,8,194,80,17
- COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 46, CBS_DROPDOWNLIST
- PUSHBUTTON "", -1, 168,205,15,15
- PUSHBUTTON "&Browse...", -1, 188,205,50,15
+ LTEXT "&Sounds:",IDC_TEXT_SOUND,8,194,80,17, WS_DISABLED
+ COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 146, CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL |
CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_DISABLED
+ PUSHBUTTON "", IDC_PLAY_SOUND, 168,205,15,15, WS_DISABLED
+ PUSHBUTTON "&Browse...", IDC_BROWSE_SOUND, 188,205,50,15, WS_DISABLED
END
IDD_AUDIO DIALOGEX 0, 0, 246, 228
@@ -100,6 +100,7 @@
BEGIN
IDS_CPLNAME "Sound and Audio Devices"
IDS_CPLDESCRIPTION "Changes the sound scheme for your computer, or configure the
settings for your speakers and recording devices."
+ IDS_NO_SOUND "(None)"
END
Modified: trunk/reactos/dll/cpl/mmsys/lang/es-ES.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/lang/es-ES.r…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/lang/es-ES.rc (original)
+++ trunk/reactos/dll/cpl/mmsys/lang/es-ES.rc Sat Sep 15 18:54:01 2007
@@ -6,10 +6,10 @@
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDI_CPLICON, IDI_CPLICON, 8,5,32,32
- LTEXT "",-1,40,10,194,36
+ LTEXT "",IDC_DEVICE_NAME,40,10,194,36
GROUPBOX "Device volume", -1, 7,30,230,100
ICON IDI_CPLICON, IDI_CPLICON, 17,45,32,32
- CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | WS_TABSTOP, 65, 45, 140, 14
+ CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | TBS_ENABLESELRANGE | TBS_BOTTOM | TBS_HORZ | WS_TABSTOP, 65, 45, 140, 14
LTEXT "Low",-1,62,66,30,17
LTEXT "High",-1,195,66,30,17
CHECKBOX "&Mute", IDC_MUTE_CHECKBOX, 50, 78, 140, 10
@@ -29,16 +29,16 @@
BEGIN
LTEXT "A sound scheme is a set of sounds applied to events to in ReactOS and
programs. You can select an existing scheme or save one you have
modified.",-1,8,7,230,40
LTEXT "Sound s&cheme:",-1,8,42,150,17
- COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST
+ COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "Sav&e As...", -1, 134,70,50,15
PUSHBUTTON "&Delete", -1, 188,70,50,15
LTEXT "To change sounds, click a program event in the following list and then
select a sound to apply. You can save the changes as a new sound
scheme.",-1,8,90,230,40
LTEXT "&Pogram events:",-1,8,118,150,17
CONTROL "", IDC_SCHEME_LIST, "SysListView32", LVS_REPORT |
LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SORTASCENDING | WS_BORDER | WS_TABSTOP, 8, 130,
230, 60, WS_EX_CLIENTEDGE
- LTEXT "&Sounds:",-1,8,194,80,17
- COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 46, CBS_DROPDOWNLIST
- PUSHBUTTON "", -1, 168,205,15,15
- PUSHBUTTON "&Brouse...", -1, 188,205,50,15
+ LTEXT "&Sounds:",IDC_TEXT_SOUND,8,194,80,17, WS_DISABLED
+ COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 146, CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL |
CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_DISABLED
+ PUSHBUTTON "", IDC_PLAY_SOUND, 168,205,15,15, WS_DISABLED
+ PUSHBUTTON "&Brouse...", IDC_BROWSE_SOUND, 188,205,50,15, WS_DISABLED
END
IDD_AUDIO DIALOGEX 0, 0, 246, 228
@@ -99,6 +99,7 @@
BEGIN
IDS_CPLNAME "Dispositivos de Audio y Sonido"
IDS_CPLDESCRIPTION "Cambia el esquema de sonidos de su computadora, o configura
las propiedades de sus bocinas y dispositivos de grabación."
+ IDS_NO_SOUND "(None)"
END
Modified: trunk/reactos/dll/cpl/mmsys/lang/fr-FR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/lang/fr-FR.r…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/lang/fr-FR.rc (original)
+++ trunk/reactos/dll/cpl/mmsys/lang/fr-FR.rc Sat Sep 15 18:54:01 2007
@@ -6,10 +6,10 @@
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDI_CPLICON, IDI_CPLICON, 8,5,32,32
- LTEXT "",-1,40,10,194,36
+ LTEXT "",IDC_DEVICE_NAME,40,10,194,36
GROUPBOX "Volume du périphérique", -1, 7,30,230,100
ICON IDI_CPLICON, IDI_CPLICON, 17,45,32,32
- CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | WS_TABSTOP, 65, 45, 140, 14
+ CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | TBS_ENABLESELRANGE | TBS_BOTTOM | TBS_HORZ | WS_TABSTOP, 65, 45, 140, 14
LTEXT "Faible",-1,62,66,30,17
LTEXT "Élevé",-1,195,66,30,17
CHECKBOX "&Muet", IDC_MUTE_CHECKBOX, 50, 78, 140, 10
@@ -29,16 +29,16 @@
BEGIN
LTEXT "Un schéma sons est un ensemble de sons appliqués aux évènements de
ReactOS et aux programmes. Vous pouvez sélectionner un schéma existant ou en enregistrer
que vous avez modifié.",-1,8,7,230,40
LTEXT "S&chéma son:",-1,8,42,150,17
- COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST
+ COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "&Enregistrer sous...", -1, 134,70,50,15
PUSHBUTTON "Supprimer", -1, 188,70,50,15
LTEXT "Pour changer les sons, cliquez sur un évènement de programme dans la
liste suivante, puis sélectionnez un son à appliquer. Vous pouvez enregistrer les
changements en tant que nouveau schéma son.",-1,8,90,230,40
LTEXT "Évènements des programmes:",-1,8,118,150,17
CONTROL "", IDC_SCHEME_LIST, "SysListView32", LVS_REPORT |
LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SORTASCENDING | WS_BORDER | WS_TABSTOP, 8, 130,
230, 60, WS_EX_CLIENTEDGE
- LTEXT "&Sons:",-1,8,194,80,17
- COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 46, CBS_DROPDOWNLIST
- PUSHBUTTON "", -1, 168,205,15,15
- PUSHBUTTON "Parcourir...", -1, 188,205,50,15
+ LTEXT "&Sons:",IDC_TEXT_SOUND,8,194,80,17, WS_DISABLED
+ COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 146, CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL |
CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_DISABLED
+ PUSHBUTTON "", IDC_PLAY_SOUND, 168,205,15,15, WS_DISABLED
+ PUSHBUTTON "Parcourir...", IDC_BROWSE_SOUND, 188,205,50,15, WS_DISABLED
END
IDD_AUDIO DIALOGEX 0, 0, 246, 228
@@ -99,6 +99,7 @@
BEGIN
IDS_CPLNAME "Son et périphériques audio"
IDS_CPLDESCRIPTION "Change le modèle de sons de votre ordinateur, ou configure
les paramètres de vos hauts-parleurs et de vos périphériques d'enregistrement."
+ IDS_NO_SOUND "(None)"
END
Modified: trunk/reactos/dll/cpl/mmsys/lang/id-ID.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/lang/id-ID.r…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/lang/id-ID.rc (original)
+++ trunk/reactos/dll/cpl/mmsys/lang/id-ID.rc Sat Sep 15 18:54:01 2007
@@ -6,10 +6,10 @@
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDI_CPLICON, IDI_CPLICON, 8,5,32,32
- LTEXT "",-1,40,10,194,36
+ LTEXT "",IDC_DEVICE_NAME,40,10,194,36
GROUPBOX "Device volume", -1, 7,30,230,100
ICON IDI_CPLICON, IDI_CPLICON, 17,45,32,32
- CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | WS_TABSTOP, 65, 45, 140, 14
+ CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | TBS_ENABLESELRANGE | TBS_BOTTOM | TBS_HORZ | WS_TABSTOP, 65, 45, 140, 14
LTEXT "Low",-1,62,66,30,17
LTEXT "High",-1,195,66,30,17
CHECKBOX "&Mute", IDC_MUTE_CHECKBOX, 50, 78, 140, 10
@@ -29,16 +29,16 @@
BEGIN
LTEXT "A sound scheme is a set of sounds applied to events to in ReactOS and
programs. You can select an existing scheme or save one you have
modified.",-1,8,7,230,40
LTEXT "Sound s&cheme:",-1,8,42,150,17
- COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST
+ COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "Sav&e As...", -1, 134,70,50,15
PUSHBUTTON "&Delete", -1, 188,70,50,15
LTEXT "To change sounds, click a program event in the following list and then
select a sound to apply. You can save the changes as a new sound
scheme.",-1,8,90,230,40
LTEXT "&Pogram events:",-1,8,118,150,17
CONTROL "", IDC_SCHEME_LIST, "SysListView32", LVS_REPORT |
LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SORTASCENDING | WS_BORDER | WS_TABSTOP, 8, 130,
230, 60, WS_EX_CLIENTEDGE
- LTEXT "&Sounds:",-1,8,194,80,17
- COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 46, CBS_DROPDOWNLIST
- PUSHBUTTON "", -1, 168,205,15,15
- PUSHBUTTON "&Brouse...", -1, 188,205,50,15
+ LTEXT "&Sounds:",IDC_TEXT_SOUND,8,194,80,17, WS_DISABLED
+ COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 146, CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL |
CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_DISABLED
+ PUSHBUTTON "", IDC_PLAY_SOUND, 168,205,15,15, WS_DISABLED
+ PUSHBUTTON "&Brouse...", IDC_BROWSE_SOUND, 188,205,50,15, WS_DISABLED
END
IDD_AUDIO DIALOGEX 0, 0, 246, 228
@@ -99,6 +99,5 @@
BEGIN
IDS_CPLNAME "Suara dan Audio Devices"
IDS_CPLDESCRIPTION "Mengubah skema suara untuk komputer anda, atau
mengkonfigurasi setelan untuk speaker dan device perekaman anda."
+ IDS_NO_SOUND "(None)"
END
-
-
Modified: trunk/reactos/dll/cpl/mmsys/lang/it-IT.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/lang/it-IT.r…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/lang/it-IT.rc (original)
+++ trunk/reactos/dll/cpl/mmsys/lang/it-IT.rc Sat Sep 15 18:54:01 2007
@@ -6,10 +6,10 @@
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDI_CPLICON, IDI_CPLICON, 8,5,32,32
- LTEXT "",-1,40,10,194,36
+ LTEXT "",IDC_DEVICE_NAME,40,10,194,36
GROUPBOX "Volume del dispositivo", -1, 7,30,230,100
ICON IDI_CPLICON, IDI_CPLICON, 17,45,32,32
- CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | WS_TABSTOP, 65, 45, 140, 14
+ CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | TBS_ENABLESELRANGE | TBS_BOTTOM | TBS_HORZ | WS_TABSTOP, 65, 45, 140, 14
LTEXT "Basso",-1,62,66,30,17
LTEXT "Alto",-1,195,66,30,17
CHECKBOX "&Mute", IDC_MUTE_CHECKBOX, 50, 78, 140, 10
@@ -29,16 +29,16 @@
BEGIN
LTEXT "Uno schema dei suoni è un insieme di suoni legati agli eventi in Reactos
e nei programmi. Potete selezionare uno schema esistente o salvarne uno che avete
modificato.",-1,8,7,230,40
LTEXT "S&chema dei suoni:",-1,8,42,150,17
- COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST
+ COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "&Salva come...", -1, 134,70,50,15
PUSHBUTTON "&Cancella", -1, 188,70,50,15
LTEXT "Per cambiare i suoni, cliccare un evento nella lista seguente e poi
scegliere il suono da usare. Potete salvare le modifiche in un nuovo schema di
suoni.",-1,8,90,230,40
LTEXT "&Eventi:",-1,8,118,150,17
CONTROL "", IDC_SCHEME_LIST, "SysListView32", LVS_REPORT |
LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SORTASCENDING | WS_BORDER | WS_TABSTOP, 8, 130,
230, 60, WS_EX_CLIENTEDGE
- LTEXT "&Suoni:",-1,8,194,80,17
- COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 46, CBS_DROPDOWNLIST
- PUSHBUTTON "", -1, 168,205,15,15
- PUSHBUTTON "&Sfoglia...", -1, 188,205,50,15
+ LTEXT "&Suoni:",IDC_TEXT_SOUND,8,194,80,17, WS_DISABLED
+ COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 146, CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL |
CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_DISABLED
+ PUSHBUTTON "", IDC_PLAY_SOUND, 168,205,15,15, WS_DISABLED
+ PUSHBUTTON "&Sfoglia...", IDC_BROWSE_SOUND, 188,205,50,15, WS_DISABLED
END
IDD_AUDIO DIALOGEX 0, 0, 246, 228
@@ -99,6 +99,7 @@
BEGIN
IDS_CPLNAME "Suoni e Dispositivi audio"
IDS_CPLDESCRIPTION "Cambia lo schema dei suoni per il tuo computer o configura
le impostazioni per gli altoparlanti e i dispositivi di registrazione."
+ IDS_NO_SOUND "(None)"
END
Modified: trunk/reactos/dll/cpl/mmsys/lang/nl-NL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/lang/nl-NL.r…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/lang/nl-NL.rc (original)
+++ trunk/reactos/dll/cpl/mmsys/lang/nl-NL.rc Sat Sep 15 18:54:01 2007
@@ -6,10 +6,10 @@
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDI_CPLICON, IDI_CPLICON, 8,5,32,32
- LTEXT "",-1,40,10,194,36
+ LTEXT "",IDC_DEVICE_NAME,40,10,194,36
GROUPBOX "Device volume", -1, 7,30,230,100
ICON IDI_CPLICON, IDI_CPLICON, 17,45,32,32
- CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | WS_TABSTOP, 65, 45, 140, 14
+ CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | TBS_ENABLESELRANGE | TBS_BOTTOM | TBS_HORZ | WS_TABSTOP, 65, 45, 140, 14
LTEXT "Low",-1,62,66,30,17
LTEXT "High",-1,195,66,30,17
CHECKBOX "&Mute", IDC_MUTE_CHECKBOX, 50, 78, 140, 10
@@ -29,16 +29,16 @@
BEGIN
LTEXT "A sound scheme is a set of sounds applied to events to in ReactOS and
programs. You can select an existing scheme or save one you have
modified.",-1,8,7,230,40
LTEXT "Sound s&cheme:",-1,8,42,150,17
- COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST
+ COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "Sav&e As...", -1, 134,70,50,15
PUSHBUTTON "&Delete", -1, 188,70,50,15
LTEXT "To change sounds, click a program event in the following list and then
select a sound to apply. You can save the changes as a new sound
scheme.",-1,8,90,230,40
LTEXT "&Pogram events:",-1,8,118,150,17
CONTROL "", IDC_SCHEME_LIST, "SysListView32", LVS_REPORT |
LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SORTASCENDING | WS_BORDER | WS_TABSTOP, 8, 130,
230, 60, WS_EX_CLIENTEDGE
- LTEXT "&Sounds:",-1,8,194,80,17
- COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 46, CBS_DROPDOWNLIST
- PUSHBUTTON "", -1, 168,205,15,15
- PUSHBUTTON "&Brouse...", -1, 188,205,50,15
+ LTEXT "&Sounds:",IDC_TEXT_SOUND,8,194,80,17, WS_DISABLED
+ COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 146, CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL |
CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_DISABLED
+ PUSHBUTTON "", IDC_PLAY_SOUND, 168,205,15,15, WS_DISABLED
+ PUSHBUTTON "&Brouse...", IDC_BROWSE_SOUND, 188,205,50,15, WS_DISABLED
END
IDD_AUDIO DIALOGEX 0, 0, 246, 228
@@ -99,5 +99,6 @@
BEGIN
IDS_CPLNAME "Geluid en Audio apparaten"
IDS_CPLDESCRIPTION "Verander het geluidsschema van uw computer of configureer de
aanwezige geluidsapparatuur."
+ IDS_NO_SOUND "(None)"
END
Modified: trunk/reactos/dll/cpl/mmsys/lang/pl-PL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/lang/pl-PL.r…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/lang/pl-PL.rc (original)
+++ trunk/reactos/dll/cpl/mmsys/lang/pl-PL.rc Sat Sep 15 18:54:01 2007
@@ -11,10 +11,10 @@
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDI_CPLICON, IDI_CPLICON, 8,5,32,32
- LTEXT "",-1,40,10,194,36
+ LTEXT "",IDC_DEVICE_NAME,40,10,194,36
GROUPBOX "Device volume", -1, 7,30,230,100
ICON IDI_CPLICON, IDI_CPLICON, 17,45,32,32
- CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | WS_TABSTOP, 65, 45, 140, 14
+ CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | TBS_ENABLESELRANGE | TBS_BOTTOM | TBS_HORZ | WS_TABSTOP, 65, 45, 140, 14
LTEXT "Low",-1,62,66,30,17
LTEXT "High",-1,195,66,30,17
CHECKBOX "&Mute", IDC_MUTE_CHECKBOX, 50, 78, 140, 10
@@ -34,16 +34,16 @@
BEGIN
LTEXT "A sound scheme is a set of sounds applied to events to in ReactOS and
programs. You can select an existing scheme or save one you have
modified.",-1,8,7,230,40
LTEXT "Sound s&cheme:",-1,8,42,150,17
- COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST
+ COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "Sav&e As...", -1, 134,70,50,15
PUSHBUTTON "&Delete", -1, 188,70,50,15
LTEXT "To change sounds, click a program event in the following list and then
select a sound to apply. You can save the changes as a new sound
scheme.",-1,8,90,230,40
LTEXT "&Pogram events:",-1,8,118,150,17
CONTROL "", IDC_SCHEME_LIST, "SysListView32", LVS_REPORT |
LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SORTASCENDING | WS_BORDER | WS_TABSTOP, 8, 130,
230, 60, WS_EX_CLIENTEDGE
- LTEXT "&Sounds:",-1,8,194,80,17
- COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 46, CBS_DROPDOWNLIST
- PUSHBUTTON "", -1, 168,205,15,15
- PUSHBUTTON "&Brouse...", -1, 188,205,50,15
+ LTEXT "&Sounds:", IDC_TEXT_SOUND,8,194,80,17, WS_DISABLED
+ COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 146, CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL |
CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_DISABLED
+ PUSHBUTTON "", IDC_PLAY_SOUND, 168,205,15,15, WS_DISABLED
+ PUSHBUTTON "&Brouse...", IDC_BROWSE_SOUND, 188,205,50,15, WS_DISABLED
END
IDD_AUDIO DIALOGEX 0, 0, 246, 228
@@ -104,6 +104,5 @@
BEGIN
IDS_CPLNAME "Dwiêk i urz¹dzenia audio"
IDS_CPLDESCRIPTION "Zmieñ schemat dwiêkowy dla tego komputera lub skonfiguruj
ustawienia g³oników i urz¹dzeñ nagrywaj¹cych."
+ IDS_NO_SOUND "(None)"
END
-
-
Modified: trunk/reactos/dll/cpl/mmsys/lang/pt-BR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/lang/pt-BR.r…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/lang/pt-BR.rc (original)
+++ trunk/reactos/dll/cpl/mmsys/lang/pt-BR.rc Sat Sep 15 18:54:01 2007
@@ -6,10 +6,10 @@
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDI_CPLICON, IDI_CPLICON, 8,5,32,32
- LTEXT "",-1,40,10,194,36
+ LTEXT "",IDC_DEVICE_NAME,40,10,194,36
GROUPBOX "Device volume", -1, 7,30,230,100
ICON IDI_CPLICON, IDI_CPLICON, 17,45,32,32
- CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | WS_TABSTOP, 65, 45, 140, 14
+ CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | TBS_ENABLESELRANGE | TBS_BOTTOM | TBS_HORZ | WS_TABSTOP, 65, 45, 140, 14
LTEXT "Low",-1,62,66,30,17
LTEXT "High",-1,195,66,30,17
CHECKBOX "&Mute", IDC_MUTE_CHECKBOX, 50, 78, 140, 10
@@ -29,16 +29,16 @@
BEGIN
LTEXT "A sound scheme is a set of sounds applied to events to in ReactOS and
programs. You can select an existing scheme or save one you have
modified.",-1,8,7,230,40
LTEXT "Sound s&cheme:",-1,8,42,150,17
- COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST
+ COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "Sav&e As...", -1, 134,70,50,15
PUSHBUTTON "&Delete", -1, 188,70,50,15
LTEXT "To change sounds, click a program event in the following list and then
select a sound to apply. You can save the changes as a new sound
scheme.",-1,8,90,230,40
LTEXT "&Pogram events:",-1,8,118,150,17
CONTROL "", IDC_SCHEME_LIST, "SysListView32", LVS_REPORT |
LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SORTASCENDING | WS_BORDER | WS_TABSTOP, 8, 130,
230, 60, WS_EX_CLIENTEDGE
- LTEXT "&Sounds:",-1,8,194,80,17
- COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 46, CBS_DROPDOWNLIST
- PUSHBUTTON "", -1, 168,205,15,15
- PUSHBUTTON "&Brouse...", -1, 188,205,50,15
+ LTEXT "&Sounds:",IDC_TEXT_SOUND,8,194,80,17
+ COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 146, CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL |
CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_DISABLED
+ PUSHBUTTON "", IDC_PLAY_SOUND, 168,205,15,15
+ PUSHBUTTON "&Brouse...", IDC_BROWSE_SOUND, 188,205,50,15
END
IDD_AUDIO DIALOGEX 0, 0, 246, 228
@@ -99,6 +99,7 @@
BEGIN
IDS_CPLNAME "Sons e dispositivos de audio"
IDS_CPLDESCRIPTION "Altera o esquema de som para o seu computador ou define as
configurações para os auto-falantes e dispositivos de gravação."
+ IDS_NO_SOUND "(None)"
END
Modified: trunk/reactos/dll/cpl/mmsys/lang/ru-RU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/lang/ru-RU.r…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/lang/ru-RU.rc (original)
+++ trunk/reactos/dll/cpl/mmsys/lang/ru-RU.rc Sat Sep 15 18:54:01 2007
@@ -6,10 +6,10 @@
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDI_CPLICON, IDI_CPLICON, 8,5,32,32
- LTEXT "",-1,40,10,194,36
+ LTEXT "",IDC_DEVICE_NAME,40,10,194,36
GROUPBOX "Ãðîìêîñòü ìèêøåðà", -1, 7,30,230,100
ICON IDI_CPLICON, IDI_CPLICON, 17,45,32,32
- CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | WS_TABSTOP, 65, 45, 140, 14
+ CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | TBS_ENABLESELRANGE | TBS_BOTTOM | TBS_HORZ | WS_TABSTOP, 65, 45, 140, 14
LTEXT "íèæå",-1,62,66,30,17
LTEXT "âûøå",-1,195,66,30,17
CHECKBOX "Â&ûêëþ÷èòü çâóê", IDC_MUTE_CHECKBOX, 50, 78, 140, 10
@@ -29,16 +29,16 @@
BEGIN
LTEXT "Çâóêîâàÿ ñõåìà çàäàåò çâóêè, ñîïðîâîæäàþùèå ñîáûòèÿ â îïåðàöèîííîé
ñèñòåìå ReactOS è ïðîãðàììàõ. Ìîæíî âûáðàòü îäíó èç ñóùåñòâóþùèõ ñõåì èëè ñîçäàòü
íîâóþ.",-1,8,7,230,40
LTEXT "Çâóêîâàÿ ñ&õåìà:",-1,8,42,150,17
- COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST
+ COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "Ñîõðàíèòü &êàê...", -1, 119,70,65,15
PUSHBUTTON "&Óäàëèòü", -1, 188,70,50,15
LTEXT "×òîáû èçìåíèòü çâóêîâîå ñîïðîâîæäåíèå, ùåëêíèòå íà ñîáûòèè â ñïèñêå è
âûáåðèòå íóæíûé çâóê. Èçìåíåíèÿ ìîæíî ñîõðàíèòü êàê íîâóþ çâóêîâóþ
ñõåìó.",-1,8,90,230,40
LTEXT "Ïðîãðàììíûå &ñîáûòèÿ:",-1,8,118,150,17
CONTROL "", IDC_SCHEME_LIST, "SysListView32", LVS_REPORT |
LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SORTASCENDING | WS_BORDER | WS_TABSTOP, 8, 130,
230, 60, WS_EX_CLIENTEDGE
- LTEXT "&Çâóêè:",-1,8,194,80,17
- COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 46, CBS_DROPDOWNLIST
- PUSHBUTTON "", -1, 168,205,15,15
- PUSHBUTTON "&Îáçîð...", -1, 188,205,50,15
+ LTEXT "&Çâóêè:",IDC_TEXT_SOUND,8,194,80,17, WS_DISABLED
+ COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 146, CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL |
CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_DISABLED
+ PUSHBUTTON "", IDC_PLAY_SOUND, 168,205,15,15, WS_DISABLED
+ PUSHBUTTON "&Îáçîð...", IDC_BROWSE_SOUND, 188,205,50,15, WS_DISABLED
END
IDD_AUDIO DIALOGEX 0, 0, 246, 228
@@ -99,6 +99,7 @@
BEGIN
IDS_CPLNAME "Çâóê è àóäèîóñòðîéñòâà"
IDS_CPLDESCRIPTION "Èçìåíåíèå çâóêîâûõ ñõåì âàøåãî êîìïüþòåðà, íàñòðîéêà êîëîíîê
è çàïèñûâàþùèõ óñòðîéñòâ."
+ IDS_NO_SOUND "(None)"
END
Modified: trunk/reactos/dll/cpl/mmsys/lang/uk-UA.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/lang/uk-UA.r…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/lang/uk-UA.rc (original)
+++ trunk/reactos/dll/cpl/mmsys/lang/uk-UA.rc Sat Sep 15 18:54:01 2007
@@ -14,10 +14,10 @@
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDI_CPLICON, IDI_CPLICON, 8,5,32,32
- LTEXT "",-1,40,10,194,36
+ LTEXT "",IDC_DEVICE_NAME,40,10,194,36
GROUPBOX "Ãó÷í³ñòü ì³êøåðà", -1, 7,30,230,100
ICON IDI_CPLICON, IDI_CPLICON, 17,45,32,32
- CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | WS_TABSTOP, 65, 45, 140, 14
+ CONTROL "",IDC_VOLUME_TRACKBAR, "msctls_trackbar32",
TBS_AUTOTICKS | TBS_ENABLESELRANGE | TBS_BOTTOM | TBS_HORZ | WS_TABSTOP, 65, 45, 140, 14
LTEXT "íèæ÷å",-1,62,66,30,17
LTEXT "âèùå",-1,195,66,30,17
CHECKBOX "&Âèìêíóòè çâóê", IDC_MUTE_CHECKBOX, 50, 78, 140, 10
@@ -37,16 +37,16 @@
BEGIN
LTEXT "Çâóêîâà ñõåìà âèçíà÷ຠçâóêè, ÿê³ ñóïðîâîäæóþòü ïî䳿 â ñèñòåì³ ReactOS ³
ó ïðîãðàìàõ. Ìîæíà âèáðàòè îäíó ç íàÿâíèõ ñõåì àáî ñòâîðèòè íîâó.",-1,8,7,230,40
LTEXT "Çâóêîâà ñ&õåìà:",-1,8,42,150,17
- COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST
+ COMBOBOX IDC_SOUND_SCHEME, 8, 53, 230, 46, CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "Çáåðåãòè &ÿê...", -1, 134,70,50,15
PUSHBUTTON "Â&èäàëèòè", -1, 188,70,50,15
LTEXT "Ùîá çì³íèòè çâóêîâèé ñóïðîâ³ä, êëàöí³òü ïîä³þ ó ñïèñêó òà âèáåð³òü
ïîòð³áíèé çâóê. Çì³íè ìîæíà çáåðåãòè ÿê íîâó çâóêîâó ñõåìó.",-1,8,90,230,40
LTEXT "&Ïðîãðàìí³ ïî䳿:",-1,8,118,150,17
CONTROL "", IDC_SCHEME_LIST, "SysListView32", LVS_REPORT |
LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SORTASCENDING | WS_BORDER | WS_TABSTOP, 8, 130,
230, 60, WS_EX_CLIENTEDGE
- LTEXT "&Çâóêè:",-1,8,194,80,17
- COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 46, CBS_DROPDOWNLIST
- PUSHBUTTON "", -1, 168,205,15,15
- PUSHBUTTON "Î&ãëÿä...", -1, 188,205,50,15
+ LTEXT "&Çâóêè:", IDC_TEXT_SOUND,8,194,80,17, WS_DISABLED
+ COMBOBOX IDC_SOUND_LIST, 8, 205, 155, 146, CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL |
CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_DISABLED
+ PUSHBUTTON "", IDC_PLAY_SOUND, 168,205,15,15, WS_DISABLED
+ PUSHBUTTON "Î&ãëÿä...", IDC_BROWSE_SOUND, 188,205,50,15, WS_DISABLED
END
IDD_AUDIO DIALOGEX 0, 0, 246, 228
@@ -107,6 +107,7 @@
BEGIN
IDS_CPLNAME "Çâóêîâ³ ³ àóä³î ïðèñòðî¿"
IDS_CPLDESCRIPTION "Çì³íà çâóêîâèõ ñõåì âàøîãî êîìï'þòåðà, íàñòðîþâàííÿ
êîëîíîê ³ çàïèñóþ÷èõ ïðèñòðî¿â."
+ IDS_NO_SOUND "(None)"
END
Modified: trunk/reactos/dll/cpl/mmsys/mmsys.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/mmsys.c?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/mmsys.c (original)
+++ trunk/reactos/dll/cpl/mmsys/mmsys.c Sat Sep 15 18:54:01 2007
@@ -43,13 +43,6 @@
HWPD_MAX = HWPD_LARGELIST
} HWPAGE_DISPLAYMODE, *PHWPAGE_DISPLAYMODE;
-typedef struct _IMGINFO
-{
- HBITMAP hBitmap;
- INT cxSource;
- INT cySource;
-} IMGINFO, *PIMGINFO;
-
HWND WINAPI
DeviceCreateHardwarePageEx(HWND hWndParent,
LPGUID lpGuids,
@@ -66,85 +59,6 @@
{
{IDI_CPLICON, IDS_CPLNAME, IDS_CPLDESCRIPTION, MmSysApplet},
};
-
-static VOID
-InitImageInfo(PIMGINFO ImgInfo)
-{
- BITMAP bitmap;
-
- ZeroMemory(ImgInfo, sizeof(*ImgInfo));
-
- ImgInfo->hBitmap = LoadImage(hApplet,
- MAKEINTRESOURCE(IDB_SPEAKIMG),
- IMAGE_BITMAP,
- 0,
- 0,
- LR_DEFAULTCOLOR);
-
- if (ImgInfo->hBitmap != NULL)
- {
- GetObject(ImgInfo->hBitmap, sizeof(BITMAP), &bitmap);
-
- ImgInfo->cxSource = bitmap.bmWidth;
- ImgInfo->cySource = bitmap.bmHeight;
- }
-}
-
-/* Volume property page dialog callback */
-//static INT_PTR CALLBACK
-INT_PTR CALLBACK
-VolumeDlgProc(HWND hwndDlg,
- UINT uMsg,
- WPARAM wParam,
- LPARAM lParam)
-{
- static IMGINFO ImgInfo;
- UNREFERENCED_PARAMETER(lParam);
- UNREFERENCED_PARAMETER(wParam);
-
- switch(uMsg)
- {
- case WM_INITDIALOG:
- {
- InitImageInfo(&ImgInfo);
- break;
- }
- case WM_DRAWITEM:
- {
- LPDRAWITEMSTRUCT lpDrawItem;
- lpDrawItem = (LPDRAWITEMSTRUCT) lParam;
- if(lpDrawItem->CtlID == IDC_SPEAKIMG)
- {
- HDC hdcMem;
- LONG left;
-
- /* position image in centre of dialog */
- left = (lpDrawItem->rcItem.right - ImgInfo.cxSource) / 2;
-
- hdcMem = CreateCompatibleDC(lpDrawItem->hDC);
- if (hdcMem != NULL)
- {
- SelectObject(hdcMem, ImgInfo.hBitmap);
- BitBlt(lpDrawItem->hDC,
- left,
- lpDrawItem->rcItem.top,
- lpDrawItem->rcItem.right - lpDrawItem->rcItem.left,
- lpDrawItem->rcItem.bottom - lpDrawItem->rcItem.top,
- hdcMem,
- 0,
- 0,
- SRCCOPY);
- DeleteDC(hdcMem);
- }
- }
- return TRUE;
- }
- }
-
- return FALSE;
-}
-
-
/* Audio property page dialog callback */
static INT_PTR CALLBACK
Modified: trunk/reactos/dll/cpl/mmsys/mmsys.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/mmsys.h?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/mmsys.h (original)
+++ trunk/reactos/dll/cpl/mmsys/mmsys.h Sat Sep 15 18:54:01 2007
@@ -13,6 +13,10 @@
extern HINSTANCE hApplet;
+
+#define DRVM_MAPPER 0x2000
+#define DRVM_MAPPER_PREFERRED_GET (DRVM_MAPPER+21)
+#define DRVM_MAPPER_PREFERRED_SET (DRVM_MAPPER+22)
/* main.c */
@@ -36,6 +40,14 @@
WPARAM wParam,
LPARAM lParam);
+/* volume.c */
+
+INT_PTR CALLBACK
+VolumeDlgProc(HWND hwndDlg,
+ UINT uMsg,
+ WPARAM wParam,
+ LPARAM lParam);
+
#endif /* __CPL_MMSYS_H */
Modified: trunk/reactos/dll/cpl/mmsys/mmsys.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/mmsys.rbuild…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/mmsys.rbuild (original)
+++ trunk/reactos/dll/cpl/mmsys/mmsys.rbuild Sat Sep 15 18:54:01 2007
@@ -19,5 +19,6 @@
<library>advapi32</library>
<file>mmsys.c</file>
<file>sounds.c</file>
+ <file>volume.c</file>
<file>mmsys.rc</file>
</module>
Modified: trunk/reactos/dll/cpl/mmsys/resource.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/resource.h?r…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/resource.h (original)
+++ trunk/reactos/dll/cpl/mmsys/resource.h Sat Sep 15 18:54:01 2007
@@ -26,7 +26,7 @@
#define IDC_TEXT_SOUND 117
#define IDC_PLAY_SOUND 118
#define IDC_BROWSE_SOUND 119
-
+#define IDC_DEVICE_NAME 120
#define IDB_SPEAKIMG 4624
#define IDC_SPEAKIMG 4625
Propchange: trunk/reactos/dll/cpl/mmsys/sounds.c
------------------------------------------------------------------------------
svn:keywords = author date revision
Added: trunk/reactos/dll/cpl/mmsys/volume.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/volume.c?rev…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/volume.c (added)
+++ trunk/reactos/dll/cpl/mmsys/volume.c Sat Sep 15 18:54:01 2007
@@ -1,0 +1,150 @@
+/* $Id: main.c 12852 2005-01-06 13:58:04Z mf $
+ *
+ * PROJECT: ReactOS Multimedia Control Panel
+ * FILE: lib/cpl/mmsys/mmsys.c
+ * PURPOSE: ReactOS Multimedia Control Panel
+ * PROGRAMMER: Thomas Weidenmueller <w3seek(a)reactos.com>
+ * Johannes Anderwald <janderwald(a)reactos.com>
+ */
+
+#include <windows.h>
+#include <commctrl.h>
+#include <setupapi.h>
+#include <cpl.h>
+#include <tchar.h>
+#include <stdio.h>
+#include "mmsys.h"
+#include "resource.h"
+
+typedef struct _IMGINFO
+{
+ HBITMAP hBitmap;
+ INT cxSource;
+ INT cySource;
+} IMGINFO, *PIMGINFO;
+
+
+static VOID
+InitImageInfo(PIMGINFO ImgInfo)
+{
+ BITMAP bitmap;
+
+ ZeroMemory(ImgInfo, sizeof(*ImgInfo));
+
+ ImgInfo->hBitmap = LoadImage(hApplet,
+ MAKEINTRESOURCE(IDB_SPEAKIMG),
+ IMAGE_BITMAP,
+ 0,
+ 0,
+ LR_DEFAULTCOLOR);
+
+ if (ImgInfo->hBitmap != NULL)
+ {
+ GetObject(ImgInfo->hBitmap, sizeof(BITMAP), &bitmap);
+
+ ImgInfo->cxSource = bitmap.bmWidth;
+ ImgInfo->cySource = bitmap.bmHeight;
+ }
+}
+
+void
+InitVolumeControls(HWND hwndDlg)
+{
+ UINT NumWavOut;
+ WAVEOUTCAPS woc;
+ MMRESULT errcode;
+ DWORD dwDeviceID;
+ DWORD dwStatus;
+
+ NumWavOut = waveOutGetNumDevs();
+ if (!NumWavOut)
+ {
+ //FIXME
+ // deactivate all controls
+ return;
+ }
+
+ errcode = waveOutMessage((HWAVEOUT)WAVE_MAPPER, DRVM_MAPPER_PREFERRED_GET,
(DWORD_PTR)&dwDeviceID, (DWORD_PTR)&dwStatus);
+ if (errcode != MMSYSERR_NOERROR)
+ {
+ MessageBox(hwndDlg, _T("Failed to enumerate default device"), NULL,
MB_OK);
+ return;
+ }
+
+ if (waveOutGetDevCaps(dwDeviceID, &woc, sizeof(WAVEOUTCAPS)) !=
MMSYSERR_NOERROR)
+ {
+ MessageBox(hwndDlg, _T("waveOutGetDevCaps failed"), NULL, MB_OK);
+ return;
+ }
+
+ SendDlgItemMessage(hwndDlg, IDC_DEVICE_NAME, WM_SETTEXT, (WPARAM)0,
(LPARAM)woc.szPname);
+
+ if (!(woc.dwSupport & WAVECAPS_VOLUME))
+ {
+ /// the device does not support volume changes
+ /// disable volume control
+ EnableWindow(GetDlgItem(hwndDlg, IDC_VOLUME_TRACKBAR), FALSE);
+ }
+ else
+ {
+ SendDlgItemMessage(hwndDlg, IDC_VOLUME_TRACKBAR, TBM_SETRANGE, (WPARAM)TRUE,
(LPARAM)MAKELONG(0, 10));
+ SendDlgItemMessage(hwndDlg, IDC_VOLUME_TRACKBAR, TBM_SETPAGESIZE, (WPARAM)FALSE,
(LPARAM)1);
+ SendDlgItemMessage(hwndDlg, IDC_VOLUME_TRACKBAR, TBM_SETSEL, (WPARAM)FALSE,
(LPARAM)MAKELONG(0, 10));
+ SendDlgItemMessage(hwndDlg, IDC_VOLUME_TRACKBAR, TBM_SETPOS, (WPARAM)TRUE,
(LPARAM)4);
+ }
+}
+
+/* Volume property page dialog callback */
+//static INT_PTR CALLBACK
+INT_PTR CALLBACK
+VolumeDlgProc(HWND hwndDlg,
+ UINT uMsg,
+ WPARAM wParam,
+ LPARAM lParam)
+{
+ static IMGINFO ImgInfo;
+ UNREFERENCED_PARAMETER(lParam);
+ UNREFERENCED_PARAMETER(wParam);
+
+ switch(uMsg)
+ {
+ case WM_INITDIALOG:
+ {
+ InitImageInfo(&ImgInfo);
+ InitVolumeControls(hwndDlg);
+ break;
+ }
+ case WM_DRAWITEM:
+ {
+ LPDRAWITEMSTRUCT lpDrawItem;
+ lpDrawItem = (LPDRAWITEMSTRUCT) lParam;
+ if(lpDrawItem->CtlID == IDC_SPEAKIMG)
+ {
+ HDC hdcMem;
+ LONG left;
+
+ /* position image in centre of dialog */
+ left = (lpDrawItem->rcItem.right - ImgInfo.cxSource) / 2;
+
+ hdcMem = CreateCompatibleDC(lpDrawItem->hDC);
+ if (hdcMem != NULL)
+ {
+ SelectObject(hdcMem, ImgInfo.hBitmap);
+ BitBlt(lpDrawItem->hDC,
+ left,
+ lpDrawItem->rcItem.top,
+ lpDrawItem->rcItem.right - lpDrawItem->rcItem.left,
+ lpDrawItem->rcItem.bottom - lpDrawItem->rcItem.top,
+ hdcMem,
+ 0,
+ 0,
+ SRCCOPY);
+ DeleteDC(hdcMem);
+ }
+ }
+ return TRUE;
+ }
+ }
+
+ return FALSE;
+}
Propchange: trunk/reactos/dll/cpl/mmsys/volume.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/reactos/dll/cpl/mmsys/volume.c
------------------------------------------------------------------------------
svn:keywords = author date revision