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
e532b1c3
Commit
e532b1c3
authored
Jul 29, 2010
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Jul 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Add a statusbar to IE.
parent
a0af1dc4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletion
+19
-1
Makefile.in
dlls/shdocvw/Makefile.in
+1
-1
iexplore.c
dlls/shdocvw/iexplore.c
+16
-0
resource.h
dlls/shdocvw/resource.h
+1
-0
shdocvw.h
dlls/shdocvw/shdocvw.h
+1
-0
No files found.
dlls/shdocvw/Makefile.in
View file @
e532b1c3
...
...
@@ -5,7 +5,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
shdocvw.dll
IMPORTLIB
=
shdocvw
IMPORTS
=
uuid shell32 shlwapi user32 gdi32 advapi32
IMPORTS
=
uuid shell32
comctl32
shlwapi user32 gdi32 advapi32
DELAYIMPORTS
=
version urlmon ole32 oleaut32
C_SRCS
=
\
...
...
dlls/shdocvw/iexplore.c
View file @
e532b1c3
...
...
@@ -50,10 +50,19 @@ static const WCHAR wszWineInternetExplorer[] =
void
adjust_ie_docobj_rect
(
HWND
frame
,
RECT
*
rc
)
{
HWND
hwndRebar
=
GetDlgItem
(
frame
,
IDC_BROWSE_REBAR
);
HWND
hwndStatus
=
GetDlgItem
(
frame
,
IDC_BROWSE_STATUSBAR
);
INT
barHeight
=
SendMessageW
(
hwndRebar
,
RB_GETBARHEIGHT
,
0
,
0
);
rc
->
top
+=
barHeight
;
rc
->
bottom
-=
barHeight
;
if
(
IsWindowVisible
(
hwndStatus
))
{
RECT
statusrc
;
GetClientRect
(
hwndStatus
,
&
statusrc
);
rc
->
bottom
-=
statusrc
.
bottom
-
statusrc
.
top
;
}
}
static
INT_PTR
CALLBACK
ie_dialog_open_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
...
...
@@ -145,7 +154,12 @@ static void create_rebar(HWND hwnd)
static
LRESULT
iewnd_OnCreate
(
HWND
hwnd
,
LPCREATESTRUCTW
lpcs
)
{
InternetExplorer
*
This
=
(
InternetExplorer
*
)
lpcs
->
lpCreateParams
;
SetWindowLongPtrW
(
hwnd
,
0
,
(
LONG_PTR
)
lpcs
->
lpCreateParams
);
This
->
status_hwnd
=
CreateStatusWindowW
(
CCS_NODIVIDER
|
WS_CHILD
|
WS_VISIBLE
,
NULL
,
hwnd
,
IDC_BROWSE_STATUSBAR
);
SendMessageW
(
This
->
status_hwnd
,
SB_SIMPLE
,
TRUE
,
0
);
create_rebar
(
hwnd
);
return
0
;
...
...
@@ -157,6 +171,8 @@ static LRESULT iewnd_OnSize(InternetExplorer *This, INT width, INT height)
INT
barHeight
=
SendMessageW
(
hwndRebar
,
RB_GETBARHEIGHT
,
0
,
0
);
RECT
docarea
=
{
0
,
0
,
width
,
height
};
SendMessageW
(
This
->
status_hwnd
,
WM_SIZE
,
0
,
0
);
adjust_ie_docobj_rect
(
This
->
frame_hwnd
,
&
docarea
);
if
(
This
->
doc_host
.
hwnd
)
...
...
dlls/shdocvw/resource.h
View file @
e532b1c3
...
...
@@ -26,6 +26,7 @@
#define IDC_BROWSE_OPEN_URL 1002
#define IDC_BROWSE_REBAR 1003
#define IDC_BROWSE_ADDRESSBAR 1004
#define IDC_BROWSE_STATUSBAR 1005
#define ID_BROWSE_NEW_WINDOW 275
#define ID_BROWSE_OPEN 256
...
...
dlls/shdocvw/shdocvw.h
View file @
e532b1c3
...
...
@@ -189,6 +189,7 @@ struct InternetExplorer {
LONG
ref
;
HWND
frame_hwnd
;
HWND
status_hwnd
;
DocHost
doc_host
;
};
...
...
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