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
4432f57e
Commit
4432f57e
authored
Jul 09, 2010
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Aug 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Add icons to the IE toolbar.
parent
871a65d2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
8 deletions
+22
-8
ietoolbar.bmp
dlls/shdocvw/ietoolbar.bmp
+0
-0
iexplore.c
dlls/shdocvw/iexplore.c
+18
-8
resource.h
dlls/shdocvw/resource.h
+1
-0
shdocvw.rc
dlls/shdocvw/shdocvw.rc
+3
-0
No files found.
dlls/shdocvw/ietoolbar.bmp
0 → 100644
View file @
4432f57e
3.1 KB
dlls/shdocvw/iexplore.c
View file @
4432f57e
...
@@ -355,6 +355,8 @@ static void create_rebar(HWND hwnd)
...
@@ -355,6 +355,8 @@ static void create_rebar(HWND hwnd)
REBARINFO
rebarinf
;
REBARINFO
rebarinf
;
REBARBANDINFOW
bandinf
;
REBARBANDINFOW
bandinf
;
WCHAR
addr
[]
=
{
'A'
,
'd'
,
'd'
,
'r'
,
'e'
,
's'
,
's'
,
0
};
WCHAR
addr
[]
=
{
'A'
,
'd'
,
'd'
,
'r'
,
'e'
,
's'
,
's'
,
0
};
HIMAGELIST
imagelist
;
WCHAR
idb_ietoolbar
[]
=
{
'I'
,
'D'
,
'B'
,
'_'
,
'I'
,
'E'
,
'T'
,
'O'
,
'O'
,
'L'
,
'B'
,
'A'
,
'R'
,
0
};
hwndRebar
=
CreateWindowExW
(
WS_EX_TOOLWINDOW
,
REBARCLASSNAMEW
,
NULL
,
WS_CHILD
|
WS_VISIBLE
|
WS_CLIPSIBLINGS
|
WS_CLIPCHILDREN
|
RBS_VARHEIGHT
|
CCS_TOP
|
CCS_NODIVIDER
,
0
,
0
,
0
,
0
,
hwnd
,
(
HMENU
)
IDC_BROWSE_REBAR
,
shdocvw_hinstance
,
NULL
);
hwndRebar
=
CreateWindowExW
(
WS_EX_TOOLWINDOW
,
REBARCLASSNAMEW
,
NULL
,
WS_CHILD
|
WS_VISIBLE
|
WS_CLIPSIBLINGS
|
WS_CLIPCHILDREN
|
RBS_VARHEIGHT
|
CCS_TOP
|
CCS_NODIVIDER
,
0
,
0
,
0
,
0
,
hwnd
,
(
HMENU
)
IDC_BROWSE_REBAR
,
shdocvw_hinstance
,
NULL
);
...
@@ -367,22 +369,25 @@ static void create_rebar(HWND hwnd)
...
@@ -367,22 +369,25 @@ static void create_rebar(HWND hwnd)
hwndToolbar
=
CreateWindowExW
(
TBSTYLE_EX_MIXEDBUTTONS
,
TOOLBARCLASSNAMEW
,
NULL
,
TBSTYLE_FLAT
|
WS_CHILD
|
WS_VISIBLE
,
0
,
0
,
0
,
0
,
hwndRebar
,
(
HMENU
)
IDC_BROWSE_TOOLBAR
,
shdocvw_hinstance
,
NULL
);
hwndToolbar
=
CreateWindowExW
(
TBSTYLE_EX_MIXEDBUTTONS
,
TOOLBARCLASSNAMEW
,
NULL
,
TBSTYLE_FLAT
|
WS_CHILD
|
WS_VISIBLE
,
0
,
0
,
0
,
0
,
hwndRebar
,
(
HMENU
)
IDC_BROWSE_TOOLBAR
,
shdocvw_hinstance
,
NULL
);
imagelist
=
ImageList_LoadImageW
(
shdocvw_hinstance
,
idb_ietoolbar
,
32
,
0
,
RGB
(
255
,
0
,
255
),
IMAGE_BITMAP
,
LR_DEFAULTCOLOR
);
SendMessageW
(
hwndToolbar
,
TB_SETIMAGELIST
,
0
,
(
LPARAM
)
imagelist
);
SendMessageW
(
hwndToolbar
,
TB_BUTTONSTRUCTSIZE
,
sizeof
(
TBBUTTON
),
0
);
SendMessageW
(
hwndToolbar
,
TB_BUTTONSTRUCTSIZE
,
sizeof
(
TBBUTTON
),
0
);
add_tb_button
(
hwndToolbar
,
I_IMAGENONE
,
0
,
IDS_TB_BACK
);
add_tb_button
(
hwndToolbar
,
0
,
0
,
IDS_TB_BACK
);
add_tb_button
(
hwndToolbar
,
I_IMAGENONE
,
0
,
IDS_TB_FORWARD
);
add_tb_button
(
hwndToolbar
,
1
,
0
,
IDS_TB_FORWARD
);
add_tb_button
(
hwndToolbar
,
I_IMAGENONE
,
0
,
IDS_TB_STOP
);
add_tb_button
(
hwndToolbar
,
2
,
0
,
IDS_TB_STOP
);
add_tb_button
(
hwndToolbar
,
I_IMAGENONE
,
0
,
IDS_TB_REFRESH
);
add_tb_button
(
hwndToolbar
,
3
,
0
,
IDS_TB_REFRESH
);
add_tb_button
(
hwndToolbar
,
I_IMAGENONE
,
ID_BROWSE_HOME
,
IDS_TB_HOME
);
add_tb_button
(
hwndToolbar
,
4
,
ID_BROWSE_HOME
,
IDS_TB_HOME
);
add_tb_separator
(
hwndToolbar
);
add_tb_separator
(
hwndToolbar
);
add_tb_button
(
hwndToolbar
,
I_IMAGENONE
,
ID_BROWSE_PRINT
,
IDS_TB_PRINT
);
add_tb_button
(
hwndToolbar
,
5
,
ID_BROWSE_PRINT
,
IDS_TB_PRINT
);
SendMessageW
(
hwndToolbar
,
TB_SETBUTTONSIZE
,
0
,
MAKELPARAM
(
5
0
,
4
0
));
SendMessageW
(
hwndToolbar
,
TB_SETBUTTONSIZE
,
0
,
MAKELPARAM
(
5
5
,
5
0
));
SendMessageW
(
hwndToolbar
,
TB_AUTOSIZE
,
0
,
0
);
SendMessageW
(
hwndToolbar
,
TB_AUTOSIZE
,
0
,
0
);
bandinf
.
cbSize
=
sizeof
(
bandinf
);
bandinf
.
cbSize
=
sizeof
(
bandinf
);
bandinf
.
fMask
=
RBBIM_STYLE
|
RBBIM_CHILD
|
RBBIM_CHILDSIZE
|
RBBIM_SIZE
;
bandinf
.
fMask
=
RBBIM_STYLE
|
RBBIM_CHILD
|
RBBIM_CHILDSIZE
|
RBBIM_SIZE
;
bandinf
.
fStyle
=
RBBS_CHILDEDGE
;
bandinf
.
fStyle
=
RBBS_CHILDEDGE
;
bandinf
.
cx
=
100
;
bandinf
.
cx
=
100
;
bandinf
.
cyMinChild
=
4
2
;
bandinf
.
cyMinChild
=
5
2
;
bandinf
.
hwndChild
=
hwndToolbar
;
bandinf
.
hwndChild
=
hwndToolbar
;
SendMessageW
(
hwndRebar
,
RB_INSERTBANDW
,
-
1
,
(
LPARAM
)
&
bandinf
);
SendMessageW
(
hwndRebar
,
RB_INSERTBANDW
,
-
1
,
(
LPARAM
)
&
bandinf
);
...
@@ -460,9 +465,14 @@ static LRESULT iewnd_OnNotify(InternetExplorer *This, WPARAM wparam, LPARAM lpar
...
@@ -460,9 +465,14 @@ static LRESULT iewnd_OnNotify(InternetExplorer *This, WPARAM wparam, LPARAM lpar
static
LRESULT
iewnd_OnDestroy
(
InternetExplorer
*
This
)
static
LRESULT
iewnd_OnDestroy
(
InternetExplorer
*
This
)
{
{
HWND
hwndRebar
=
GetDlgItem
(
This
->
frame_hwnd
,
IDC_BROWSE_REBAR
);
HWND
hwndToolbar
=
GetDlgItem
(
hwndRebar
,
IDC_BROWSE_TOOLBAR
);
HIMAGELIST
list
=
(
HIMAGELIST
)
SendMessageW
(
hwndToolbar
,
TB_GETIMAGELIST
,
0
,
0
);
TRACE
(
"%p
\n
"
,
This
);
TRACE
(
"%p
\n
"
,
This
);
free_fav_menu_data
(
get_fav_menu
(
This
->
menu
));
free_fav_menu_data
(
get_fav_menu
(
This
->
menu
));
ImageList_Destroy
(
list
);
This
->
frame_hwnd
=
NULL
;
This
->
frame_hwnd
=
NULL
;
PostQuitMessage
(
0
);
/* FIXME */
PostQuitMessage
(
0
);
/* FIXME */
...
...
dlls/shdocvw/resource.h
View file @
4432f57e
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
#define IDC_BROWSE_ADDRESSBAR 1004
#define IDC_BROWSE_ADDRESSBAR 1004
#define IDC_BROWSE_STATUSBAR 1005
#define IDC_BROWSE_STATUSBAR 1005
#define IDC_BROWSE_TOOLBAR 1006
#define IDC_BROWSE_TOOLBAR 1006
#define IDB_IETOOLBAR 1007
#define ID_BROWSE_NEW_WINDOW 275
#define ID_BROWSE_NEW_WINDOW 275
#define ID_BROWSE_OPEN 256
#define ID_BROWSE_OPEN 256
...
...
dlls/shdocvw/shdocvw.rc
View file @
4432f57e
...
@@ -33,3 +33,6 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
...
@@ -33,3 +33,6 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
/* @makedep: shdocvw.inf */
/* @makedep: shdocvw.inf */
REGINST REGINST shdocvw.inf
REGINST REGINST shdocvw.inf
/* @makedep: ietoolbar.bmp */
IDB_IETOOLBAR BITMAP ietoolbar.bmp
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