- Make sure dropdown arrow is always centered.
- Add support for the TBNRF_HIDEHELP customization flag, but emit a FIXME when it isn't present.
This commit is contained in:
parent
2be0fa40e4
commit
d973bfb1c1
|
@ -917,7 +917,7 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_INFO *btnPtr, HDC hdc)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (hasDropDownArrow)
|
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) {
|
if (btnPtr->bHot) {
|
||||||
HIMAGELIST himlHot = GETHOTIMAGELIST(infoPtr,
|
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) ==
|
if (TOOLBAR_SendNotify ((NMHDR *) &nmtb, infoPtr, TBN_INITCUSTOMIZE) ==
|
||||||
TBNRF_HIDEHELP)
|
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 */
|
/* add items to 'toolbar buttons' list and check if removable */
|
||||||
|
|
Loading…
Reference in New Issue