X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinctrls.c;h=c2d344a1064ee4dfe69fe31938868e6fdad3edd6;hb=d83cd2f79bba111660262af0827296cb76e17040;hp=6d0b21cf9b02659e21a441a2eda32a438bda788a;hpb=f481acb4792d56818509d8b756d3ae4c96c060d4;p=PuTTY.git 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) "");