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
78c909fb
Commit
78c909fb
authored
Mar 09, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/shellview: Implement IFolderView::ItemCount for SVGIO_ALLVIEW flag.
parent
b8220e72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
3 deletions
+28
-3
shlview.c
dlls/shell32/shlview.c
+10
-3
shlview.c
dlls/shell32/tests/shlview.c
+18
-0
No files found.
dlls/shell32/shlview.c
View file @
78c909fb
...
...
@@ -2735,9 +2735,16 @@ static HRESULT WINAPI IFView_Item(IFolderView *iface, int index, PITEMID_CHILD *
static
HRESULT
WINAPI
IFView_ItemCount
(
IFolderView
*
iface
,
UINT
flags
,
int
*
items
)
{
IShellViewImpl
*
This
=
impl_from_IFolderView
(
iface
);
FIXME
(
"(%p)->(%u %p), stub
\n
"
,
This
,
flags
,
items
);
return
E_NOTIMPL
;
IShellViewImpl
*
This
=
impl_from_IFolderView
(
iface
);
TRACE
(
"(%p)->(%u %p)
\n
"
,
This
,
flags
,
items
);
if
(
flags
!=
SVGIO_ALLVIEW
)
FIXME
(
"some flags unsupported, %x
\n
"
,
flags
&
~
SVGIO_ALLVIEW
);
*
items
=
SendMessageW
(
This
->
hWndList
,
LVM_GETITEMCOUNT
,
0
,
0
);
return
S_OK
;
}
static
HRESULT
WINAPI
IFView_Items
(
IFolderView
*
iface
,
UINT
flags
,
REFIID
riid
,
void
**
ppv
)
...
...
dlls/shell32/tests/shlview.c
View file @
78c909fb
...
...
@@ -308,6 +308,11 @@ static const struct message folderview_getfocused_seq[] = {
{
0
}
};
static
const
struct
message
folderview_itemcount_seq
[]
=
{
{
LVM_GETITEMCOUNT
,
sent
},
{
0
}
};
static
void
test_IShellView_CreateViewWindow
(
void
)
{
IShellFolder
*
desktop
;
...
...
@@ -469,6 +474,19 @@ if (0)
ok
(
ref1
==
ref2
,
"expected same refcount, got %d
\n
"
,
ref2
);
ok
(
desktop
==
folder
,
"
\n
"
);
/* IFolderView::ItemCount */
if
(
0
)
{
/* crashes on XP */
hr
=
IFolderView_ItemCount
(
fv
,
SVGIO_ALLVIEW
,
NULL
);
}
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
hr
=
IFolderView_ItemCount
(
fv
,
SVGIO_ALLVIEW
,
&
ret
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
ok_sequence
(
sequences
,
LISTVIEW_SEQ_INDEX
,
folderview_itemcount_seq
,
"IFolderView::ItemCount"
,
FALSE
);
IShellBrowser_Release
(
browser
);
IFolderView_Release
(
fv
);
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