Commit 1115e320 authored by Erich Hoover's avatar Erich Hoover Committed by Alexandre Julliard

hhctrl.ocx: Add some private toolbar bitmaps (copied from shdocvw).

parent d127f008
......@@ -17,4 +17,6 @@ IDL_R_SRCS = hhctrl_tlb.idl
RC_SRCS = hhctrl.rc
PO_SRCS = hhctrl.rc
SVG_SRCS = hhtoolbar.svg
@MAKE_DLL_RULES@
......@@ -773,15 +773,20 @@ static void TB_AddButton(TBBUTTON *pButtons, DWORD dwIndex, DWORD dwID, DWORD dw
static void TB_AddButtonsFromFlags(HHInfo *pHHInfo, TBBUTTON *pButtons, DWORD dwButtonFlags, LPDWORD pdwNumButtons)
{
int nHistBitmaps = 0, nStdBitmaps = 0, nHHBitmaps = 0;
HWND hToolbar = pHHInfo->WinType.hwndToolBar;
int nHistBitmaps = 0, nStdBitmaps = 0;
TBADDBITMAP tbAB;
/* Common bitmaps */
tbAB.hInst = HINST_COMMCTRL;
tbAB.nID = IDB_HIST_LARGE_COLOR;
nHistBitmaps = SendMessageW(hToolbar, TB_ADDBITMAP, 0, (LPARAM)&tbAB);
tbAB.nID = IDB_STD_LARGE_COLOR;
nStdBitmaps = SendMessageW(hToolbar, TB_ADDBITMAP, 0, (LPARAM)&tbAB);
/* hhctrl.ocx bitmaps */
tbAB.hInst = hhctrl_hinstance;
tbAB.nID = IDB_HHTOOLBAR;
nHHBitmaps = SendMessageW(hToolbar, TB_ADDBITMAP, 0, (LPARAM)&tbAB);
*pdwNumButtons = 0;
......@@ -802,16 +807,16 @@ static void TB_AddButtonsFromFlags(HHInfo *pHHInfo, TBBUTTON *pButtons, DWORD dw
if (dwButtonFlags & HHWIN_BUTTON_FORWARD)
TB_AddButton(pButtons, (*pdwNumButtons)++, IDTB_FORWARD, nHistBitmaps + HIST_FORWARD);
/* FIXME: Load the correct button bitmaps */
if (dwButtonFlags & HHWIN_BUTTON_STOP)
TB_AddButton(pButtons, (*pdwNumButtons)++, IDTB_STOP, nStdBitmaps + STD_PRINT);
TB_AddButton(pButtons, (*pdwNumButtons)++, IDTB_STOP, nHHBitmaps + HH_STOP);
if (dwButtonFlags & HHWIN_BUTTON_REFRESH)
TB_AddButton(pButtons, (*pdwNumButtons)++, IDTB_REFRESH, nStdBitmaps + STD_PRINT);
TB_AddButton(pButtons, (*pdwNumButtons)++, IDTB_REFRESH, nHHBitmaps + HH_REFRESH);
if (dwButtonFlags & HHWIN_BUTTON_HOME)
TB_AddButton(pButtons, (*pdwNumButtons)++, IDTB_HOME, nStdBitmaps + STD_PRINT);
TB_AddButton(pButtons, (*pdwNumButtons)++, IDTB_HOME, nHHBitmaps + HH_HOME);
/* FIXME: Load the correct button bitmaps */
if (dwButtonFlags & HHWIN_BUTTON_SYNC)
TB_AddButton(pButtons, (*pdwNumButtons)++, IDTB_SYNC, nStdBitmaps + STD_PRINT);
......
......@@ -90,3 +90,6 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#define WINE_PRODUCTVERSION_STR "5.2.3790.2744"
#include "wine/wine_common_ver.rc"
/* @makedep: hhtoolbar.bmp */
IDB_HHTOOLBAR BITMAP hhtoolbar.bmp
......@@ -31,3 +31,9 @@
#define IDS_SHOWTABS 6
#define MENU_POPUP 1
#define IDB_HHTOOLBAR 1000
/* IDB_HHTOOLBAR bitmaps: */
#define HH_STOP 0
#define HH_REFRESH 1
#define HH_HOME 2
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment