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
59965f9c
Commit
59965f9c
authored
Aug 25, 2010
by
David Hedberg
Committed by
Alexandre Julliard
Aug 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Add ICommDlgBrowser3 stub to the ExplorerBrowser control.
parent
fdccbd91
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
131 additions
and
3 deletions
+131
-3
ebrowser.c
dlls/shell32/ebrowser.c
+128
-0
ebrowser.c
dlls/shell32/tests/ebrowser.c
+3
-3
No files found.
dlls/shell32/ebrowser.c
View file @
59965f9c
...
@@ -51,6 +51,7 @@ typedef struct _travellog_entry {
...
@@ -51,6 +51,7 @@ typedef struct _travellog_entry {
typedef
struct
_ExplorerBrowserImpl
{
typedef
struct
_ExplorerBrowserImpl
{
const
IExplorerBrowserVtbl
*
lpVtbl
;
const
IExplorerBrowserVtbl
*
lpVtbl
;
const
IShellBrowserVtbl
*
lpsbVtbl
;
const
IShellBrowserVtbl
*
lpsbVtbl
;
const
ICommDlgBrowser3Vtbl
*
lpcdb3Vtbl
;
LONG
ref
;
LONG
ref
;
BOOL
destroyed
;
BOOL
destroyed
;
...
@@ -382,6 +383,12 @@ static HRESULT WINAPI IExplorerBrowser_fnQueryInterface(IExplorerBrowser *iface,
...
@@ -382,6 +383,12 @@ static HRESULT WINAPI IExplorerBrowser_fnQueryInterface(IExplorerBrowser *iface,
{
{
*
ppvObject
=
&
This
->
lpsbVtbl
;
*
ppvObject
=
&
This
->
lpsbVtbl
;
}
}
else
if
(
IsEqualIID
(
riid
,
&
IID_ICommDlgBrowser
)
||
IsEqualIID
(
riid
,
&
IID_ICommDlgBrowser2
)
||
IsEqualIID
(
riid
,
&
IID_ICommDlgBrowser3
))
{
*
ppvObject
=
&
This
->
lpcdb3Vtbl
;
}
if
(
*
ppvObject
)
if
(
*
ppvObject
)
{
{
...
@@ -1039,6 +1046,126 @@ static const IShellBrowserVtbl vt_IShellBrowser = {
...
@@ -1039,6 +1046,126 @@ static const IShellBrowserVtbl vt_IShellBrowser = {
IShellBrowser_fnSetToolbarItems
IShellBrowser_fnSetToolbarItems
};
};
/**************************************************************************
* ICommDlgBrowser3 Implementation
*/
static
inline
ExplorerBrowserImpl
*
impl_from_ICommDlgBrowser3
(
ICommDlgBrowser3
*
iface
)
{
return
(
ExplorerBrowserImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
ExplorerBrowserImpl
,
lpcdb3Vtbl
));
}
static
HRESULT
WINAPI
ICommDlgBrowser3_fnQueryInterface
(
ICommDlgBrowser3
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
ExplorerBrowserImpl
*
This
=
impl_from_ICommDlgBrowser3
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
IUnknown_QueryInterface
((
IUnknown
*
)
This
,
riid
,
ppvObject
);
}
static
ULONG
WINAPI
ICommDlgBrowser3_fnAddRef
(
ICommDlgBrowser3
*
iface
)
{
ExplorerBrowserImpl
*
This
=
impl_from_ICommDlgBrowser3
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
IUnknown_AddRef
((
IUnknown
*
)
This
);
}
static
ULONG
WINAPI
ICommDlgBrowser3_fnRelease
(
ICommDlgBrowser3
*
iface
)
{
ExplorerBrowserImpl
*
This
=
impl_from_ICommDlgBrowser3
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
IUnknown_Release
((
IUnknown
*
)
This
);
}
static
HRESULT
WINAPI
ICommDlgBrowser3_fnOnDefaultCommand
(
ICommDlgBrowser3
*
iface
,
IShellView
*
shv
)
{
ExplorerBrowserImpl
*
This
=
impl_from_ICommDlgBrowser3
(
iface
);
FIXME
(
"stub, %p (%p)
\n
"
,
This
,
shv
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ICommDlgBrowser3_fnOnStateChange
(
ICommDlgBrowser3
*
iface
,
IShellView
*
shv
,
ULONG
uChange
)
{
ExplorerBrowserImpl
*
This
=
impl_from_ICommDlgBrowser3
(
iface
);
FIXME
(
"stub, %p (%p, %d)
\n
"
,
This
,
shv
,
uChange
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ICommDlgBrowser3_fnIncludeObject
(
ICommDlgBrowser3
*
iface
,
IShellView
*
pshv
,
LPCITEMIDLIST
pidl
)
{
ExplorerBrowserImpl
*
This
=
impl_from_ICommDlgBrowser3
(
iface
);
FIXME
(
"stub, %p (%p, %p)
\n
"
,
This
,
pshv
,
pidl
);
return
S_OK
;
}
static
HRESULT
WINAPI
ICommDlgBrowser3_fnNotify
(
ICommDlgBrowser3
*
iface
,
IShellView
*
pshv
,
DWORD
dwNotifyType
)
{
ExplorerBrowserImpl
*
This
=
impl_from_ICommDlgBrowser3
(
iface
);
FIXME
(
"stub, %p (%p, 0x%x)
\n
"
,
This
,
pshv
,
dwNotifyType
);
return
S_OK
;
}
static
HRESULT
WINAPI
ICommDlgBrowser3_fnGetDefaultMenuText
(
ICommDlgBrowser3
*
iface
,
IShellView
*
pshv
,
LPWSTR
pszText
,
int
cchMax
)
{
ExplorerBrowserImpl
*
This
=
impl_from_ICommDlgBrowser3
(
iface
);
FIXME
(
"stub, %p (%p, %s, %d)
\n
"
,
This
,
pshv
,
debugstr_w
(
pszText
),
cchMax
);
return
S_OK
;
}
static
HRESULT
WINAPI
ICommDlgBrowser3_fnGetViewFlags
(
ICommDlgBrowser3
*
iface
,
DWORD
*
pdwFlags
)
{
ExplorerBrowserImpl
*
This
=
impl_from_ICommDlgBrowser3
(
iface
);
FIXME
(
"stub, %p (%p)
\n
"
,
This
,
pdwFlags
);
return
S_OK
;
}
static
HRESULT
WINAPI
ICommDlgBrowser3_fnOnColumnClicked
(
ICommDlgBrowser3
*
iface
,
IShellView
*
pshv
,
int
iColumn
)
{
ExplorerBrowserImpl
*
This
=
impl_from_ICommDlgBrowser3
(
iface
);
FIXME
(
"stub, %p (%p, %d)
\n
"
,
This
,
pshv
,
iColumn
);
return
S_OK
;
}
static
HRESULT
WINAPI
ICommDlgBrowser3_fnGetCurrentFilter
(
ICommDlgBrowser3
*
iface
,
LPWSTR
pszFileSpec
,
int
cchFileSpec
)
{
ExplorerBrowserImpl
*
This
=
impl_from_ICommDlgBrowser3
(
iface
);
FIXME
(
"stub, %p (%s, %d)
\n
"
,
This
,
debugstr_w
(
pszFileSpec
),
cchFileSpec
);
return
S_OK
;
}
static
HRESULT
WINAPI
ICommDlgBrowser3_fnOnPreviewCreated
(
ICommDlgBrowser3
*
iface
,
IShellView
*
pshv
)
{
ExplorerBrowserImpl
*
This
=
impl_from_ICommDlgBrowser3
(
iface
);
FIXME
(
"stub, %p (%p)
\n
"
,
This
,
pshv
);
return
S_OK
;
}
static
const
ICommDlgBrowser3Vtbl
vt_ICommDlgBrowser3
=
{
ICommDlgBrowser3_fnQueryInterface
,
ICommDlgBrowser3_fnAddRef
,
ICommDlgBrowser3_fnRelease
,
ICommDlgBrowser3_fnOnDefaultCommand
,
ICommDlgBrowser3_fnOnStateChange
,
ICommDlgBrowser3_fnIncludeObject
,
ICommDlgBrowser3_fnNotify
,
ICommDlgBrowser3_fnGetDefaultMenuText
,
ICommDlgBrowser3_fnGetViewFlags
,
ICommDlgBrowser3_fnOnColumnClicked
,
ICommDlgBrowser3_fnGetCurrentFilter
,
ICommDlgBrowser3_fnOnPreviewCreated
};
HRESULT
WINAPI
ExplorerBrowser_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
void
**
ppv
)
HRESULT
WINAPI
ExplorerBrowser_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
void
**
ppv
)
{
{
ExplorerBrowserImpl
*
eb
;
ExplorerBrowserImpl
*
eb
;
...
@@ -1055,6 +1182,7 @@ HRESULT WINAPI ExplorerBrowser_Constructor(IUnknown *pUnkOuter, REFIID riid, voi
...
@@ -1055,6 +1182,7 @@ HRESULT WINAPI ExplorerBrowser_Constructor(IUnknown *pUnkOuter, REFIID riid, voi
eb
->
ref
=
1
;
eb
->
ref
=
1
;
eb
->
lpVtbl
=
&
vt_IExplorerBrowser
;
eb
->
lpVtbl
=
&
vt_IExplorerBrowser
;
eb
->
lpsbVtbl
=
&
vt_IShellBrowser
;
eb
->
lpsbVtbl
=
&
vt_IShellBrowser
;
eb
->
lpcdb3Vtbl
=
&
vt_ICommDlgBrowser3
;
list_init
(
&
eb
->
event_clients
);
list_init
(
&
eb
->
event_clients
);
list_init
(
&
eb
->
travellog
);
list_init
(
&
eb
->
travellog
);
...
...
dlls/shell32/tests/ebrowser.c
View file @
59965f9c
...
@@ -167,9 +167,9 @@ static void test_QueryInterface(void)
...
@@ -167,9 +167,9 @@ static void test_QueryInterface(void)
test_qinterface
(
IID_IExplorerBrowser
,
S_OK
);
test_qinterface
(
IID_IExplorerBrowser
,
S_OK
);
test_qinterface
(
IID_IShellBrowser
,
S_OK
);
test_qinterface
(
IID_IShellBrowser
,
S_OK
);
todo_wine
test_qinterface
(
IID_IOleWindow
,
S_OK
);
todo_wine
test_qinterface
(
IID_IOleWindow
,
S_OK
);
t
odo_wine
t
est_qinterface
(
IID_ICommDlgBrowser
,
S_OK
);
test_qinterface
(
IID_ICommDlgBrowser
,
S_OK
);
t
odo_wine
t
est_qinterface
(
IID_ICommDlgBrowser2
,
S_OK
);
test_qinterface
(
IID_ICommDlgBrowser2
,
S_OK
);
t
odo_wine
t
est_qinterface
(
IID_ICommDlgBrowser3
,
S_OK
);
test_qinterface
(
IID_ICommDlgBrowser3
,
S_OK
);
todo_wine
test_qinterface
(
IID_IServiceProvider
,
S_OK
);
todo_wine
test_qinterface
(
IID_IServiceProvider
,
S_OK
);
todo_wine
test_qinterface
(
IID_IObjectWithSite
,
S_OK
);
todo_wine
test_qinterface
(
IID_IObjectWithSite
,
S_OK
);
todo_wine
test_qinterface
(
IID_IConnectionPointContainer
,
S_OK
);
todo_wine
test_qinterface
(
IID_IConnectionPointContainer
,
S_OK
);
...
...
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