[ros-diffs] [janderwald] 30784: - update resources - partially implement open with dialog (stored are not yet stored or retrieved)

janderwald at svn.reactos.org janderwald at svn.reactos.org
Mon Nov 26 21:15:30 CET 2007


Author: janderwald
Date: Mon Nov 26 23:15:29 2007
New Revision: 30784

URL: http://svn.reactos.org/svn/reactos?rev=30784&view=rev
Log:
- update resources
- partially implement open with dialog (stored are not yet stored or retrieved)

Modified:
    trunk/reactos/dll/win32/shell32/lang/bg-BG.rc
    trunk/reactos/dll/win32/shell32/lang/ca-ES.rc
    trunk/reactos/dll/win32/shell32/lang/cs-CZ.rc
    trunk/reactos/dll/win32/shell32/lang/da-DK.rc
    trunk/reactos/dll/win32/shell32/lang/de-DE.rc
    trunk/reactos/dll/win32/shell32/lang/en-US.rc
    trunk/reactos/dll/win32/shell32/lang/eo-EO.rc
    trunk/reactos/dll/win32/shell32/lang/es-ES.rc
    trunk/reactos/dll/win32/shell32/lang/fi-FI.rc
    trunk/reactos/dll/win32/shell32/lang/fr-FR.rc
    trunk/reactos/dll/win32/shell32/lang/hu-HU.rc
    trunk/reactos/dll/win32/shell32/lang/it-IT.rc
    trunk/reactos/dll/win32/shell32/lang/ja-JP.rc
    trunk/reactos/dll/win32/shell32/lang/ko-KO.rc
    trunk/reactos/dll/win32/shell32/lang/nb-NO.rc
    trunk/reactos/dll/win32/shell32/lang/nl-NL.rc
    trunk/reactos/dll/win32/shell32/lang/pl-PL.rc
    trunk/reactos/dll/win32/shell32/lang/pt-BR.rc
    trunk/reactos/dll/win32/shell32/lang/pt-PT.rc
    trunk/reactos/dll/win32/shell32/lang/ru-RU.rc
    trunk/reactos/dll/win32/shell32/lang/sk-SK.rc
    trunk/reactos/dll/win32/shell32/lang/sl-SI.rc
    trunk/reactos/dll/win32/shell32/lang/sv-SE.rc
    trunk/reactos/dll/win32/shell32/lang/tr-TR.rc
    trunk/reactos/dll/win32/shell32/lang/uk-UA.rc
    trunk/reactos/dll/win32/shell32/lang/wa-WA.rc
    trunk/reactos/dll/win32/shell32/lang/zh-CN.rc
    trunk/reactos/dll/win32/shell32/lang/zh-TW.rc
    trunk/reactos/dll/win32/shell32/she_ocmenu.c
    trunk/reactos/dll/win32/shell32/shresdef.h
    trunk/reactos/dll/win32/shell32/shv_item_cmenu.c

Modified: trunk/reactos/dll/win32/shell32/lang/bg-BG.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/bg-BG.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/bg-BG.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/bg-BG.rc Mon Nov 26 23:15:29 2007
@@ -337,16 +337,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/ca-ES.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/ca-ES.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/ca-ES.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/ca-ES.rc Mon Nov 26 23:15:29 2007
@@ -337,16 +337,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/cs-CZ.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/cs-CZ.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/cs-CZ.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/cs-CZ.rc Mon Nov 26 23:15:29 2007
@@ -338,16 +338,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/da-DK.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/da-DK.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/da-DK.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/da-DK.rc Mon Nov 26 23:15:29 2007
@@ -337,16 +337,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/de-DE.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/de-DE.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/de-DE.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/de-DE.rc Mon Nov 26 23:15:29 2007
@@ -339,16 +339,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Wählen Sie das Programm, das zum Öffnen dieser Datei verwendet werden soll:", -1, 44, 12, 211, 10
-	LTEXT "Datei:    %s", 14001, 44, 25, 188, 10
+	LTEXT "Datei:    ", 14001, 44, 25, 188, 10
 	GROUPBOX "&Programme", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Dateityp &immer mit dem ausgewählten Programm öffnen", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Dateityp &immer mit dem ausgewählten Programm öffnen", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Durchsuchen..", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Abbrechen", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/en-US.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/en-US.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/en-US.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/en-US.rc Mon Nov 26 23:15:29 2007
