https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5f692ed1f00188be77cf1…
commit 5f692ed1f00188be77cf1580a7510bc5a5660ae3
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Wed Jan 22 09:58:43 2020 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Wed Jan 22 09:58:43 2020 +0900
[EXPLORER][INCLUDE] Fix wrong title on taskbar about ampersand (&) (#2266)
Co-authored-by: Mark Jansen <mark.jansen(a)reactos.org>
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()
{