[EXPLORER][INCLUDE] Fix wrong title on taskbar about ampersand (&) (#2266)

Co-authored-by: Mark Jansen <mark.jansen@reactos.org>
Based on @learn-more's CORE-11619.patch. CORE-11619
This commit is contained in:
Katayama Hirofumi MZ 2020-01-22 09:58:43 +09:00 committed by GitHub
parent 257a701e9b
commit 5f692ed1f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -285,7 +285,9 @@ public:
TBSTYLE_TOOLTIPS | TBSTYLE_WRAPABLE | TBSTYLE_LIST | TBSTYLE_TRANSPARENT |
CCS_TOP | CCS_NORESIZE | CCS_NODIVIDER;
return SubclassWindow(CToolbar::Create(hWndParent, styles));
HWND toolbar = CToolbar::Create(hWndParent, styles);
SetDrawTextFlags(DT_NOPREFIX, DT_NOPREFIX);
return SubclassWindow(toolbar);
}
};

View file

@ -306,6 +306,11 @@ public: // Configuration methods
return SendMessageW(TB_SETHOTITEM, item);
}
DWORD SetDrawTextFlags(DWORD useBits, DWORD bitState)
{
return SendMessageW(TB_SETDRAWTEXTFLAGS, useBits, bitState);
}
public: // Button list management methods
int GetButtonCount()
{