aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2005-03-25 05:08:20 +0000
committernyamatongwe <unknown>2005-03-25 05:08:20 +0000
commit66622bd04e7666e7b0556b17902dc683a22bc249 (patch)
treec11a0777465efddd66120e05cc73d7745d31ae50 /win32/ScintillaWin.cxx
parent3ab465e5e5e653cc00298c2cca632deea54e0ff0 (diff)
downloadscintilla-mirror-66622bd04e7666e7b0556b17902dc683a22bc249.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))) {