mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 18:53:05 +00:00
[EXPLORER][COMCTL32] Fix wrong title on taskbar if it has '&' in it (#7073)
The ampersand (&) a.k.a. prefix of DrawText are specially treated for adding underscores. We have to fix drawing on toolbar button with BTNS_NOPREFIX style. JIRA issue: CORE-11619 - Delete DT flags hack in taskswnd.cpp. - Add TOOLBAR_GetButtonDTFlags helper function. - Extend TOOLBAR_DrawString parameters for the button info. - Fix DrawText flags for drawing when the button has BTNS_NOPREFIX style.
This commit is contained in:
parent
8a7b99c184
commit
c536664666
2 changed files with 27 additions and 2 deletions
|
@ -287,7 +287,6 @@ public:
|
|||
|
||||
// HACK & FIXME: CORE-18016
|
||||
HWND toolbar = CToolbar::Create(hWndParent, styles);
|
||||
SetDrawTextFlags(DT_NOPREFIX, DT_NOPREFIX);
|
||||
m_hWnd = NULL;
|
||||
return SubclassWindow(toolbar);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue