]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Add a comment describing `dummyitem' in prefslist and associated problems.
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Mon, 18 Apr 2005 12:21:53 +0000 (12:21 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Mon, 18 Apr 2005 12:21:53 +0000 (12:21 +0000)
[originally from svn r5641]

windows/winctrls.c

index 6d0b21cf9b02659e21a441a2eda32a438bda788a..c2d344a1064ee4dfe69fe31938868e6fdad3edd6 100644 (file)
@@ -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) "");