Commit 058765f7 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

explorer: Add a start menu.

parent 5a00584b
...@@ -7,6 +7,7 @@ C_SRCS = \ ...@@ -7,6 +7,7 @@ C_SRCS = \
appbar.c \ appbar.c \
desktop.c \ desktop.c \
explorer.c \ explorer.c \
startmenu.c \
systray.c systray.c
RC_SRCS = explorer.rc RC_SRCS = explorer.rc
...@@ -24,5 +24,7 @@ ...@@ -24,5 +24,7 @@
extern void manage_desktop( WCHAR *arg ); extern void manage_desktop( WCHAR *arg );
extern void initialize_systray( HMODULE graphics_driver, BOOL using_root ); extern void initialize_systray( HMODULE graphics_driver, BOOL using_root );
extern void initialize_appbar(void); extern void initialize_appbar(void);
extern void do_startmenu( HWND owner );
extern LRESULT menu_wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
#endif /* __WINE_EXPLORER_PRIVATE_H */ #endif /* __WINE_EXPLORER_PRIVATE_H */
...@@ -625,6 +625,15 @@ static LRESULT WINAPI tray_wndproc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l ...@@ -625,6 +625,15 @@ static LRESULT WINAPI tray_wndproc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
ShowWindow( hwnd, SW_HIDE ); ShowWindow( hwnd, SW_HIDE );
return 0; return 0;
case WM_COMMAND:
if ((HWND)lparam == start_button && HIWORD(wparam) == BN_CLICKED)
do_startmenu(hwnd);
break;
case WM_INITMENUPOPUP:
case WM_MENUCOMMAND:
return menu_wndproc(hwnd, msg, wparam, lparam);
default: default:
return DefWindowProcW( hwnd, msg, wparam, lparam ); return DefWindowProcW( hwnd, msg, wparam, lparam );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment