Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
552555cf
Commit
552555cf
authored
Jun 08, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Show the application system menu on taskbar right clicks.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7c915af4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
systray.c
programs/explorer/systray.c
+13
-0
No files found.
programs/explorer/systray.c
View file @
552555cf
...
...
@@ -116,6 +116,8 @@ static HWND balloon_window;
#define BALLOON_SHOW_MIN_TIMEOUT 10000
#define BALLOON_SHOW_MAX_TIMEOUT 30000
#define WM_POPUPSYSTEMMENU 0x0313
static
void
do_show_systray
(
void
);
/* Retrieves icon record by owner window and ID */
...
...
@@ -689,6 +691,13 @@ static void click_taskbar_button( HWND button )
SetForegroundWindow
(
hwnd
);
}
static
void
show_taskbar_contextmenu
(
HWND
button
,
LPARAM
lparam
)
{
ULONG_PTR
id
=
GetWindowLongPtrW
(
button
,
GWLP_ID
);
if
(
id
)
SendNotifyMessageW
(
(
HWND
)
id
,
WM_POPUPSYSTEMMENU
,
0
,
lparam
);
}
static
void
do_hide_systray
(
void
)
{
SetWindowPos
(
tray_window
,
0
,
...
...
@@ -812,6 +821,10 @@ static LRESULT WINAPI tray_wndproc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
if
(
HIWORD
(
wparam
)
==
BN_CLICKED
)
click_taskbar_button
(
(
HWND
)
lparam
);
break
;
case
WM_CONTEXTMENU
:
show_taskbar_contextmenu
(
(
HWND
)
wparam
,
lparam
);
break
;
case
WM_MOUSEACTIVATE
:
return
MA_NOACTIVATE
;
...
...
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