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

This commit is contained in:
Francois Gouget 2011-09-01 15:03:44 +02:00 committed by Alexandre Julliard
parent 02ef576739
commit 083abe3fe9
1 changed files with 9 additions and 0 deletions

View File

@ -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);