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
4bd2cc7a
Commit
4bd2cc7a
authored
Mar 31, 2011
by
David Hedberg
Committed by
Alexandre Julliard
Mar 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Add IExplorerBrowserEvents stub to Item Dialog.
parent
3db65935
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
2 deletions
+81
-2
itemdlg.c
dlls/comdlg32/itemdlg.c
+79
-0
itemdlg.c
dlls/comdlg32/tests/itemdlg.c
+2
-2
No files found.
dlls/comdlg32/itemdlg.c
View file @
4bd2cc7a
...
...
@@ -58,6 +58,7 @@ typedef struct FileDialogImpl {
IFileSaveDialog
IFileSaveDialog_iface
;
}
u
;
enum
ITEMDLG_TYPE
dlg_type
;
IExplorerBrowserEvents
IExplorerBrowserEvents_iface
;
LONG
ref
;
FILEOPENDIALOGOPTIONS
options
;
...
...
@@ -382,6 +383,10 @@ static HRESULT WINAPI IFileDialog2_fnQueryInterface(IFileDialog2 *iface,
{
*
ppvObject
=
&
This
->
u
.
IFileSaveDialog_iface
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IExplorerBrowserEvents
))
{
*
ppvObject
=
&
This
->
IExplorerBrowserEvents_iface
;
}
else
FIXME
(
"Unknown interface requested: %s.
\n
"
,
debugstr_guid
(
riid
));
...
...
@@ -1284,6 +1289,79 @@ static const IFileSaveDialogVtbl vt_IFileSaveDialog = {
IFileSaveDialog_fnApplyProperties
};
/**************************************************************************
* IExplorerBrowserEvents implementation
*/
static
inline
FileDialogImpl
*
impl_from_IExplorerBrowserEvents
(
IExplorerBrowserEvents
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
FileDialogImpl
,
IExplorerBrowserEvents_iface
);
}
static
HRESULT
WINAPI
IExplorerBrowserEvents_fnQueryInterface
(
IExplorerBrowserEvents
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
FileDialogImpl
*
This
=
impl_from_IExplorerBrowserEvents
(
iface
);
TRACE
(
"%p (%s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
return
IFileDialog2_QueryInterface
(
&
This
->
IFileDialog2_iface
,
riid
,
ppvObject
);
}
static
ULONG
WINAPI
IExplorerBrowserEvents_fnAddRef
(
IExplorerBrowserEvents
*
iface
)
{
FileDialogImpl
*
This
=
impl_from_IExplorerBrowserEvents
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
IFileDialog2_AddRef
(
&
This
->
IFileDialog2_iface
);
}
static
ULONG
WINAPI
IExplorerBrowserEvents_fnRelease
(
IExplorerBrowserEvents
*
iface
)
{
FileDialogImpl
*
This
=
impl_from_IExplorerBrowserEvents
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
IFileDialog2_Release
(
&
This
->
IFileDialog2_iface
);
}
static
HRESULT
WINAPI
IExplorerBrowserEvents_fnOnNavigationPending
(
IExplorerBrowserEvents
*
iface
,
PCIDLIST_ABSOLUTE
pidlFolder
)
{
FileDialogImpl
*
This
=
impl_from_IExplorerBrowserEvents
(
iface
);
TRACE
(
"%p (%p)
\n
"
,
This
,
pidlFolder
);
return
S_OK
;
}
static
HRESULT
WINAPI
IExplorerBrowserEvents_fnOnViewCreated
(
IExplorerBrowserEvents
*
iface
,
IShellView
*
psv
)
{
FileDialogImpl
*
This
=
impl_from_IExplorerBrowserEvents
(
iface
);
TRACE
(
"%p (%p)
\n
"
,
This
,
psv
);
return
S_OK
;
}
static
HRESULT
WINAPI
IExplorerBrowserEvents_fnOnNavigationComplete
(
IExplorerBrowserEvents
*
iface
,
PCIDLIST_ABSOLUTE
pidlFolder
)
{
FileDialogImpl
*
This
=
impl_from_IExplorerBrowserEvents
(
iface
);
TRACE
(
"%p (%p)
\n
"
,
This
,
pidlFolder
);
return
S_OK
;
}
static
HRESULT
WINAPI
IExplorerBrowserEvents_fnOnNavigationFailed
(
IExplorerBrowserEvents
*
iface
,
PCIDLIST_ABSOLUTE
pidlFolder
)
{
FileDialogImpl
*
This
=
impl_from_IExplorerBrowserEvents
(
iface
);
TRACE
(
"%p (%p)
\n
"
,
This
,
pidlFolder
);
return
S_OK
;
}
static
const
IExplorerBrowserEventsVtbl
vt_IExplorerBrowserEvents
=
{
IExplorerBrowserEvents_fnQueryInterface
,
IExplorerBrowserEvents_fnAddRef
,
IExplorerBrowserEvents_fnRelease
,
IExplorerBrowserEvents_fnOnNavigationPending
,
IExplorerBrowserEvents_fnOnViewCreated
,
IExplorerBrowserEvents_fnOnNavigationComplete
,
IExplorerBrowserEvents_fnOnNavigationFailed
};
static
HRESULT
FileDialog_constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
void
**
ppv
,
enum
ITEMDLG_TYPE
type
)
{
FileDialogImpl
*
fdimpl
;
...
...
@@ -1302,6 +1380,7 @@ static HRESULT FileDialog_constructor(IUnknown *pUnkOuter, REFIID riid, void **p
fdimpl
->
ref
=
1
;
fdimpl
->
IFileDialog2_iface
.
lpVtbl
=
&
vt_IFileDialog2
;
fdimpl
->
IExplorerBrowserEvents_iface
.
lpVtbl
=
&
vt_IExplorerBrowserEvents
;
if
(
type
==
ITEMDLG_TYPE_OPEN
)
{
...
...
dlls/comdlg32/tests/itemdlg.c
View file @
4bd2cc7a
...
...
@@ -212,7 +212,7 @@ static BOOL test_instantiation(void)
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
punk
);
hr
=
IFileOpenDialog_QueryInterface
(
pfod
,
&
IID_IExplorerBrowserEvents
,
(
void
**
)
&
punk
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got 0x%08x.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
punk
);
hr
=
IFileOpenDialog_QueryInterface
(
pfod
,
&
IID_IShellBrowser
,
(
void
**
)
&
punk
);
...
...
@@ -252,7 +252,7 @@ static BOOL test_instantiation(void)
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
punk
);
hr
=
IFileSaveDialog_QueryInterface
(
pfsd
,
&
IID_IExplorerBrowserEvents
,
(
void
**
)
&
punk
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got 0x%08x.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
punk
);
hr
=
IFileSaveDialog_QueryInterface
(
pfsd
,
&
IID_IShellBrowser
,
(
void
**
)
&
punk
);
...
...
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