From 7e5a1e3104a4f60e60abc5217474bbf403035a94 Mon Sep 17 00:00:00 2001 From: jacob Date: Mon, 18 Apr 2005 12:21:53 +0000 Subject: [PATCH] Add a comment describing `dummyitem' in prefslist and associated problems. git-svn-id: svn://svn.tartarus.org/sgt/putty@5641 cda61777-01e9-0310-a592-d414129be87e --- windows/winctrls.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/windows/winctrls.c b/windows/winctrls.c index 6d0b21cf..c2d344a1 100644 --- a/windows/winctrls.c +++ b/windows/winctrls.c @@ -1039,6 +1039,10 @@ int handle_prefslist(struct prefslist *hdl, int dest = 0; /* initialise to placate gcc */ switch (dlm->uNotification) { case DL_BEGINDRAG: + /* Add a dummy item to make pl_itemfrompt() work + * better. + * FIXME: this causes scrollbar glitches if the count of + * listbox contains >= its height. */ hdl->dummyitem = SendDlgItemMessage(hwnd, hdl->listid, LB_ADDSTRING, 0, (LPARAM) ""); -- 2.11.0