Changeset 2740 for trunk/src/comctl32/draglist.c
- Timestamp:
- Feb 10, 2000, 7:51:19 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/draglist.c
r2126 r2740 22 22 BOOL WINAPI MakeDragList (HWND hwndLB) 23 23 { 24 FIXME("(0x%x)\n", hwndLB);24 //FIXME("(0x%x)\n", hwndLB); 25 25 26 26 … … 31 31 VOID WINAPI DrawInsert (HWND hwndParent, HWND hwndLB, INT nItem) 32 32 { 33 FIXME("(0x%x 0x%x %d)\n", hwndParent, hwndLB, nItem);33 //FIXME("(0x%x 0x%x %d)\n", hwndParent, hwndLB, nItem); 34 34 35 35 … … 43 43 DWORD dwScrollTime; 44 44 45 FIXME("(0x%x %ld x %ld %s)\n",46 45 //FIXME("(0x%x %ld x %ld %s)\n", 46 // hwndLB, pt.x, pt.y, bAutoScroll ? "TRUE" : "FALSE"); 47 47 48 48 ScreenToClient (hwndLB, &pt); … … 52 52 if (PtInRect (&rcClient, pt)) 53 53 { 54 55 56 57 58 54 /* point is inside -- get the item index */ 55 while (TRUE) 56 { 57 if (SendMessageA (hwndLB, LB_GETITEMRECT, nIndex, (LPARAM)&rcClient) == LB_ERR) 58 return -1; 59 59 60 61 60 if (PtInRect (&rcClient, pt)) 61 return nIndex; 62 62 63 64 63 nIndex++; 64 } 65 65 } 66 66 else 67 67 { 68 69 70 68 /* point is outside */ 69 if (!bAutoScroll) 70 return -1; 71 71 72 73 72 if ((pt.x > rcClient.right) || (pt.x < rcClient.left)) 73 return -1; 74 74 75 76 77 78 75 if (pt.y < 0) 76 nIndex--; 77 else 78 nIndex++; 79 79 80 80 dwScrollTime = GetTickCount (); 81 81 82 83 82 if ((dwScrollTime - dwLastScrollTime) < 200) 83 return -1; 84 84 85 85 dwLastScrollTime = dwScrollTime; 86 86 87 87 SendMessageA (hwndLB, LB_SETTOPINDEX, (WPARAM)nIndex, 0); 88 88 } 89 89
Note:
See TracChangeset
for help on using the changeset viewer.