@@ -337,16 +337,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/eo-EO.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/eo-EO.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/eo-EO.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/eo-EO.rc Mon Nov 26 23:15:29 2007
@@ -323,7 +323,7 @@
 END
 
 BITBUCKET_PROPERTIES_DLG DIALOGEX 0, 0, 240, 190
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Recycle Bin Properties"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
@@ -337,16 +337,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/es-ES.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/es-ES.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/es-ES.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/es-ES.rc Mon Nov 26 23:15:29 2007
@@ -338,16 +338,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/fi-FI.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/fi-FI.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/fi-FI.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/fi-FI.rc Mon Nov 26 23:15:29 2007
@@ -323,7 +323,7 @@
 END
 
 BITBUCKET_PROPERTIES_DLG DIALOGEX 0, 0, 240, 190
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Recycle Bin Properties"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
@@ -337,16 +337,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/fr-FR.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/fr-FR.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/fr-FR.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/fr-FR.rc Mon Nov 26 23:15:29 2007
@@ -341,16 +341,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/hu-HU.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/hu-HU.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/hu-HU.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/hu-HU.rc Mon Nov 26 23:15:29 2007
@@ -340,16 +340,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/it-IT.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/it-IT.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/it-IT.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/it-IT.rc Mon Nov 26 23:15:29 2007
@@ -338,16 +338,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/ja-JP.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/ja-JP.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/ja-JP.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/ja-JP.rc Mon Nov 26 23:15:29 2007
@@ -337,16 +337,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/ko-KO.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/ko-KO.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/ko-KO.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/ko-KO.rc Mon Nov 26 23:15:29 2007
@@ -337,16 +337,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/nb-NO.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/nb-NO.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/nb-NO.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/nb-NO.rc Mon Nov 26 23:15:29 2007
@@ -337,16 +337,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/nl-NL.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/nl-NL.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/nl-NL.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/nl-NL.rc Mon Nov 26 23:15:29 2007
@@ -337,16 +337,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/pl-PL.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/pl-PL.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/pl-PL.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/pl-PL.rc Mon Nov 26 23:15:29 2007
@@ -338,16 +338,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/pt-BR.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/pt-BR.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/pt-BR.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/pt-BR.rc Mon Nov 26 23:15:29 2007
@@ -339,16 +339,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/pt-PT.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/pt-PT.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/pt-PT.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/pt-PT.rc Mon Nov 26 23:15:29 2007
@@ -339,16 +339,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/ru-RU.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/ru-RU.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/ru-RU.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/ru-RU.rc Mon Nov 26 23:15:29 2007
@@ -337,16 +337,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Âûáîð ïðîãðàììû"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Âûáåðèòå ïðîãðàììó äëÿ îòêðûòèÿ ýòîãî ôàéëà.", -1, 44, 12, 211, 10
-	LTEXT "Ôàéë:    %s", 14001, 44, 25, 188, 10
+	LTEXT "Ôàéë:    ", 14001, 44, 25, 188, 10
 	GROUPBOX "Ïðîãðàììû", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Èñïîëüçîâàòü åå äëÿ âñåõ ôàéëîâ òàêîãî òèïà", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Èñïîëüçîâàòü åå äëÿ âñåõ ôàéëîâ òàêîãî òèïà", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Îáçîð...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Îòìåíà", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/sk-SK.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/sk-SK.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/sk-SK.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/sk-SK.rc Mon Nov 26 23:15:29 2007
