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
f9a95150
Commit
f9a95150
authored
Mar 29, 2011
by
David Hedberg
Committed by
Alexandre Julliard
Mar 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Implement SetOptions/GetOptions for the Item Dialog.
parent
fb391afa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
10 deletions
+17
-10
itemdlg.c
dlls/comdlg32/itemdlg.c
+17
-4
itemdlg.c
dlls/comdlg32/tests/itemdlg.c
+0
-6
No files found.
dlls/comdlg32/itemdlg.c
View file @
f9a95150
...
...
@@ -49,6 +49,8 @@ typedef struct FileDialogImpl {
}
u
;
enum
ITEMDLG_TYPE
dlg_type
;
LONG
ref
;
FILEOPENDIALOGOPTIONS
options
;
}
FileDialogImpl
;
/**************************************************************************
...
...
@@ -160,15 +162,24 @@ static HRESULT WINAPI IFileDialog2_fnUnadvise(IFileDialog2 *iface, DWORD dwCooki
static
HRESULT
WINAPI
IFileDialog2_fnSetOptions
(
IFileDialog2
*
iface
,
FILEOPENDIALOGOPTIONS
fos
)
{
FileDialogImpl
*
This
=
impl_from_IFileDialog2
(
iface
);
FIXME
(
"stub - %p (0x%x)
\n
"
,
This
,
fos
);
return
E_NOTIMPL
;
TRACE
(
"%p (0x%x)
\n
"
,
This
,
fos
);
This
->
options
=
fos
;
return
S_OK
;
}
static
HRESULT
WINAPI
IFileDialog2_fnGetOptions
(
IFileDialog2
*
iface
,
FILEOPENDIALOGOPTIONS
*
pfos
)
{
FileDialogImpl
*
This
=
impl_from_IFileDialog2
(
iface
);
FIXME
(
"stub - %p
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"%p (%p)
\n
"
,
This
,
pfos
);
if
(
!
pfos
)
return
E_INVALIDARG
;
*
pfos
=
This
->
options
;
return
S_OK
;
}
static
HRESULT
WINAPI
IFileDialog2_fnSetDefaultFolder
(
IFileDialog2
*
iface
,
IShellItem
*
psi
)
...
...
@@ -822,11 +833,13 @@ static HRESULT FileDialog_constructor(IUnknown *pUnkOuter, REFIID riid, void **p
{
fdimpl
->
dlg_type
=
ITEMDLG_TYPE_OPEN
;
fdimpl
->
u
.
IFileOpenDialog_iface
.
lpVtbl
=
&
vt_IFileOpenDialog
;
fdimpl
->
options
=
FOS_PATHMUSTEXIST
|
FOS_FILEMUSTEXIST
|
FOS_NOCHANGEDIR
;
}
else
{
fdimpl
->
dlg_type
=
ITEMDLG_TYPE_SAVE
;
fdimpl
->
u
.
IFileSaveDialog_iface
.
lpVtbl
=
&
vt_IFileSaveDialog
;
fdimpl
->
options
=
FOS_OVERWRITEPROMPT
|
FOS_NOREADONLYRETURN
|
FOS_PATHMUSTEXIST
|
FOS_NOCHANGEDIR
;
}
hr
=
IUnknown_QueryInterface
((
IUnknown
*
)
fdimpl
,
riid
,
ppv
);
...
...
dlls/comdlg32/tests/itemdlg.c
View file @
f9a95150
...
...
@@ -207,17 +207,12 @@ static void test_basics(void)
}
/* GetOptions */
todo_wine
{
hr
=
IFileOpenDialog_GetOptions
(
pfod
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"got 0x%08x.
\n
"
,
hr
);
hr
=
IFileSaveDialog_GetOptions
(
pfsd
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"got 0x%08x.
\n
"
,
hr
);
}
/* Check default options */
todo_wine
{
hr
=
IFileOpenDialog_GetOptions
(
pfod
,
&
fdoptions
);
ok
(
hr
==
S_OK
,
"got 0x%08x.
\n
"
,
hr
);
ok
(
fdoptions
==
(
FOS_PATHMUSTEXIST
|
FOS_FILEMUSTEXIST
|
FOS_NOCHANGEDIR
),
...
...
@@ -226,7 +221,6 @@ static void test_basics(void)
ok
(
hr
==
S_OK
,
"got 0x%08x.
\n
"
,
hr
);
ok
(
fdoptions
==
(
FOS_OVERWRITEPROMPT
|
FOS_NOREADONLYRETURN
|
FOS_PATHMUSTEXIST
|
FOS_NOCHANGEDIR
),
"Unexpected default options: 0x%08x
\n
"
,
fdoptions
);
}
/* GetResult */
todo_wine
...
...
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