From: Rémi Bernon rbernon@codeweavers.com
--- dlls/desk.cpl/desk.rc | 1 + dlls/desk.cpl/main.c | 4 ++++ dlls/desk.cpl/resource.h | 1 + 3 files changed, 6 insertions(+)
diff --git a/dlls/desk.cpl/desk.rc b/dlls/desk.cpl/desk.rc index 5c76e9c2fcc..e4686a71efe 100644 --- a/dlls/desk.cpl/desk.rc +++ b/dlls/desk.cpl/desk.rc @@ -36,6 +36,7 @@ FONT 8, "Ms Shell Dlg" { GROUPBOX "Virtual Desktop", IDC_VIRTUAL_DESKTOP, 10, 10, 300, 120 COMBOBOX IDC_DISPLAY_SETTINGS_LIST, 10, 136, 160, 60, CBS_DROPDOWNLIST | CBS_HASSTRINGS + PUSHBUTTON "&Reset", IDC_DISPLAY_SETTINGS_RESET, 180, 135, 60, 15 }
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL diff --git a/dlls/desk.cpl/main.c b/dlls/desk.cpl/main.c index f3652717023..0bd6fd51854 100644 --- a/dlls/desk.cpl/main.c +++ b/dlls/desk.cpl/main.c @@ -276,6 +276,10 @@ static INT_PTR CALLBACK desktop_dialog_proc( HWND hwnd, UINT msg, WPARAM wparam, case MAKEWPARAM( IDC_DISPLAY_SETTINGS_LIST, CBN_SELCHANGE ): handle_display_settings_change( hwnd ); break; + case IDC_DISPLAY_SETTINGS_RESET: + refresh_device_list( hwnd ); + InvalidateRect( hwnd, NULL, TRUE ); + break; } return TRUE;
diff --git a/dlls/desk.cpl/resource.h b/dlls/desk.cpl/resource.h index d36a1b71c04..2d30fa06a6f 100644 --- a/dlls/desk.cpl/resource.h +++ b/dlls/desk.cpl/resource.h @@ -38,5 +38,6 @@
#define IDC_VIRTUAL_DESKTOP 2000 #define IDC_DISPLAY_SETTINGS_LIST 2001 +#define IDC_DISPLAY_SETTINGS_RESET 2002
#define ICO_MAIN 100