@@ -337,16 +337,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/sl-SI.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/sl-SI.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/sl-SI.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/sl-SI.rc Mon Nov 26 23:15:29 2007
@@ -337,16 +337,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/sv-SE.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/sv-SE.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/sv-SE.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/sv-SE.rc Mon Nov 26 23:15:29 2007
@@ -337,16 +337,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/tr-TR.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/tr-TR.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/tr-TR.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/tr-TR.rc Mon Nov 26 23:15:29 2007
@@ -337,16 +337,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/uk-UA.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/uk-UA.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/uk-UA.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/uk-UA.rc Mon Nov 26 23:15:29 2007
@@ -338,16 +338,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/wa-WA.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/wa-WA.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/wa-WA.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/wa-WA.rc Mon Nov 26 23:15:29 2007
@@ -337,16 +337,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/zh-CN.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/zh-CN.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/zh-CN.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/zh-CN.rc Mon Nov 26 23:15:29 2007
@@ -338,16 +338,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/lang/zh-TW.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/zh-TW.rc?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/lang/zh-TW.rc (original)
+++ trunk/reactos/dll/win32/shell32/lang/zh-TW.rc Mon Nov 26 23:15:29 2007
@@ -338,16 +338,16 @@
 END
 
 OPEN_WITH_PROGRAMM_DLG DIALOGEX 0, 0, 264, 256
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION
 CAPTION "Open With"
 FONT 8, "MS Shell Dlg", 0, 0, 0x0
 BEGIN
 	ICON IDI_SHELL_OPEN_WITH, -1, 8, 12, 21, 20
 	LTEXT "Choose the program you want to use to open this file:", -1, 44, 12, 211, 10
-	LTEXT "File:    %s", 14001, 44, 25, 188, 10
-	GROUPBOX "Programs", -1, 7, 42, 249, 187
+	LTEXT "File:    ", 14001, 44, 25, 188, 10
+	GROUPBOX "&Programs", -1, 7, 42, 249, 187
 	CONTROL "", 14002, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 16, 57, 230, 130
-	CHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
+	AUTOCHECKBOX "&Always use the selected program to open this kind of file", 14003, 20, 193, 225, 10
 	PUSHBUTTON "&Browse...", 14004, 198, 207, 50, 14
 	PUSHBUTTON "OK", 14005, 150, 236, 50, 14
 	PUSHBUTTON "Cancel", 14006, 206, 236, 50, 14

Modified: trunk/reactos/dll/win32/shell32/she_ocmenu.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/she_ocmenu.c?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/she_ocmenu.c (original)
+++ trunk/reactos/dll/win32/shell32/she_ocmenu.c Mon Nov 26 23:15:29 2007
@@ -32,10 +32,12 @@
 #include "undocshell.h"
 #include "shlobj.h"
 #include "objbase.h"
+#include "commdlg.h"
 
 #include "shell32_main.h"
 #include "shellfolder.h"
 #include "shresdef.h"
+#include "stdio.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL (shell);
 
@@ -45,6 +47,9 @@
 /// [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system]
 /// "NoInternetOpenWith"=dword:00000001
 ///
+
+typedef BOOL (*LPFNOFN) (OPENFILENAMEW *) ;
+
 
 typedef struct
 {	
@@ -57,6 +62,8 @@
     UINT size;
     UINT count;
     WCHAR szName[MAX_PATH];
+    WCHAR szPath[MAX_PATH];
+    INT iSelItem;
 } SHEOWImpl;
 
 static const IShellExtInitVtbl eivt;
@@ -248,7 +255,7 @@
     }
 
 	mii.wID = idCmdFirst;
-    This->wId = idCmdFirst;
+    This->wId = 0;
 
 	mii.fType = MFT_STRING;
 	if (InsertMenuItemW( hmenu, pos, TRUE, &mii))
@@ -258,6 +265,201 @@
     return MAKE_HRESULT(SEVERITY_SUCCESS, 0, items);
 }
 
