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
7507ad2a
Commit
7507ad2a
authored
May 04, 2004
by
Maxime Bellengé
Committed by
Alexandre Julliard
May 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add NM_RCLICK notification support for toolbars.
parent
90bcfdca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
toolbar.c
dlls/comctl32/toolbar.c
+31
-1
No files found.
dlls/comctl32/toolbar.c
View file @
7507ad2a
...
...
@@ -52,7 +52,6 @@
* - Notifications:
* - NM_CHAR
* - NM_KEYDOWN
* - NM_RCLICK
* - NM_RDBLCLICK
* - TBN_DRAGOUT
* - TBN_GETOBJECT
...
...
@@ -5578,6 +5577,34 @@ TOOLBAR_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
}
static
LRESULT
TOOLBAR_RButtonUp
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
NMMOUSE
nmmouse
;
POINT
pt
;
pt
.
x
=
LOWORD
(
lParam
);
pt
.
y
=
HIWORD
(
lParam
);
nmmouse
.
dwHitInfo
=
TOOLBAR_InternalHitTest
(
hwnd
,
&
pt
);
if
(
nmmouse
.
dwHitInfo
<
0
)
{
nmmouse
.
dwItemSpec
=
-
1
;
}
else
{
nmmouse
.
dwItemSpec
=
infoPtr
->
buttons
[
nmmouse
.
dwHitInfo
].
idCommand
;
nmmouse
.
dwItemData
=
infoPtr
->
buttons
[
nmmouse
.
dwHitInfo
].
dwData
;
}
ClientToScreen
(
hwnd
,
&
pt
);
memcpy
(
&
nmmouse
.
pt
,
&
pt
,
sizeof
(
POINT
));
TOOLBAR_SendNotify
((
LPNMHDR
)
&
nmmouse
,
infoPtr
,
NM_RCLICK
);
return
0
;
}
static
LRESULT
TOOLBAR_CaptureChanged
(
HWND
hwnd
)
{
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
...
...
@@ -6589,6 +6616,9 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_LBUTTONUP
:
return
TOOLBAR_LButtonUp
(
hwnd
,
wParam
,
lParam
);
case
WM_RBUTTONUP
:
return
TOOLBAR_RButtonUp
(
hwnd
,
wParam
,
lParam
);
case
WM_MOUSEMOVE
:
return
TOOLBAR_MouseMove
(
hwnd
,
wParam
,
lParam
);
...
...
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