Browse Source

fixed displaying ampersand (&) when displaying clips

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@385 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden 19 years ago
parent
commit
261d221dff
2 changed files with 3 additions and 2 deletions
  1. 1 0
      DittoSetup/Changes.txt
  2. 2 2
      QListCtrl.cpp

+ 1 - 0
DittoSetup/Changes.txt

@@ -6,6 +6,7 @@
 - Added "Word Wrap" setting in clip editor
 - When searching in a group only search the clips in that group.
 - Hide apply button in options.  The button didn't do anything.
+- Don't underline the character following an ampersand(&) when displaying clip text.
 
 
 3.9.0.0    8-03-06

+ 2 - 2
QListCtrl.cpp

@@ -482,14 +482,14 @@ void CQListCtrl::OnCustomdrawList(NMHDR* pNMHDR, LRESULT* pResult)
 			pDC->Draw3dRect(rectSym, GetSysColor(COLOR_3DLIGHT), GetSysColor(COLOR_3DDKSHADOW));
 			//		COLORREF crOld = pDC->SetTextColor(GetSysColor(COLOR_INFOTEXT));
 			COLORREF crOld = pDC->SetTextColor(RGB(255, 255, 255));
-			pDC->DrawText(strSymbols, rectSym, DT_VCENTER | DT_EXPANDTABS);
+			pDC->DrawText(strSymbols, rectSym, DT_VCENTER|DT_EXPANDTABS|DT_NOPREFIX);
 			pDC->SetTextColor(crOld);
 
 			rcText.left += rectSym.Width() + 2;
 		}
 		
 		if(DrawText(nItem, rcText, pDC) == FALSE)
-			pDC->DrawText(csText, rcText, DT_VCENTER | DT_EXPANDTABS);
+			pDC->DrawText(csText, rcText, DT_VCENTER|DT_EXPANDTABS|DT_NOPREFIX);
 		
         // Draw a focus rect around the item if necessary.
         if(bListHasFocus && (rItem.state & LVIS_FOCUSED))