+static void AddListViewItem(HWND hwndDlg, WCHAR * item, UINT state, UINT index)
+{
+    LV_ITEMW listItem;
+    HWND hList;
+    WCHAR * ptr;
+
+    hList = GetDlgItem(hwndDlg, 14002);
+
+
+    ptr = wcsrchr(item, L'\\') + 1;
+    ZeroMemory(&listItem, sizeof(LV_ITEM));
+    listItem.mask       = LVIF_TEXT | LVIF_PARAM | LVIF_STATE | LVIF_IMAGE;
+    listItem.state      = state;
+    listItem.pszText    = ptr;
+    listItem.iImage     = -1;
+    listItem.iItem      = index;
+    listItem.lParam     = (LPARAM)item;
+
+    (void)ListView_InsertItemW(hList, &listItem);
+}
+
+static void AddListViewItems(HWND hwndDlg, SHEOWImpl * This)
+{
+    HWND hList;
+    RECT clientRect;
+    LV_COLUMN col;
+
+    hList = GetDlgItem(hwndDlg, 14002);
+
+    GetClientRect(hList, &clientRect);
+
+    ZeroMemory(&col, sizeof(LV_COLUMN));
+    col.mask      = LVCF_SUBITEM | LVCF_WIDTH;
+    col.iSubItem  = 0;
+    col.cx        = (clientRect.right - clientRect.left) - GetSystemMetrics(SM_CXVSCROLL);
+    (void)ListView_InsertColumn(hList, 0, &col);
+
+    /* FIXME 
+     * add default items
+     */
+    This->iSelItem = -1;
+}
+static void FreeListViewItems(HWND hwndDlg)
+{
+    HWND hList;
+    int iIndex, iCount;
+    LVITEM lvItem;
+
+    hList = GetDlgItem(hwndDlg, 14002);
+
+    iCount = ListView_GetItemCount(hList);
+    ZeroMemory(&lvItem, sizeof(LVITEM));
+
+    for (iIndex = 0; iIndex < iCount; iIndex++)
+    {
+        lvItem.mask = LVIF_PARAM;
+        lvItem.iItem = iIndex;
+        if (ListView_GetItem(GetDlgItem(hwndDlg, 14002), &lvItem))
+        {
+            free((void*)lvItem.lParam);
+        }
+    }
+}
+
+
+static BOOL CALLBACK OpenWithProgrammDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
+{
+    OPENFILENAMEW ofn;
+    static HMODULE hComdlg = NULL;
+    LPFNOFN ofnProc;
+    WCHAR szBuffer[MAX_PATH + 30] = { 0 };
+    WCHAR szPath[MAX_PATH * 2 +1] = { 0 };
+    int res;
+    LVITEM lvItem;
+    STARTUPINFOW si;
+    PROCESS_INFORMATION pi;
+
+    SHEOWImpl *This = (SHEOWImpl*) GetWindowLong(hwndDlg, DWLP_USER);
+
+    switch(uMsg)
+    {
+    case WM_INITDIALOG:
+        SetWindowLong(hwndDlg, DWLP_USER, (LONG)lParam);
+        This = (SHEOWImpl*)lParam;
+        res = SendDlgItemMessageW(hwndDlg, 14001, WM_GETTEXT, (sizeof(szBuffer) / sizeof(WCHAR)), (LPARAM)szBuffer);
+        if (res < sizeof(szBuffer) / sizeof(WCHAR))
+        {
+            wcsncat(szBuffer, This->szPath, (sizeof(szBuffer) / sizeof(WCHAR)) - res);
+            SendDlgItemMessageW(hwndDlg, 14001, WM_SETTEXT, 0, (LPARAM)szBuffer);
+        }
+        AddListViewItems(hwndDlg, This);
+        return TRUE;
+    case WM_COMMAND:
+        switch(LOWORD(wParam))
+		{
+        case 14004: /* browse */
+            res = LoadStringW(shell32_hInstance, IDS_OPEN_WITH, szBuffer, sizeof(szBuffer) / sizeof(WCHAR));
+            if (res < sizeof(szBuffer))
+            {
+                ofn.lpstrTitle = szBuffer;
+                ofn.nMaxFileTitle = strlenW(szBuffer);
+            }
+            
+            ZeroMemory(&ofn, sizeof(OPENFILENAMEW));
+            ofn.lStructSize  = sizeof(OPENFILENAMEW);
+            ofn.hInstance = shell32_hInstance;
+            ofn.lpstrFilter = L"Executable Files\0*.exe\0\0\0"; //FIXME
+            ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;
+            ofn.nMaxFile = (sizeof(szPath) / sizeof(WCHAR));
+            ofn.lpstrFile = szPath;
+            
+            if (!hComdlg)
+                hComdlg = LoadLibraryExW (L"comdlg32", NULL, 0);
+            if (!hComdlg)
+                return TRUE;
+
+            ofnProc = (LPFNOFN)GetProcAddress (hComdlg, "GetOpenFileNameW");
+            if (!ofnProc)
+                return TRUE;
+
+            if (!ofnProc (&ofn))
+                return TRUE;
+      
+            /* FIXME
+             * check for duplicates 
+             */
+            AddListViewItem(hwndDlg, wcsdup(szPath), LVIS_FOCUSED | LVIS_SELECTED, 0);
+            This->iSelItem = 0;
+            return TRUE;
+        case 14005: /* ok */
+            ZeroMemory(&lvItem, sizeof(LVITEM));
+            lvItem.mask = LVIF_PARAM;
+            lvItem.iItem = This->iSelItem;
+
+            if (!ListView_GetItem(GetDlgItem(hwndDlg, 14002), &lvItem))
+            {
+                ERR("Failed to get item index %d\n", This->iSelItem);
+                DestroyWindow(hwndDlg);
+                return FALSE;
+            }
+                        
+            if (SendDlgItemMessage(hwndDlg, 14003, BM_GETCHECK, 0, 0) == BST_CHECKED)
+            {
+                /* FIXME
+                 * give selected program default invokation rights
+                 */
+            }
+            ZeroMemory(&si, sizeof(STARTUPINFOW));
+            si.cb = sizeof(STARTUPINFOW);
+            wcscpy(szPath, (WCHAR*)lvItem.lParam);
+            wcscat(szPath, L" ");
+            wcscat(szPath, This->szPath);
+
+            //TRACE("exe: %s path %s\n", debugstr_w((WCHAR*)lvItem.lParam), debugstr_w(This->szPath)); 
+            if (CreateProcessW(NULL, szPath, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi))
+            {
+                CloseHandle(pi.hThread);
+                CloseHandle(pi.hProcess);
+            }
+            else
+            {
+                ERR("failed to execute with err %x\n", GetLastError());
+                return FALSE;
+            }
+            FreeListViewItems(hwndDlg);
+            DestroyWindow(hwndDlg);
+            return TRUE;
+        case 14006: /* cancel */
+            DestroyWindow(hwndDlg);
+            return FALSE;
+        }
+    case WM_NOTIFY:
+        {
+            LPNMHDR lpnm = (LPNMHDR)lParam;
+
+            switch(lpnm->code)
+            {
+                case LVN_ITEMCHANGED:
+                {
+                    LPNMLISTVIEW nm = (LPNMLISTVIEW)lParam;
+
+                    if ((nm->uNewState & LVIS_SELECTED) == 0)
+                        return FALSE;
+
+                    This->iSelItem = nm->iItem;        
+                }
+            }
+            break;
+        }
+    default:
+        break;
+    }
+    return FALSE;
+}
+
 static HRESULT WINAPI
 SHEOWCm_fnInvokeCommand( IContextMenu2* iface, LPCMINVOKECOMMANDINFO lpici )
 {
@@ -266,6 +468,36 @@
 
     if (This->wId > LOWORD(lpici->lpVerb) || This->count + This->wId < LOWORD(lpici->lpVerb))
        return E_FAIL;
+
+    if (This->NoOpen)
+    {
+        /* FIXME
+         * show warning open dialog 
+         */
+    }
+    
+    if (This->wId == LOWORD(lpici->lpVerb))
+    {
+        MSG msg;
+        BOOL bRet;
+        HWND hwnd = CreateDialogParam(shell32_hInstance, MAKEINTRESOURCE(OPEN_WITH_PROGRAMM_DLG), lpici->hwnd, OpenWithProgrammDlg, (LPARAM)This);
+        ShowWindow(hwnd, SW_SHOW);
+
+        while ((bRet = GetMessage(&msg, NULL, 0, 0)) != 0) 
+        { 
+            if (bRet == -1)
+            {
+                // Handle the error and possibly exit
+            }
+            else if (!IsWindow(hwnd) || !IsDialogMessage(hwnd, &msg)) 
+            { 
+                TranslateMessage(&msg); 
+                DispatchMessage(&msg); 
+            } 
+        } 
+        return S_OK;
+    }
+
 
     if (This->wId == LOWORD(lpici->lpVerb))
     {
@@ -584,9 +816,9 @@
     LPCITEMIDLIST pidl_folder;
     LPCITEMIDLIST pidl_child; 
     LPCITEMIDLIST pidl; 
-    WCHAR szPath[MAX_PATH];
     DWORD dwPath;
     LPWSTR szPtr;
+    WCHAR szPath[100];
     static const WCHAR szShortCut[] = { '.','l','n','k', 0 };
 
     fmt.cfFormat = RegisterClipboardFormatA(CFSTR_SHELLIDLIST);
@@ -622,21 +854,21 @@
     if (_ILIsFolder(pidl_child))
     {
         TRACE("pidl is a folder\n");
-        SHFree(pidl);
+        SHFree((void*)pidl);
         return E_FAIL;
     }
 
-    if (!SHGetPathFromIDListW(pidl, szPath))
-    {
-        SHFree(pidl);
+    if (!SHGetPathFromIDListW(pidl, This->szPath))
+    {
+        SHFree((void*)pidl);
         ERR("SHGetPathFromIDListW failed\n");
         return E_FAIL;
     }
     
-    SHFree(pidl);    
-    TRACE("szPath %s\n", debugstr_w(szPath));
-
-    szPtr = wcschr(szPath, '.');
+    SHFree((void*)pidl);    
+    TRACE("szPath %s\n", debugstr_w(This->szPath));
+
+    szPtr = wcschr(This->szPath, '.');
     if (szPtr)
     {
         if (!_wcsicmp(szPtr, szShortCut))

Modified: trunk/reactos/dll/win32/shell32/shresdef.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shresdef.h?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/shresdef.h (original)
+++ trunk/reactos/dll/win32/shell32/shresdef.h Mon Nov 26 23:15:29 2007
@@ -126,6 +126,7 @@
 #define IDD_TITLE                   0x3742
 #define IDD_TREEVIEW                0x3741
 #define SHELL_EXTENDED_SHORTCUT_DLG 0x4000
+#define OPEN_WITH_PROGRAMM_DLG      0x4001
 
 /* ID's of the ShellAbout controls */
 // Part 1 - ID's identical to Windows Server 2003 SP1's shell32.dll

Modified: trunk/reactos/dll/win32/shell32/shv_item_cmenu.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shv_item_cmenu.c?rev=30784&r1=30783&r2=30784&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/shv_item_cmenu.c (original)
+++ trunk/reactos/dll/win32/shell32/shv_item_cmenu.c Mon Nov 26 23:15:29 2007
@@ -1262,62 +1262,3 @@
    RegCloseKey(hKey);
    return index;
 }
-
-/*************************************************************************
- * SHCreateDefaultContextMenu			[SHELL32.325] Vista API
- *
- */
-
-HRESULT WINAPI SHCreateDefaultContextMenu(
-	const DEFCONTEXTMENU *pdcm,
-	REFIID riid,
-	void **ppv)
-{
-   HRESULT hr;
-   IContextMenu2 * pcm;
-
-   if (pdcm->cidl > 0)
-      pcm = ISvItemCm_Constructor( pdcm->psf, pdcm->pidlFolder, pdcm->apidl, pdcm->cidl );
-   else
-      pcm = ISvBgCm_Constructor( pdcm->psf, TRUE );
-
-   hr = S_OK;
-   *ppv = pcm;
-
-   return hr;
-}
-
-/*************************************************************************
- * CDefFolderMenu_Create2			[SHELL32.701]
- *
- */
-
-INT 
-WINAPI
-CDefFolderMenu_Create2(
-	LPCITEMIDLIST pidlFolder,
-	HWND hwnd,
-	UINT cidl,
-	LPCITEMIDLIST *apidl,
-	IShellFolder *psf,
-	LPFNDFMCALLBACK lpfn,
-	UINT nKeys,
-	HKEY *ahkeyClsKeys,
-	IContextMenu **ppcm)
-{
-   DEFCONTEXTMENU pdcm;
-   HRESULT hr;
-
-   pdcm.hwnd = hwnd;
-   pdcm.pcmcb = NULL; //FIXME
-   pdcm.pidlFolder = pidlFolder;
-   pdcm.psf = psf;
-   pdcm.cidl = cidl;
-   pdcm.apidl = apidl;
-   pdcm.punkAssociationInfo = NULL;
-   pdcm.cKeys = nKeys;
-   pdcm.aKeys = ahkeyClsKeys;
-
-   hr = SHCreateDefaultContextMenu(&pdcm, &IID_IContextMenu, (void**)ppcm);
-   return hr;
-}




More information about the Ros-diffs mailing list