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
ca589fc1
Commit
ca589fc1
authored
Feb 24, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmp: Added SetObjectRects implementation.
parent
bd95cb54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
oleobj.c
dlls/wmp/oleobj.c
+10
-2
oleobj.c
dlls/wmp/tests/oleobj.c
+9
-0
No files found.
dlls/wmp/oleobj.c
View file @
ca589fc1
...
...
@@ -596,8 +596,16 @@ static HRESULT WINAPI OleInPlaceObjectWindowless_SetObjectRects(IOleInPlaceObjec
LPCRECT
lprcPosRect
,
LPCRECT
lprcClipRect
)
{
WindowsMediaPlayer
*
This
=
impl_from_IOleInPlaceObjectWindowless
(
iface
);
FIXME
(
"(%p)->(%p %p)
\n
"
,
This
,
lprcPosRect
,
lprcClipRect
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s %s)
\n
"
,
This
,
wine_dbgstr_rect
(
lprcPosRect
),
wine_dbgstr_rect
(
lprcClipRect
));
if
(
This
->
hwnd
)
{
SetWindowPos
(
This
->
hwnd
,
NULL
,
lprcPosRect
->
left
,
lprcPosRect
->
top
,
lprcPosRect
->
right
-
lprcPosRect
->
left
,
lprcPosRect
->
bottom
-
lprcPosRect
->
top
,
SWP_NOZORDER
|
SWP_NOACTIVATE
);
}
return
S_OK
;
}
static
HRESULT
WINAPI
OleInPlaceObjectWindowless_ReactivateAndUndo
(
IOleInPlaceObjectWindowless
*
iface
)
...
...
dlls/wmp/tests/oleobj.c
View file @
ca589fc1
...
...
@@ -926,6 +926,15 @@ static void test_wmp(void)
test_window
(
hwnd
);
pos
.
left
=
1
;
pos
.
top
=
2
;
pos
.
right
=
301
;
pos
.
bottom
=
312
;
hres
=
IOleInPlaceObject_SetObjectRects
(
ipobj
,
&
pos
,
&
pos
);
ok
(
hres
==
S_OK
,
"SetObjectRects failed: %08x
\n
"
,
hres
);
GetClientRect
(
hwnd
,
&
pos
);
test_rect_size
(
&
pos
,
300
,
310
);
hres
=
IOleObject_DoVerb
(
oleobj
,
OLEIVERB_HIDE
,
NULL
,
&
ClientSite
,
0
,
container_hwnd
,
&
pos
);
ok
(
hres
==
S_OK
,
"DoVerb failed: %08x
\n
"
,
hres
);
ok
(
!
IsWindowVisible
(
hwnd
),
"Window is visible
\n
"
);
...
...
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