mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 02:03:37 +00:00
ieframe: Use int resource ID for toolbar image.
This commit is contained in:
parent
142afabb41
commit
35f21ac826
|
@ -439,7 +439,6 @@ static void create_rebar(HWND hwnd)
|
|||
REBARBANDINFOW bandinf;
|
||||
WCHAR addr[40];
|
||||
HIMAGELIST imagelist;
|
||||
WCHAR idb_ietoolbar[] = {'I','D','B','_','I','E','T','O','O','L','B','A','R',0};
|
||||
SIZE toolbar_size;
|
||||
|
||||
LoadStringW(ieframe_instance, IDS_ADDRESS, addr, sizeof(addr)/sizeof(addr[0]));
|
||||
|
@ -457,7 +456,7 @@ static void create_rebar(HWND hwnd)
|
|||
hwndToolbar = CreateWindowExW(TBSTYLE_EX_MIXEDBUTTONS, TOOLBARCLASSNAMEW, NULL, TBSTYLE_FLAT | WS_CHILD | WS_VISIBLE | CCS_NORESIZE,
|
||||
0, 0, 0, 0, hwndRebar, (HMENU)IDC_BROWSE_TOOLBAR, ieframe_instance, NULL);
|
||||
|
||||
imagelist = ImageList_LoadImageW(ieframe_instance, idb_ietoolbar, 32, 0, CLR_NONE, IMAGE_BITMAP, LR_CREATEDIBSECTION);
|
||||
imagelist = ImageList_LoadImageW(ieframe_instance, MAKEINTRESOURCEW(IDB_IETOOLBAR), 32, 0, CLR_NONE, IMAGE_BITMAP, LR_CREATEDIBSECTION);
|
||||
|
||||
SendMessageW(hwndToolbar, TB_SETIMAGELIST, 0, (LPARAM)imagelist);
|
||||
SendMessageW(hwndToolbar, TB_BUTTONSTRUCTSIZE, sizeof(TBBUTTON), 0);
|
||||
|
|
|
@ -62,6 +62,8 @@
|
|||
|
||||
#define IDS_ADDRESS 1106
|
||||
|
||||
#define IDB_IETOOLBAR 1400
|
||||
|
||||
/* update status text in BINDSTATUS_* callback */
|
||||
#define IDS_STATUSFMT_FIRST 4096
|
||||
#define IDS_FINDINGRESOURCE (IDS_STATUSFMT_FIRST + 1)
|
||||
|
|
Loading…
Reference in a new issue