- Add processing to escape "&" in the MDI tab bar.
- Add TTS_NOPREFIX to the tooltip style.
m_font.CreateFontIndirect(&ncm.lfMenuFont);
SetFont(&m_font);
- m_tooltips.Create(m_pMainFrame);
+ m_tooltips.Create(m_pMainFrame, TTS_NOPREFIX);
m_tooltips.AddTool(this, _T(""));
return TRUE;
if (strTitle.GetLength() > nMaxTitleLength)
strTitle = strTitle.Left(nMaxTitleLength - 3) + _T("...");
+ // Escape the '&' to prevent it from being removed and underlining the next character in the string.
+ strTitle.Replace(_T("&"), _T("&&"));
+
if (item == -1)
{
tci.mask = TCIF_PARAM | TCIF_TEXT;