diff options
-rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
-rw-r--r-- | win32/PlatWin.cxx | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index bf29e868e..1fa5eb230 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -536,6 +536,10 @@ On Cocoa, the autocompletion is 4 pixels wider to avoid text truncation. </li> <li> + On Windows, stop drawing a focus rectangle on the autocompletion list and + raise the default list length to 9 items. + </li> + <li> SciTE user interface uses lighter colours and fewer 3D elements to match current desktop environments. </li> </ul> diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index cef6973d7..9afc14eaf 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -2069,7 +2069,7 @@ class ListBoxX : public ListBox { public: ListBoxX() : lineHeight(10), fontCopy(0), technology(0), lb(0), unicodeMode(false), - desiredVisibleRows(5), maxItemCharacters(0), aveCharWidth(8), + desiredVisibleRows(9), maxItemCharacters(0), aveCharWidth(8), parent(NULL), ctrlID(0), doubleClickAction(NULL), doubleClickActionData(NULL), widestItem(NULL), maxCharWidth(1), resizeHit(0), wheelDelta(0) { } @@ -2303,9 +2303,6 @@ void ListBoxX::Draw(DRAWITEMSTRUCT *pDrawItem) { } else { ::DrawTextA(pDrawItem->hDC, text, len, &rcText, DT_NOPREFIX|DT_END_ELLIPSIS|DT_SINGLELINE|DT_NOCLIP); } - if (pDrawItem->itemState & ODS_SELECTED) { - ::DrawFocusRect(pDrawItem->hDC, &rcBox); - } // Draw the image, if any RGBAImage *pimage = images.Get(pixId); |