From 5f692ed1f00188be77cf1580a7510bc5a5660ae3 Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Wed, 22 Jan 2020 09:58:43 +0900 Subject: [PATCH] [EXPLORER][INCLUDE] Fix wrong title on taskbar about ampersand (&) (#2266) Co-authored-by: Mark Jansen Based on @learn-more's CORE-11619.patch. CORE-11619 --- base/shell/explorer/taskswnd.cpp | 4 +++- sdk/include/reactos/rosctrls.h | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/base/shell/explorer/taskswnd.cpp b/base/shell/explorer/taskswnd.cpp index deeb50f2547..17d11e27ed0 100644 --- a/base/shell/explorer/taskswnd.cpp +++ b/base/shell/explorer/taskswnd.cpp @@ -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); } }; diff --git a/sdk/include/reactos/rosctrls.h b/sdk/include/reactos/rosctrls.h index 6dd4ba9fa39..73e7cfab1d2 100644 --- a/sdk/include/reactos/rosctrls.h +++ b/sdk/include/reactos/rosctrls.h @@ -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() {