From d973bfb1c1c562861171903dc5e03a9b2d96103e Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Fri, 12 Sep 2003 00:21:57 +0000 Subject: [PATCH] - Make sure dropdown arrow is always centered. - Add support for the TBNRF_HIDEHELP customization flag, but emit a FIXME when it isn't present. --- dlls/comctl32/toolbar.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c index ce365d5b414..b360c22bcd4 100644 --- a/dlls/comctl32/toolbar.c +++ b/dlls/comctl32/toolbar.c @@ -917,7 +917,7 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_INFO *btnPtr, HDC hdc) #endif if (hasDropDownArrow) - TOOLBAR_DrawArrow(hdc, rcArrow.left+1, rcArrow.top, COLOR_WINDOWFRAME); + TOOLBAR_DrawArrow(hdc, rcArrow.left+1, rcArrow.top + (rcArrow.bottom - rcArrow.top - ARROW_HEIGHT) / 2, COLOR_WINDOWFRAME); if (btnPtr->bHot) { HIMAGELIST himlHot = GETHOTIMAGELIST(infoPtr, @@ -1704,7 +1704,13 @@ TOOLBAR_CustomizeDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) if (TOOLBAR_SendNotify ((NMHDR *) &nmtb, infoPtr, TBN_INITCUSTOMIZE) == TBNRF_HIDEHELP) { - FIXME("TBNRF_HIDEHELP not supported\n"); + TRACE("TBNRF_HIDEHELP requested\n"); + ShowWindow(GetDlgItem(hwnd, IDC_HELP_BTN), SW_HIDE); + } + else + { + FIXME("Help button not implemented\n"); + EnableWindow(GetDlgItem(hwnd, IDC_HELP_BTN), FALSE); } /* add items to 'toolbar buttons' list and check if removable */