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
8c92ba00
Commit
8c92ba00
authored
Mar 06, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/shellview: Implemented IFolderView::GetFocusedItem.
parent
90b9c2fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
shlview.c
dlls/shell32/shlview.c
+7
-3
shlview.c
dlls/shell32/tests/shlview.c
+13
-0
No files found.
dlls/shell32/shlview.c
View file @
8c92ba00
...
...
@@ -2750,9 +2750,13 @@ static HRESULT WINAPI IFView_GetSelectionMarkedItem(IFolderView *iface, int *ite
static
HRESULT
WINAPI
IFView_GetFocusedItem
(
IFolderView
*
iface
,
int
*
item
)
{
IShellViewImpl
*
This
=
impl_from_IFolderView
(
iface
);
FIXME
(
"(%p)->(%p), stub
\n
"
,
This
,
item
);
return
E_NOTIMPL
;
IShellViewImpl
*
This
=
impl_from_IFolderView
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
item
);
*
item
=
SendMessageW
(
This
->
hWndList
,
LVM_GETNEXTITEM
,
-
1
,
LVNI_FOCUSED
);
return
S_OK
;
}
static
HRESULT
WINAPI
IFView_GetItemPosition
(
IFolderView
*
iface
,
PCUITEMID_CHILD
pidl
,
POINT
*
ppt
)
...
...
dlls/shell32/tests/shlview.c
View file @
8c92ba00
...
...
@@ -303,6 +303,11 @@ static const struct message folderview_getselectionmarked_seq[] = {
{
0
}
};
static
const
struct
message
folderview_getfocused_seq
[]
=
{
{
LVM_GETNEXTITEM
,
sent
|
wparam
|
lparam
,
-
1
,
LVNI_FOCUSED
},
{
0
}
};
static
void
test_IShellView_CreateViewWindow
(
void
)
{
IShellFolder
*
desktop
;
...
...
@@ -379,6 +384,7 @@ if (0)
/* crashes on XP */
hr
=
IFolderView_GetSelectionMarkedItem
(
fv
,
NULL
);
hr
=
IFolderView_GetFocusedItem
(
fv
,
NULL
);
}
browser
=
IShellBrowserImpl_Construct
();
...
...
@@ -435,6 +441,13 @@ if (0)
ok_sequence
(
sequences
,
LISTVIEW_SEQ_INDEX
,
folderview_getselectionmarked_seq
,
"IFolderView::GetSelectionMarkedItem"
,
FALSE
);
/* IFolderView::GetFocusedItem */
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
hr
=
IFolderView_GetFocusedItem
(
fv
,
&
ret
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
ok_sequence
(
sequences
,
LISTVIEW_SEQ_INDEX
,
folderview_getfocused_seq
,
"IFolderView::GetFocusedItem"
,
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