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
75909f21
Commit
75909f21
authored
Jul 27, 2010
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Jul 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Update the address bar when URL changes.
parent
fbf91383
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
iexplore.c
dlls/shdocvw/iexplore.c
+15
-5
shdocvw.h
dlls/shdocvw/shdocvw.h
+2
-0
No files found.
dlls/shdocvw/iexplore.c
View file @
75909f21
...
...
@@ -179,7 +179,6 @@ static LRESULT iewnd_OnNotify(InternetExplorer *This, WPARAM wparam, LPARAM lpar
if
(
info
->
fChanged
&&
info
->
iWhy
==
CBENF_RETURN
&&
info
->
szText
)
{
VARIANT
vt
;
HWND
hwndEdit
=
(
HWND
)
SendMessageW
(
hdr
->
hwndFrom
,
CBEM_GETEDITCONTROL
,
0
,
0
);
V_VT
(
&
vt
)
=
VT_BSTR
;
V_BSTR
(
&
vt
)
=
SysAllocString
(
info
->
szText
);
...
...
@@ -188,9 +187,6 @@ static LRESULT iewnd_OnNotify(InternetExplorer *This, WPARAM wparam, LPARAM lpar
SysFreeString
(
V_BSTR
(
&
vt
));
/* Clear the address bar, as we don't change it when
the user navigates to a new page */
SendMessageW
(
hwndEdit
,
WM_SETTEXT
,
0
,
0
);
return
0
;
}
}
...
...
@@ -240,6 +236,18 @@ static LRESULT CALLBACK iewnd_OnCommand(InternetExplorer *This, HWND hwnd, UINT
return
0
;
}
static
LRESULT
CALLBACK
update_addrbar
(
InternetExplorer
*
This
,
LPARAM
lparam
)
{
HWND
hwndRebar
=
GetDlgItem
(
This
->
frame_hwnd
,
IDC_BROWSE_REBAR
);
HWND
hwndAddress
=
GetDlgItem
(
hwndRebar
,
IDC_BROWSE_ADDRESSBAR
);
HWND
hwndEdit
=
(
HWND
)
SendMessageW
(
hwndAddress
,
CBEM_GETEDITCONTROL
,
0
,
0
);
LPCWSTR
url
=
(
LPCWSTR
)
lparam
;
SendMessageW
(
hwndEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
url
);
return
0
;
}
static
LRESULT
CALLBACK
ie_window_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
...
...
@@ -259,6 +267,8 @@ ie_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
return
iewnd_OnNotify
(
This
,
wparam
,
lparam
);
case
WM_DOCHOSTTASK
:
return
process_dochost_task
(
&
This
->
doc_host
,
lparam
);
case
WM_UPDATEADDRBAR
:
return
update_addrbar
(
This
,
lparam
);
}
return
DefWindowProcW
(
hwnd
,
msg
,
wparam
,
lparam
);
}
...
...
@@ -359,7 +369,7 @@ static HRESULT WINAPI DocHostContainer_SetStatusText(DocHost* This, LPCWSTR text
static
void
WINAPI
DocHostContainer_SetURL
(
DocHost
*
This
,
LPCWSTR
url
)
{
SendMessageW
(
This
->
frame_hwnd
,
WM_UPDATEADDRBAR
,
0
,
(
LPARAM
)
url
);
}
static
const
IDocHostContainerVtbl
DocHostContainerVtbl
=
{
...
...
dlls/shdocvw/shdocvw.h
View file @
75909f21
...
...
@@ -43,6 +43,8 @@
#include "resource.h"
#define WM_UPDATEADDRBAR (WM_APP+1)
/**********************************************************************
* Shell Instance Objects
*/
...
...
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