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
8248d0ae
Commit
8248d0ae
authored
Sep 29, 2005
by
Jason Edmeades
Committed by
Alexandre Julliard
Sep 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always return MA_ACTIVATE for WM_MOUSEACTIVATE in DefWindowProc.
parent
7d8e377a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
2 deletions
+36
-2
defwnd.c
dlls/user/defwnd.c
+2
-2
win.c
dlls/user/tests/win.c
+34
-0
No files found.
dlls/user/defwnd.c
View file @
8248d0ae
...
@@ -453,8 +453,8 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
...
@@ -453,8 +453,8 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
if
(
ret
)
return
ret
;
if
(
ret
)
return
ret
;
}
}
/* Caption clicks are handled by
the
NC_HandleNCLButtonDown() */
/* Caption clicks are handled by NC_HandleNCLButtonDown() */
return
(
LOWORD
(
lParam
)
>=
HTCLIENT
)
?
MA_ACTIVATE
:
MA_NO
ACTIVATE
;
return
MA_
ACTIVATE
;
case
WM_ACTIVATE
:
case
WM_ACTIVATE
:
/* The default action in Windows is to set the keyboard focus to
/* The default action in Windows is to set the keyboard focus to
...
...
dlls/user/tests/win.c
View file @
8248d0ae
...
@@ -2264,6 +2264,7 @@ static void test_mouse_input(HWND hwnd)
...
@@ -2264,6 +2264,7 @@ static void test_mouse_input(HWND hwnd)
HWND
popup
;
HWND
popup
;
MSG
msg
;
MSG
msg
;
BOOL
ret
;
BOOL
ret
;
LRESULT
res
;
ShowWindow
(
hwnd
,
SW_SHOW
);
ShowWindow
(
hwnd
,
SW_SHOW
);
UpdateWindow
(
hwnd
);
UpdateWindow
(
hwnd
);
...
@@ -2374,6 +2375,39 @@ static void test_mouse_input(HWND hwnd)
...
@@ -2374,6 +2375,39 @@ static void test_mouse_input(HWND hwnd)
ok
(
msg
.
hwnd
==
popup
&&
msg
.
message
==
WM_LBUTTONUP
,
"hwnd %p message %04x
\n
"
,
msg
.
hwnd
,
msg
.
message
);
ok
(
msg
.
hwnd
==
popup
&&
msg
.
message
==
WM_LBUTTONUP
,
"hwnd %p message %04x
\n
"
,
msg
.
hwnd
,
msg
.
message
);
ok
(
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
),
"no message available
\n
"
);
ok
(
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
),
"no message available
\n
"
);
/* Test WM_MOUSEACTIVATE */
#define TEST_MOUSEACTIVATE(A,B) \
res = SendMessageA(hwnd, WM_MOUSEACTIVATE, (WPARAM)hwnd, (LPARAM)MAKELRESULT(A,0)); \
ok(res == B, "WM_MOUSEACTIVATE for %s returned %ld\n", #A, res);
TEST_MOUSEACTIVATE
(
HTERROR
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTTRANSPARENT
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTNOWHERE
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTCLIENT
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTCAPTION
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTSYSMENU
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTSIZE
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTMENU
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTHSCROLL
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTVSCROLL
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTMINBUTTON
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTMAXBUTTON
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTLEFT
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTRIGHT
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTTOP
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTTOPLEFT
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTTOPRIGHT
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTBOTTOM
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTBOTTOMLEFT
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTBOTTOMRIGHT
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTBORDER
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTOBJECT
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTCLOSE
,
MA_ACTIVATE
);
TEST_MOUSEACTIVATE
(
HTHELP
,
MA_ACTIVATE
);
/* Clear any messages left behind by WM_MOUSEACTIVATE tests */
while
(
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessageA
(
&
msg
);
DestroyWindow
(
popup
);
DestroyWindow
(
popup
);
}
}
...
...
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