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
7d31d39f
Commit
7d31d39f
authored
Jul 03, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tab: Make WM_RBUTTONUP reach default window procedure.
parent
fcd04e59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
3 deletions
+25
-3
tab.c
dlls/comctl32/tab.c
+3
-3
tab.c
dlls/comctl32/tests/tab.c
+22
-0
No files found.
dlls/comctl32/tab.c
View file @
7d31d39f
...
...
@@ -706,11 +706,10 @@ TAB_LButtonUp (const TAB_INFO *infoPtr)
return
0
;
}
static
inline
LRESULT
static
inline
void
TAB_RButtonUp
(
const
TAB_INFO
*
infoPtr
)
{
TAB_SendSimpleNotify
(
infoPtr
,
NM_RCLICK
);
return
0
;
}
/******************************************************************************
...
...
@@ -3430,7 +3429,8 @@ TAB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
wParam
,
lParam
);
case
WM_RBUTTONUP
:
return
TAB_RButtonUp
(
infoPtr
);
TAB_RButtonUp
(
infoPtr
);
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
);
case
WM_MOUSEMOVE
:
return
TAB_MouseMove
(
infoPtr
,
wParam
,
lParam
);
...
...
dlls/comctl32/tests/tab.c
View file @
7d31d39f
...
...
@@ -286,6 +286,11 @@ static const struct message delete_focus_seq[] = {
{
0
}
};
static
const
struct
message
rbuttonup_seq
[]
=
{
{
WM_RBUTTONUP
,
sent
|
wparam
|
lparam
,
0
,
0
},
{
WM_CONTEXTMENU
,
sent
|
defwinproc
},
{
0
}
};
static
HWND
create_tabcontrol
(
DWORD
style
,
DWORD
mask
)
...
...
@@ -1407,6 +1412,22 @@ static void test_TCS_OWNERDRAWFIXED(void)
DestroyWindow
(
hTab
);
}
static
void
test_WM_CONTEXTMENU
(
void
)
{
HWND
hTab
;
hTab
=
createFilledTabControl
(
parent_wnd
,
TCS_FIXEDWIDTH
,
TCIF_TEXT
|
TCIF_IMAGE
,
4
);
ok
(
hTab
!=
NULL
,
"Failed to create tab control
\n
"
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
SendMessageA
(
hTab
,
WM_RBUTTONUP
,
0
,
0
);
ok_sequence
(
sequences
,
TAB_SEQ_INDEX
,
rbuttonup_seq
,
"WM_RBUTTONUP response sequence"
,
FALSE
);
DestroyWindow
(
hTab
);
}
START_TEST
(
tab
)
{
LOGFONTA
logfont
;
...
...
@@ -1443,6 +1464,7 @@ START_TEST(tab)
test_removeimage
();
test_TCM_SETITEMEXTRA
();
test_TCS_OWNERDRAWFIXED
();
test_WM_CONTEXTMENU
();
DestroyWindow
(
parent_wnd
);
}
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