Francois Gouget : hhctrl.ocx: Issue a fixme if asked for unsupported toolbar buttons.
Alexandre Julliard
julliard at winehq.org
Thu Sep 1 11:56:00 CDT 2011
Module: wine
Branch: master
Commit: 083abe3fe98235e8a26539b9210ddc32a089c50e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=083abe3fe98235e8a26539b9210ddc32a089c50e
Author: Francois Gouget <fgouget at free.fr>
Date: Thu Sep 1 15:03:44 2011 +0200
hhctrl.ocx: Issue a fixme if asked for unsupported toolbar buttons.
---
dlls/hhctrl.ocx/help.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/dlls/hhctrl.ocx/help.c b/dlls/hhctrl.ocx/help.c
index d52939d..7bde256 100644
--- a/dlls/hhctrl.ocx/help.c
+++ b/dlls/hhctrl.ocx/help.c
@@ -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);
More information about the wine-cvs
mailing list