winefile: Refresh the drives and files upon WM_DEVICECHANGE.

This commit is contained in:
Alexandre Julliard 2006-03-10 21:43:25 +01:00
parent 913df5b143
commit 04dad6218f
1 changed files with 4 additions and 0 deletions

View File

@ -2521,6 +2521,10 @@ static LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM
resize_frame(hwnd, LOWORD(lparam), HIWORD(lparam));
break; /* do not pass message to DefFrameProc */
case WM_DEVICECHANGE:
SendMessage(hwnd, WM_COMMAND, MAKELONG(ID_REFRESH,0), 0);
break;
#ifndef _NO_EXTENSIONS
case WM_GETMINMAXINFO: {
LPMINMAXINFO lpmmi = (LPMINMAXINFO)lparam;