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
7833ca6b
Commit
7833ca6b
authored
Jul 02, 2010
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Jul 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Make the addressbar in IE do something useful.
parent
c5ac9829
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
iexplore.c
dlls/shdocvw/iexplore.c
+32
-0
No files found.
dlls/shdocvw/iexplore.c
View file @
7833ca6b
...
...
@@ -168,6 +168,36 @@ static LRESULT iewnd_OnSize(InternetExplorer *This, INT width, INT height)
return
0
;
}
static
LRESULT
iewnd_OnNotify
(
InternetExplorer
*
This
,
WPARAM
wparam
,
LPARAM
lparam
)
{
NMHDR
*
hdr
=
(
NMHDR
*
)
lparam
;
if
(
hdr
->
idFrom
==
IDC_BROWSE_ADDRESSBAR
&&
hdr
->
code
==
CBEN_ENDEDITW
)
{
NMCBEENDEDITW
*
info
=
(
NMCBEENDEDITW
*
)
lparam
;
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
);
IWebBrowser2_Navigate2
(
WEBBROWSER2
(
This
),
&
vt
,
NULL
,
NULL
,
NULL
,
NULL
);
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
;
}
}
return
0
;
}
static
LRESULT
iewnd_OnDestroy
(
InternetExplorer
*
This
)
{
TRACE
(
"%p
\n
"
,
This
);
...
...
@@ -225,6 +255,8 @@ ie_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
return
iewnd_OnSize
(
This
,
LOWORD
(
lparam
),
HIWORD
(
lparam
));
case
WM_COMMAND
:
return
iewnd_OnCommand
(
This
,
hwnd
,
msg
,
wparam
,
lparam
);
case
WM_NOTIFY
:
return
iewnd_OnNotify
(
This
,
wparam
,
lparam
);
case
WM_DOCHOSTTASK
:
return
process_dochost_task
(
&
This
->
doc_host
,
lparam
);
}
...
...
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