Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
238afbb6
Commit
238afbb6
authored
Apr 21, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Don't create IE default window in embedding mode.
parent
d5c69bf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
16 deletions
+21
-16
iexplore.c
dlls/shdocvw/iexplore.c
+21
-16
No files found.
dlls/shdocvw/iexplore.c
View file @
238afbb6
...
...
@@ -123,7 +123,6 @@ static void create_frame_hwnd(InternetExplorer *This)
static
IWebBrowser2
*
create_ie_window
(
LPCWSTR
url
)
{
IWebBrowser2
*
wb
=
NULL
;
MSG
msg
;
VARIANT
var_url
;
InternetExplorer_Create
(
NULL
,
&
IID_IWebBrowser2
,
(
void
**
)
&
wb
);
...
...
@@ -140,13 +139,6 @@ static IWebBrowser2 *create_ie_window(LPCWSTR url)
SysFreeString
(
V_BSTR
(
&
var_url
));
/* run the message loop for this thread */
while
(
GetMessageW
(
&
msg
,
0
,
0
,
0
))
{
TranslateMessage
(
&
msg
);
DispatchMessageW
(
&
msg
);
}
return
wb
;
}
...
...
@@ -184,8 +176,8 @@ HRESULT InternetExplorer_Create(IUnknown *pOuter, REFIID riid, void **ppv)
*/
DWORD
WINAPI
IEWinMain
(
LPSTR
szCommandLine
,
int
nShowWindow
)
{
LPWSTR
url
;
DWORD
len
;
IWebBrowser2
*
wb
=
NULL
;
MSG
msg
;
HRESULT
hres
;
FIXME
(
"%s %d
\n
"
,
debugstr_a
(
szCommandLine
),
nShowWindow
);
...
...
@@ -198,15 +190,28 @@ DWORD WINAPI IEWinMain(LPSTR szCommandLine, int nShowWindow)
ExitProcess
(
1
);
}
/* FIXME: parse the command line properly, handle -Embedding */
if
(
strcmp
(
szCommandLine
,
"-Embedding"
))
{
LPWSTR
url
;
DWORD
len
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
szCommandLine
,
-
1
,
NULL
,
0
);
url
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
szCommandLine
,
-
1
,
url
,
len
);
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
szCommandLine
,
-
1
,
NULL
,
0
);
url
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
szCommandLine
,
-
1
,
url
,
len
);
create_ie_window
(
url
);
wb
=
create_ie_window
(
url
);
HeapFree
(
GetProcessHeap
(),
0
,
url
);
}
/* run the message loop for this thread */
while
(
GetMessageW
(
&
msg
,
0
,
0
,
0
))
{
TranslateMessage
(
&
msg
);
DispatchMessageW
(
&
msg
);
}
HeapFree
(
GetProcessHeap
(),
0
,
url
);
if
(
wb
)
IWebBrowser2_Release
(
wb
);
register_class_object
(
FALSE
);
...
...
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