Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
f4568fc6
Commit
f4568fc6
authored
May 31, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Add a generic handler for desktop notifications.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
596c16cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
desktop.c
programs/explorer/desktop.c
+1
-1
explorer_private.h
programs/explorer/explorer_private.h
+1
-1
systray.c
programs/explorer/systray.c
+12
-1
No files found.
programs/explorer/desktop.c
View file @
f4568fc6
...
...
@@ -636,7 +636,7 @@ static LRESULT WINAPI desktop_wnd_proc( HWND hwnd, UINT message, WPARAM wp, LPAR
return
0
;
case
WM_PARENTNOTIFY
:
if
(
LOWORD
(
wp
)
==
WM_DESTROY
)
cleanup_systray_window
(
(
HWND
)
l
p
);
handle_parent_notify
(
(
HWND
)
lp
,
w
p
);
return
0
;
case
WM_LBUTTONDBLCLK
:
...
...
programs/explorer/explorer_private.h
View file @
f4568fc6
...
...
@@ -24,7 +24,7 @@
extern
void
manage_desktop
(
WCHAR
*
arg
)
DECLSPEC_HIDDEN
;
extern
void
initialize_systray
(
HMODULE
graphics_driver
,
BOOL
using_root
,
BOOL
enable_shell
)
DECLSPEC_HIDDEN
;
extern
void
initialize_appbar
(
void
)
DECLSPEC_HIDDEN
;
extern
void
cleanup_systray_window
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
handle_parent_notify
(
HWND
hwnd
,
WPARAM
wp
)
DECLSPEC_HIDDEN
;
extern
void
do_startmenu
(
HWND
owner
)
DECLSPEC_HIDDEN
;
extern
LRESULT
menu_wndproc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
DECLSPEC_HIDDEN
;
...
...
programs/explorer/systray.c
View file @
f4568fc6
...
...
@@ -447,7 +447,7 @@ static BOOL delete_icon(struct icon *icon)
}
/* cleanup icons belonging to a window that has been destroyed */
void
cleanup_systray_window
(
HWND
hwnd
)
static
void
cleanup_systray_window
(
HWND
hwnd
)
{
struct
icon
*
icon
,
*
next
;
...
...
@@ -680,6 +680,17 @@ static LRESULT WINAPI tray_wndproc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
return
0
;
}
/* notifcation posted to the desktop window */
void
handle_parent_notify
(
HWND
hwnd
,
WPARAM
wp
)
{
switch
(
LOWORD
(
wp
))
{
case
WM_DESTROY
:
cleanup_systray_window
(
hwnd
);
break
;
}
}
/* this function creates the listener window */
void
initialize_systray
(
HMODULE
graphics_driver
,
BOOL
using_root
,
BOOL
arg_enable_shell
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment