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
61fc3f90
Commit
61fc3f90
authored
Mar 22, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Implement some IShellFolderView methods over IFolderView.
parent
fa3dd31a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
17 deletions
+19
-17
shlview.c
dlls/shell32/shlview.c
+15
-17
shlview.c
dlls/shell32/tests/shlview.c
+4
-0
No files found.
dlls/shell32/shlview.c
View file @
61fc3f90
...
...
@@ -1980,8 +1980,7 @@ static HRESULT WINAPI IShellView_fnSelectItem(
UINT
flags
)
{
IShellViewImpl
*
This
=
(
IShellViewImpl
*
)
iface
;
IFolderView
*
view
;
HRESULT
hr
;
IFolderView
*
view
=
(
IFolderView
*
)
&
This
->
lpvtblFolderView
;
int
i
;
TRACE
(
"(%p)->(pidl=%p, 0x%08x)
\n
"
,
This
,
pidl
,
flags
);
...
...
@@ -1989,14 +1988,7 @@ static HRESULT WINAPI IShellView_fnSelectItem(
i
=
LV_FindItemByPidl
(
This
,
pidl
);
if
(
i
==
-
1
)
return
S_OK
;
hr
=
IShellView2_QueryInterface
(
iface
,
&
IID_IFolderView
,
(
void
**
)
&
view
);
if
(
hr
==
S_OK
)
{
hr
=
IFolderView_SelectItem
(
view
,
i
,
flags
);
IFolderView_Release
(
view
);
}
return
hr
;
return
IFolderView_SelectItem
(
view
,
i
,
flags
);
}
static
HRESULT
WINAPI
IShellView_fnGetItemObject
(
IShellView2
*
iface
,
UINT
uItem
,
REFIID
riid
,
LPVOID
*
ppvOut
)
...
...
@@ -2964,8 +2956,10 @@ static HRESULT WINAPI IShellFolderView_fnAutoArrange(IShellFolderView *iface)
static
HRESULT
WINAPI
IShellFolderView_fnGetAutoArrange
(
IShellFolderView
*
iface
)
{
IShellViewImpl
*
This
=
impl_from_IShellFolderView
(
iface
);
FIXME
(
"(%p) stub
\n
"
,
This
);
return
E_NOTIMPL
;
IFolderView
*
view
=
(
IFolderView
*
)
&
This
->
lpvtblFolderView
;
TRACE
(
"(%p)
\n
"
,
This
);
return
IFolderView_GetAutoArrange
(
view
);
}
static
HRESULT
WINAPI
IShellFolderView_fnAddObject
(
...
...
@@ -2984,8 +2978,10 @@ static HRESULT WINAPI IShellFolderView_fnGetObject(
UINT
item
)
{
IShellViewImpl
*
This
=
impl_from_IShellFolderView
(
iface
);
FIXME
(
"(%p)->(%p %d) stub
\n
"
,
This
,
pidl
,
item
);
return
E_NOTIMPL
;
IFolderView
*
view
=
(
IFolderView
*
)
&
This
->
lpvtblFolderView
;
TRACE
(
"(%p)->(%p %d)
\n
"
,
This
,
pidl
,
item
);
return
IFolderView_Item
(
view
,
item
,
pidl
);
}
static
HRESULT
WINAPI
IShellFolderView_fnRemoveObject
(
...
...
@@ -3003,8 +2999,10 @@ static HRESULT WINAPI IShellFolderView_fnGetObjectCount(
UINT
*
count
)
{
IShellViewImpl
*
This
=
impl_from_IShellFolderView
(
iface
);
FIXME
(
"(%p)->(%p) stub
\n
"
,
This
,
count
);
return
E_NOTIMPL
;
IFolderView
*
view
=
(
IFolderView
*
)
&
This
->
lpvtblFolderView
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
count
);
return
IFolderView_ItemCount
(
view
,
SVGIO_ALLVIEW
,
(
INT
*
)
count
);
}
static
HRESULT
WINAPI
IShellFolderView_fnSetObjectCount
(
...
...
@@ -3111,7 +3109,7 @@ static HRESULT WINAPI IShellFolderView_fnMoveIcons(
IDataObject
*
obj
)
{
IShellViewImpl
*
This
=
impl_from_IShellFolderView
(
iface
);
FIXME
(
"(%p)->(%p) stub
\n
"
,
This
,
obj
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
obj
);
return
E_NOTIMPL
;
}
...
...
dlls/shell32/tests/shlview.c
View file @
61fc3f90
...
...
@@ -564,6 +564,10 @@ static void test_IShellFolderView(void)
return
;
}
/* ::MoveIcons */
hr
=
IShellFolderView_MoveIcons
(
folderview
,
NULL
);
ok
(
hr
==
E_NOTIMPL
,
"got (0x%08x)
\n
"
,
hr
);
IShellFolderView_Release
(
folderview
);
IShellView_Release
(
view
);
...
...
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