aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2005-03-25 05:08:20 +0000
committernyamatongwe <devnull@localhost>2005-03-25 05:08:20 +0000
commit1b61745b3bf98bc8574867de0e1a88964b7b2095 (patch)
treec11a0777465efddd66120e05cc73d7745d31ae50 /win32/ScintillaWin.cxx
parent46175e05655f472f48f62721bfbe37fa9e758d1a (diff)
downloadscintilla-mirror-1b61745b3bf98bc8574867de0e1a88964b7b2095.tar.gz
Patch from Blair McGlashan for autocompletion on Windows to
* Set maximum width of list * set maximum height of list * better calculate width * use ellipsis when text is truncated to fit window * use popup window so it can extend past parent window * disallow resizing too small * draw to bottom edge when resized so last item not full line high * improve time to display by by 90% Minor tweaks by me to fix warnings, layout etc.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r--win32/ScintillaWin.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index d50b3c98e..0900e7a21 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -527,15 +527,6 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam
case WM_COMMAND:
#ifdef TOTAL_CONTROL
- if (LoWord(wParam) == idAutoComplete) {
- int cmd = HiWord(wParam);
- if (cmd == LBN_DBLCLK) {
- AutoCompleteCompleted();
- } else {
- if (cmd != LBN_SETFOCUS)
- ::SetFocus(MainHWND());
- }
- }
Command(LoWord(wParam));
#endif
break;
@@ -762,7 +753,7 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam
case WM_KILLFOCUS: {
HWND wOther = reinterpret_cast<HWND>(wParam);
- HWND wThis = reinterpret_cast<HWND>(wMain.GetID());
+ HWND wThis = MainHWND();
HWND wCT = reinterpret_cast<HWND>(ct.wCallTip.GetID());
if (!wParam ||
!(::IsChild(wThis,wOther) || (wOther == wCT))) {