1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-12 18:13:50 -05:00

Add a comment describing `dummyitem' in prefslist and associated problems.

[originally from svn r5641]
This commit is contained in:
Jacob Nevins 2005-04-18 12:21:53 +00:00
parent 208213117a
commit 0a0433cf80

View 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) "");