Commit 083abe3f authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

hhctrl.ocx: Issue a fixme if asked for unsupported toolbar buttons.

parent 02ef5767
......@@ -785,6 +785,7 @@ static void TB_AddButtonsFromFlags(HHInfo *pHHInfo, TBBUTTON *pButtons, DWORD dw
int nHistBitmaps = 0, nStdBitmaps = 0, nHHBitmaps = 0;
HWND hToolbar = pHHInfo->WinType.hwndToolBar;
TBADDBITMAP tbAB;
DWORD unsupported;
/* Common bitmaps */
tbAB.hInst = HINST_COMMCTRL;
......@@ -799,6 +800,14 @@ static void TB_AddButtonsFromFlags(HHInfo *pHHInfo, TBBUTTON *pButtons, DWORD dw
*pdwNumButtons = 0;
unsupported = dwButtonFlags & (HHWIN_BUTTON_BROWSE_FWD |
HHWIN_BUTTON_BROWSE_BCK | HHWIN_BUTTON_NOTES | HHWIN_BUTTON_CONTENTS |
HHWIN_BUTTON_INDEX | HHWIN_BUTTON_SEARCH | HHWIN_BUTTON_HISTORY |
HHWIN_BUTTON_FAVORITES | HHWIN_BUTTON_JUMP1 | HHWIN_BUTTON_JUMP2 |
HHWIN_BUTTON_ZOOM | HHWIN_BUTTON_TOC_NEXT | HHWIN_BUTTON_TOC_PREV);
if (unsupported)
FIXME("got asked for unsupported buttons: %06x\n", unsupported);
if (dwButtonFlags & HHWIN_BUTTON_EXPAND)
{
TB_AddButton(pButtons, (*pdwNumButtons)++, IDTB_EXPAND, nHistBitmaps + HIST_VIEWTREE);
......
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