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
5d0873a7
Commit
5d0873a7
authored
Apr 07, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Apr 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Implement IEWinMain using a simple window frame.
parent
11132d2c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
12 deletions
+36
-12
Makefile.in
dlls/shdocvw/Makefile.in
+1
-0
iexplore.c
dlls/shdocvw/iexplore.c
+0
-0
shdocvw.h
dlls/shdocvw/shdocvw.h
+3
-0
shdocvw_main.c
dlls/shdocvw/shdocvw_main.c
+32
-12
No files found.
dlls/shdocvw/Makefile.in
View file @
5d0873a7
...
...
@@ -16,6 +16,7 @@ C_SRCS = \
events.c
\
factory.c
\
frame.c
\
iexplore.c
\
navigate.c
\
oleobject.c
\
persist.c
\
...
...
dlls/shdocvw/iexplore.c
0 → 100644
View file @
5d0873a7
This diff is collapsed.
Click to expand it.
dlls/shdocvw/shdocvw.h
View file @
5d0873a7
...
...
@@ -185,5 +185,8 @@ static inline void SHDOCVW_LockModule(void) { InterlockedIncrement( &SHDOCVW_ref
static
inline
void
SHDOCVW_UnlockModule
(
void
)
{
InterlockedDecrement
(
&
SHDOCVW_refCount
);
}
extern
HINSTANCE
shdocvw_hinstance
;
extern
void
register_iewindow_class
(
void
);
extern
void
unregister_iewindow_class
(
void
);
extern
BOOL
create_ie_window
(
LPCWSTR
url
);
#endif
/* __WINE_SHDOCVW_H */
dlls/shdocvw/shdocvw_main.c
View file @
5d0873a7
...
...
@@ -100,18 +100,20 @@ static BOOL SHDOCVW_GetMozctlPath( LPWSTR szPath, DWORD sz )
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hinst
,
DWORD
fdwReason
,
LPVOID
fImpLoad
)
{
TRACE
(
"%p 0x%lx %p
\n
"
,
hinst
,
fdwReason
,
fImpLoad
);
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
shdocvw_hinstance
=
hinst
;
break
;
case
DLL_PROCESS_DETACH
:
if
(
SHDOCVW_hshell32
)
FreeLibrary
(
SHDOCVW_hshell32
);
if
(
hMozCtl
&&
hMozCtl
!=
(
HMODULE
)
~
0UL
)
FreeLibrary
(
hMozCtl
);
break
;
}
return
TRUE
;
TRACE
(
"%p 0x%lx %p
\n
"
,
hinst
,
fdwReason
,
fImpLoad
);
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
shdocvw_hinstance
=
hinst
;
register_iewindow_class
();
break
;
case
DLL_PROCESS_DETACH
:
if
(
SHDOCVW_hshell32
)
FreeLibrary
(
SHDOCVW_hshell32
);
if
(
hMozCtl
&&
hMozCtl
!=
(
HMODULE
)
~
0UL
)
FreeLibrary
(
hMozCtl
);
unregister_iewindow_class
();
break
;
}
return
TRUE
;
}
/*************************************************************************
...
...
@@ -664,7 +666,25 @@ DWORD WINAPI StopWatchAFORWARD(DWORD dwClass, LPCSTR lpszStr, DWORD dwUnknown,
*/
DWORD
WINAPI
IEWinMain
(
LPSTR
szCommandLine
,
int
nShowWindow
)
{
LPWSTR
url
;
DWORD
len
;
FIXME
(
"%s %d
\n
"
,
debugstr_a
(
szCommandLine
),
nShowWindow
);
CoInitialize
(
NULL
);
/* FIXME: parse the command line properly, handle -Embedding */
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
);
HeapFree
(
GetProcessHeap
(),
0
,
url
);
CoUninitialize
();
ExitProcess
(
0
);
return
0
;
}
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