Ignore:
Timestamp:
Feb 10, 2000, 7:51:19 PM (26 years ago)
Author:
cbratschi
Message:

added listview style, treeview rewrite started

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/draglist.c

    r2126 r2740  
    2222BOOL WINAPI MakeDragList (HWND hwndLB)
    2323{
    24     FIXME("(0x%x)\n", hwndLB);
     24    //FIXME("(0x%x)\n", hwndLB);
    2525
    2626
     
    3131VOID WINAPI DrawInsert (HWND hwndParent, HWND hwndLB, INT nItem)
    3232{
    33     FIXME("(0x%x 0x%x %d)\n", hwndParent, hwndLB, nItem);
     33    //FIXME("(0x%x 0x%x %d)\n", hwndParent, hwndLB, nItem);
    3434
    3535
     
    4343    DWORD dwScrollTime;
    4444
    45     FIXME("(0x%x %ld x %ld %s)\n",
    46            hwndLB, pt.x, pt.y, bAutoScroll ? "TRUE" : "FALSE");
     45    //FIXME("(0x%x %ld x %ld %s)\n",
     46    //       hwndLB, pt.x, pt.y, bAutoScroll ? "TRUE" : "FALSE");
    4747
    4848    ScreenToClient (hwndLB, &pt);
     
    5252    if (PtInRect (&rcClient, pt))
    5353    {
    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;
     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;
    5959
    60             if (PtInRect (&rcClient, pt))
    61                 return nIndex;
     60            if (PtInRect (&rcClient, pt))
     61                return nIndex;
    6262
    63             nIndex++;
    64         }
     63            nIndex++;
     64        }
    6565    }
    6666    else
    6767    {
    68         /* point is outside */
    69         if (!bAutoScroll)
    70             return -1;
     68        /* point is outside */
     69        if (!bAutoScroll)
     70            return -1;
    7171
    72         if ((pt.x > rcClient.right) || (pt.x < rcClient.left))
    73             return -1;
     72        if ((pt.x > rcClient.right) || (pt.x < rcClient.left))
     73            return -1;
    7474
    75         if (pt.y < 0)
    76             nIndex--;
    77         else
    78             nIndex++;
     75        if (pt.y < 0)
     76            nIndex--;
     77        else
     78            nIndex++;
    7979
    80         dwScrollTime = GetTickCount ();
     80        dwScrollTime = GetTickCount ();
    8181
    82         if ((dwScrollTime - dwLastScrollTime) < 200)
    83             return -1;
     82        if ((dwScrollTime - dwLastScrollTime) < 200)
     83            return -1;
    8484
    85         dwLastScrollTime = dwScrollTime;
     85        dwLastScrollTime = dwScrollTime;
    8686
    87         SendMessageA (hwndLB, LB_SETTOPINDEX, (WPARAM)nIndex, 0);
     87        SendMessageA (hwndLB, LB_SETTOPINDEX, (WPARAM)nIndex, 0);
    8888    }
    8989
Note: See TracChangeset for help on using the changeset viewer.