Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
9c0260f2
Commit
9c0260f2
authored
14 years ago
by
David Hedberg
Committed by
Alexandre Julliard
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
shell32: Implement IExplorerBrowser::SetOptions and IExplorerBrowser::GetOptions.
parent
6cb76583
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/shell32/ebrowser.c
+16
-4
16 additions, 4 deletions
dlls/shell32/ebrowser.c
dlls/shell32/tests/ebrowser.c
+26
-0
26 additions, 0 deletions
dlls/shell32/tests/ebrowser.c
with
42 additions
and
4 deletions
dlls/shell32/ebrowser.c
+
16
−
4
View file @
9c0260f2
...
...
@@ -42,6 +42,8 @@ typedef struct _ExplorerBrowserImpl {
BOOL
destroyed
;
HWND
hwnd_main
;
EXPLORER_BROWSER_OPTIONS
eb_options
;
}
ExplorerBrowserImpl
;
/**************************************************************************
...
...
@@ -258,18 +260,28 @@ static HRESULT WINAPI IExplorerBrowser_fnSetOptions(IExplorerBrowser *iface,
EXPLORER_BROWSER_OPTIONS
dwFlag
)
{
ExplorerBrowserImpl
*
This
=
(
ExplorerBrowserImpl
*
)
iface
;
FIXME
(
"stub, %p (0x%x)
\n
"
,
This
,
dwFlag
);
static
const
EXPLORER_BROWSER_OPTIONS
unsupported_options
=
EBO_SHOWFRAMES
|
EBO_ALWAYSNAVIGATE
|
EBO_NOWRAPPERWINDOW
|
EBO_HTMLSHAREPOINTVIEW
;
return
E_NOTIMPL
;
TRACE
(
"%p (0x%x)
\n
"
,
This
,
dwFlag
);
if
(
dwFlag
&
unsupported_options
)
FIXME
(
"Flags 0x%08x contains unsupported options.
\n
"
,
dwFlag
);
This
->
eb_options
=
dwFlag
;
return
S_OK
;
}
static
HRESULT
WINAPI
IExplorerBrowser_fnGetOptions
(
IExplorerBrowser
*
iface
,
EXPLORER_BROWSER_OPTIONS
*
pdwFlag
)
{
ExplorerBrowserImpl
*
This
=
(
ExplorerBrowserImpl
*
)
iface
;
FIXME
(
"stub,
%p (%p)
\n
"
,
This
,
pdwFlag
);
TRACE
(
"
%p (%p)
\n
"
,
This
,
pdwFlag
);
return
E_NOTIMPL
;
*
pdwFlag
=
This
->
eb_options
;
return
S_OK
;
}
static
HRESULT
WINAPI
IExplorerBrowser_fnBrowseToIDList
(
IExplorerBrowser
*
iface
,
...
...
This diff is collapsed.
Click to expand it.
dlls/shell32/tests/ebrowser.c
+
26
−
0
View file @
9c0260f2
...
...
@@ -277,6 +277,7 @@ static void test_basics(void)
IExplorerBrowser
*
peb
;
IShellBrowser
*
psb
;
ULONG
lres
;
DWORD
flags
;
HDWP
hdwp
;
RECT
rc
;
HRESULT
hr
;
...
...
@@ -331,6 +332,31 @@ static void test_basics(void)
IShellBrowser_Release
(
psb
);
}
IExplorerBrowser_Destroy
(
peb
);
IExplorerBrowser_Release
(
peb
);
/* GetOptions/SetOptions*/
ebrowser_instantiate
(
&
peb
);
if
(
0
)
{
/* Crashes on Windows 7 */
IExplorerBrowser_GetOptions
(
peb
,
NULL
);
}
hr
=
IExplorerBrowser_GetOptions
(
peb
,
&
flags
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
ok
(
flags
==
0
,
"got (0x%08x)
\n
"
,
flags
);
/* Settings preserved through Initialize. */
hr
=
IExplorerBrowser_SetOptions
(
peb
,
0xDEADBEEF
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
ebrowser_initialize
(
peb
);
hr
=
IExplorerBrowser_GetOptions
(
peb
,
&
flags
);
ok
(
flags
==
0xDEADBEEF
,
"got (0x%08x)
\n
"
,
flags
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
IExplorerBrowser_Destroy
(
peb
);
lres
=
IExplorerBrowser_Release
(
peb
);
ok
(
lres
==
0
,
"Got %d
\n
"
,
lres
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment