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
f3722809
Commit
f3722809
authored
Mar 05, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Mar 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Add a test for ABM_GETTASKBARPOS.
parent
b24ec72f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
shell32_main.c
dlls/shell32/shell32_main.c
+3
-1
systray.c
dlls/shell32/tests/systray.c
+14
-0
No files found.
dlls/shell32/shell32_main.c
View file @
f3722809
...
...
@@ -882,7 +882,7 @@ UINT_PTR WINAPI SHAppBarMessage(DWORD msg, PAPPBARDATA data)
int
height
=
data
->
rc
.
bottom
-
data
->
rc
.
top
;
RECT
rec
=
data
->
rc
;
TRACE
(
"msg=%d, data={cb=%d, hwnd=%p, callback=%x, edge=%d, rc=%s, lparam=%lx}
\n
"
,
FIXME
(
"msg=%d, data={cb=%d, hwnd=%p, callback=%x, edge=%d, rc=%s, lparam=%lx}: stub
\n
"
,
msg
,
data
->
cbSize
,
data
->
hWnd
,
data
->
uCallbackMessage
,
data
->
uEdge
,
wine_dbgstr_rect
(
&
data
->
rc
),
data
->
lParam
);
...
...
@@ -891,6 +891,8 @@ UINT_PTR WINAPI SHAppBarMessage(DWORD msg, PAPPBARDATA data)
case
ABM_GETSTATE
:
return
ABS_ALWAYSONTOP
|
ABS_AUTOHIDE
;
case
ABM_GETTASKBARPOS
:
/* FIXME: This is wrong. It should return the taskbar co-ords and edge from the monitor
which contains data->hWnd */
GetWindowRect
(
data
->
hWnd
,
&
rec
);
data
->
rc
=
rec
;
return
TRUE
;
...
...
dlls/shell32/tests/systray.c
View file @
f3722809
...
...
@@ -79,6 +79,7 @@ static void test_SHAppBarMessage(void)
{
APPBARDATA
abd
;
HWND
hwnd
,
foregnd
;
UINT_PTR
ret
;
memset
(
&
abd
,
0xcc
,
sizeof
(
abd
));
abd
.
cbSize
=
sizeof
(
abd
);
...
...
@@ -106,6 +107,19 @@ static void test_SHAppBarMessage(void)
}
}
memset
(
&
abd
,
0xcc
,
sizeof
(
abd
));
abd
.
cbSize
=
sizeof
(
abd
);
ret
=
SHAppBarMessage
(
ABM_GETTASKBARPOS
,
&
abd
);
if
(
ret
)
{
ok
(
abd
.
hWnd
==
(
HWND
)
0xcccccccc
,
"hWnd overwritten
\n
"
);
todo_wine
{
ok
(
abd
.
uEdge
>=
ABE_LEFT
&&
abd
.
uEdge
<=
ABE_BOTTOM
,
"uEdge not returned
\n
"
);
ok
(
abd
.
rc
.
left
!=
0xcccccccc
,
"rc not updated
\n
"
);
}
}
return
;
}
...
...
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