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
e4620d8e
Commit
e4620d8e
authored
Jun 21, 2010
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Jul 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Make the Open URL dialog open URLs.
parent
3feb26a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
iexplore.c
dlls/shdocvw/iexplore.c
+31
-1
No files found.
dlls/shdocvw/iexplore.c
View file @
e4620d8e
...
...
@@ -49,15 +49,45 @@ static const WCHAR wszWineInternetExplorer[] =
static
INT_PTR
CALLBACK
ie_dialog_open_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
static
InternetExplorer
*
This
;
switch
(
msg
)
{
case
WM_INITDIALOG
:
This
=
(
InternetExplorer
*
)
lparam
;
EnableWindow
(
GetDlgItem
(
hwnd
,
IDOK
),
FALSE
);
return
TRUE
;
case
WM_COMMAND
:
switch
(
LOWORD
(
wparam
))
{
case
IDC_BROWSE_OPEN_URL
:
{
HWND
hwndurl
=
GetDlgItem
(
hwnd
,
IDC_BROWSE_OPEN_URL
);
int
len
=
GetWindowTextLengthW
(
hwndurl
);
EnableWindow
(
GetDlgItem
(
hwnd
,
IDOK
),
len
?
TRUE
:
FALSE
);
break
;
}
case
IDOK
:
{
HWND
hwndurl
=
GetDlgItem
(
hwnd
,
IDC_BROWSE_OPEN_URL
);
int
len
=
GetWindowTextLengthW
(
hwndurl
);
if
(
len
)
{
VARIANT
url
;
V_VT
(
&
url
)
=
VT_BSTR
;
V_BSTR
(
&
url
)
=
SysAllocStringLen
(
NULL
,
len
);
GetWindowTextW
(
hwndurl
,
V_BSTR
(
&
url
),
len
);
IWebBrowser2_Navigate2
(
WEBBROWSER2
(
This
),
&
url
,
NULL
,
NULL
,
NULL
,
NULL
);
SysFreeString
(
V_BSTR
(
&
url
));
}
}
/* fall through */
case
IDCANCEL
:
EndDialog
(
hwnd
,
wparam
);
return
TRUE
;
...
...
@@ -105,7 +135,7 @@ static LRESULT CALLBACK iewnd_OnCommand(InternetExplorer *This, HWND hwnd, UINT
switch
(
LOWORD
(
wparam
))
{
case
ID_BROWSE_OPEN
:
DialogBox
W
(
shdocvw_hinstance
,
MAKEINTRESOURCEW
(
IDD_BROWSE_OPEN
),
hwnd
,
ie_dialog_open_proc
);
DialogBox
ParamW
(
shdocvw_hinstance
,
MAKEINTRESOURCEW
(
IDD_BROWSE_OPEN
),
hwnd
,
ie_dialog_open_proc
,
(
LPARAM
)
This
);
break
;
case
ID_BROWSE_PRINT
:
...
...
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