- update resources

- partially implement open with dialog (stored are not yet stored or retrieved)

svn path=/trunk/; revision=30784
This commit is contained in:
Johannes Anderwald 2007-11-26 20:15:29 +00:00
parent 9646bd9956
commit 4ff1aa5fac
31 changed files with 353 additions and 179 deletions

View file

@ -337,16 +337,16 @@ BEGIN
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

View file

@ -337,16 +337,16 @@ BEGIN
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

View file

@ -338,16 +338,16 @@ BEGIN
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

View file

@ -337,16 +337,16 @@ BEGIN
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

View file

@ -339,16 +339,16 @@ BEGIN
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

View file

@ -337,16 +337,16 @@ BEGIN
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

View file

@ -323,7 +323,7 @@ BEGIN
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 @@ BEGIN
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

View file

@ -338,16 +338,16 @@ BEGIN
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

View file

@ -323,7 +323,7 @@ BEGIN
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 @@ BEGIN
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

View file

@ -341,16 +341,16 @@ BEGIN
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

View file

@ -340,16 +340,16 @@ BEGIN
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

View file

@ -338,16 +338,16 @@ BEGIN
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

View file

@ -337,16 +337,16 @@ BEGIN
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

View file

@ -337,16 +337,16 @@ BEGIN
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

View file

@ -337,16 +337,16 @@ BEGIN
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

View file

@ -337,16 +337,16 @@ BEGIN
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

View file

@ -338,16 +338,16 @@ BEGIN
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

View file

@ -339,16 +339,16 @@ BEGIN
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

View file

@ -339,16 +339,16 @@ BEGIN
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

View file

@ -337,16 +337,16 @@ BEGIN
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

View file

@ -337,16 +337,16 @@ BEGIN
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

View file

@ -337,16 +337,16 @@ BEGIN
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

View file

@ -337,16 +337,16 @@ BEGIN
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

View file

@ -337,16 +337,16 @@ BEGIN
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

View file

@ -338,16 +338,16 @@ BEGIN
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

View file

@ -337,16 +337,16 @@ BEGIN
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

View file

@ -338,16 +338,16 @@ BEGIN
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

View file

@ -338,16 +338,16 @@ BEGIN
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

View file

@ -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);
@ -46,6 +48,9 @@ const GUID CLSID_OpenWith = { 0x09799AFB, 0xAD67, 0x11d1, {0xAB,0xCD,0x00,0xC0,0
/// "NoInternetOpenWith"=dword:00000001
///
typedef BOOL (*LPFNOFN) (OPENFILENAMEW *) ;
typedef struct
{
const IContextMenu2Vtbl *lpVtblContextMenu;
@ -57,6 +62,8 @@ typedef struct
UINT size;
UINT count;
WCHAR szName[MAX_PATH];
WCHAR szPath[MAX_PATH];
INT iSelItem;
} SHEOWImpl;
static const IShellExtInitVtbl eivt;
@ -248,7 +255,7 @@ static HRESULT WINAPI SHEOWCm_fnQueryContextMenu(
}
mii.wID = idCmdFirst;
This->wId = idCmdFirst;
This->wId = 0;
mii.fType = MFT_STRING;
if (InsertMenuItemW( hmenu, pos, TRUE, &mii))
@ -258,6 +265,201 @@ static HRESULT WINAPI SHEOWCm_fnQueryContextMenu(
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 )
{
@ -267,6 +469,36 @@ SHEOWCm_fnInvokeCommand( IContextMenu2* iface, LPCMINVOKECOMMANDINFO lpici )
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))
{
/* show Open As dialog */
@ -584,9 +816,9 @@ SHEOW_LoadOpenWithItems(SHEOWImpl *This, IDataObject *pdtobj)
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 @@ SHEOW_LoadOpenWithItems(SHEOWImpl *This, IDataObject *pdtobj)
if (_ILIsFolder(pidl_child))
{
TRACE("pidl is a folder\n");
SHFree(pidl);
SHFree((void*)pidl);
return E_FAIL;
}
if (!SHGetPathFromIDListW(pidl, szPath))
if (!SHGetPathFromIDListW(pidl, This->szPath))
{
SHFree(pidl);
SHFree((void*)pidl);
ERR("SHGetPathFromIDListW failed\n");
return E_FAIL;
}
SHFree(pidl);
TRACE("szPath %s\n", debugstr_w(szPath));
SHFree((void*)pidl);
TRACE("szPath %s\n", debugstr_w(This->szPath));
szPtr = wcschr(szPath, '.');
szPtr = wcschr(This->szPath, '.');
if (szPtr)
{
if (!_wcsicmp(szPtr, szShortCut))

View file

@ -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

View file

@ -1262,62 +1262,3 @@ SH_EnumerateDynamicContextHandlerForKey(const LPWSTR szFileClass, ItemCmImpl *Th
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;
}