Ignore:
Timestamp:
Aug 14, 1999, 6:13:16 PM (26 years ago)
Author:
cbratschi
Message:

wine-990731 update

File:
1 edited

Legend:

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

    r371 r496  
    1 /* $Id: treeview.c,v 1.9 1999-07-23 15:54:34 cbratschi Exp $ */
     1/* $Id: treeview.c,v 1.10 1999-08-14 16:13:16 cbratschi Exp $ */
    22/* Treeview control
    33 *
     
    4646#include "wingdi.h"
    4747#include "commctrl.h"
     48#include "comctl32.h"
    4849#include "treeview.h"
    4950
     
    460461
    461462static LRESULT
     463TREEVIEW_GetLineColor (HWND hwnd, WPARAM wParam, LPARAM lParam)
     464{
     465  TREEVIEW_INFO *infoPtr = TREEVIEW_GetInfoPtr(hwnd);
     466
     467  //TRACE("\n");
     468  return (LRESULT) infoPtr->clrLine;
     469}
     470
     471static LRESULT
     472TREEVIEW_SetLineColor (HWND hwnd, WPARAM wParam, LPARAM lParam)
     473{
     474  TREEVIEW_INFO *infoPtr = TREEVIEW_GetInfoPtr(hwnd);
     475  COLORREF prevColor=infoPtr->clrLine;
     476
     477  //TRACE("\n");
     478  infoPtr->clrLine=(COLORREF) lParam;
     479  return (LRESULT) prevColor;
     480}
     481
     482static LRESULT
    462483TREEVIEW_SetTextColor (HWND hwnd, WPARAM wParam, LPARAM lParam)
    463484{
     
    510531{
    511532  TREEVIEW_INFO *infoPtr = TREEVIEW_GetInfoPtr(hwnd);
    512 
     533  DWORD dwStyle = GetWindowLongA(hwnd,GWL_STYLE);
    513534  INT   center,xpos,cx,cy, cditem, drawmode;
    514535  HFONT hOldFont;
     
    523544
    524545  cditem=0;
     546  //TRACE ("cdmode:%x\n",infoPtr->cdmode);
    525547  if (infoPtr->cdmode & CDRF_NOTIFYITEMDRAW) {
    526548                drawmode=CDDS_ITEMPREPAINT;
    527549
    528550                if (infoPtr->cdmode & CDRF_NOTIFYSUBITEMDRAW)
    529       drawmode|=CDDS_SUBITEM;
     551                  drawmode|=CDDS_SUBITEM;
    530552
    531553                cditem=TREEVIEW_SendCustomDrawItemNotify (hwnd, hdc, wineItem, drawmode);
     
    547569   * Display the tree hierarchy
    548570   */
    549   if ( GetWindowLongA( hwnd, GWL_STYLE) & TVS_HASLINES)
     571  if ( dwStyle & TVS_HASLINES)
    550572  {
    551573    /*
     
    557579     * points[2] is attached to the parent or the up sibling
    558580     */
    559     if ( GetWindowLongA( hwnd, GWL_STYLE) & TVS_LINESATROOT)
     581    if ( dwStyle & TVS_LINESATROOT)
    560582    {
    561583      TREEVIEW_ITEM *upNode    = NULL;
     
    598620
    599621      /*
    600        * Get a doted pen
     622       * Get a dotted pen
    601623       */
    602       hnewPen = CreatePen(PS_DOT, 0, GetSysColor(COLOR_WINDOWTEXT) );
     624      hnewPen = CreatePen(PS_DOT, 0, infoPtr->clrLine);
    603625      hOldPen = SelectObject( hdc, hnewPen );
    604626
     
    619641    xpos+=(5*wineItem->iLevel);
    620642
    621   if (( GetWindowLongA( hwnd, GWL_STYLE) & TVS_HASBUTTONS) &&
    622       ( GetWindowLongA( hwnd, GWL_STYLE) & TVS_HASLINES))
     643  if (( dwStyle & TVS_HASBUTTONS) && ( dwStyle & TVS_HASLINES))
    623644  {
    624645          if ( (wineItem->cChildren) ||
     
    876897  if (tvItem->mask & TVIF_INTEGRAL) {
    877898        wineItem->iIntegral=tvItem->iIntegral;
    878 //        FIXME (treeview," TVIF_INTEGRAL not supported yet\n");
    879899  }
    880900
     
    909929}
    910930
    911 
    912 
    913 
     931static LRESULT
     932TREEVIEW_GetItemState (HWND hwnd, WPARAM wParam, LPARAM lParam)
     933
     934{
     935    TREEVIEW_INFO *infoPtr = TREEVIEW_GetInfoPtr(hwnd);
     936        TREEVIEW_ITEM *wineItem;
     937
     938        wineItem = TREEVIEW_ValidItem (infoPtr, (HTREEITEM)wParam);
     939        if (!wineItem) return 0;
     940
     941        return (wineItem->state & lParam);
     942}
    914943
    915944static void
     
    11441173   if (tvItem->mask & TVIF_INTEGRAL) {
    11451174        tvItem->iIntegral=wineItem->iIntegral;
    1146 //              FIXME (treeview," TVIF_INTEGRAL not supported yet\n");
    11471175   }
    11481176
     
    13821410
    13831411/***************************************************************************
     1412 * Treeview native sort routine: sort on item text.
     1413 */
     1414static INT WINAPI TREEVIEW_SortOnName (
     1415  LPVOID first,
     1416  LPVOID second,
     1417  LPARAM tvInfoPtr)
     1418{
     1419  HWND hwnd=(HWND) tvInfoPtr;
     1420  char *txt1, *txt2;
     1421  TREEVIEW_ITEM *item;
     1422
     1423
     1424  item=(TREEVIEW_ITEM *) first;
     1425  if (item->pszText==LPSTR_TEXTCALLBACKA)  {
     1426         TREEVIEW_SendDispInfoNotify (hwnd, item, TVN_GETDISPINFO, TVIF_TEXT);
     1427        }
     1428  txt1=item->pszText;
     1429
     1430  item=(TREEVIEW_ITEM *) second;
     1431  if (item->pszText==LPSTR_TEXTCALLBACKA)  {
     1432         TREEVIEW_SendDispInfoNotify (hwnd, item, TVN_GETDISPINFO, TVIF_TEXT);
     1433        }
     1434  txt2=item->pszText;
     1435
     1436  return -strcmp (txt1,txt2);
     1437}
     1438
     1439/***************************************************************************
    13841440 * Setup the treeview structure with regards of the sort method
    13851441 * and sort the children of the TV item specified in lParam
     1442 * fRecurse: currently unused. Should be zero.
     1443 * parent: if pSort!=NULL, should equal pSort->hParent.
     1444 *         otherwise, item which child items are to be sorted.
     1445 * pSort:  sort method info. if NULL, sort on item text.
     1446 *         if non-NULL, sort on item's lParam content, and let the
     1447 *         application decide what that means. See also TVM_SORTCHILDRENCB.
    13861448 */
    1387 LRESULT WINAPI TREEVIEW_SortChildrenCB(
     1449
     1450static LRESULT WINAPI TREEVIEW_Sort (
    13881451  HWND   hwnd,
    1389   WPARAM wParam,
    1390   LPARAM lParam)
     1452  BOOL   fRecurse,
     1453  HTREEITEM parent,
     1454  LPTVSORTCB pSort
     1455  )
    13911456{
    13921457  TREEVIEW_INFO *infoPtr = TREEVIEW_GetInfoPtr(hwnd);
     
    13941459
    13951460  /* Obtain the TVSORTBC struct */
    1396   infoPtr->pCallBackSort = (LPTVSORTCB)lParam;
     1461  infoPtr->pCallBackSort = pSort;
     1462
     1463        /* undocumented feature: TVI_ROOT means `sort the whole tree' */
     1464
     1465  if (parent==TVI_ROOT)
     1466    parent=infoPtr->TopRootItem;
    13971467
    13981468  /* Check for a valid handle to the parent item */
    1399   if (!TREEVIEW_ValidItem(infoPtr, infoPtr->pCallBackSort->hParent))
     1469  if (!TREEVIEW_ValidItem(infoPtr, parent))
    14001470  {
    1401 //    ERR ("invalid item hParent=%d\n", (INT)infoPtr->pCallBackSort->hParent);
     1471    ERR ("invalid item hParent=%x\n", (INT)parent);
    14021472    return FALSE;
    14031473  }
    14041474
    14051475  /* Obtain the parent node to sort */
    1406   sortMe = &infoPtr->items[ (INT)infoPtr->pCallBackSort->hParent ];
     1476  sortMe = &infoPtr->items[ (INT)parent ];
    14071477
    14081478  /* Make sure there is something to sort */
     
    14341504
    14351505    /* let DPA perform the sort activity */
    1436     DPA_Sort(
    1437       sortList,                  /* what  */
    1438       TREEVIEW_CallBackCompare,  /* how   */
    1439       hwnd);                     /* owner */
     1506        if (pSort)
     1507        DPA_Sort(
     1508                sortList,                  /* what  */
     1509                TREEVIEW_CallBackCompare,  /* how   */
     1510                hwnd);                     /* owner */
     1511        else
     1512                DPA_Sort (
     1513                        sortList,                  /* what  */
     1514                TREEVIEW_SortOnName,       /* how   */
     1515                        hwnd);                     /* owner */
    14401516
    14411517    /*
     
    14761552  return FALSE;
    14771553}
     1554
     1555/***************************************************************************
     1556 * Setup the treeview structure with regards of the sort method
     1557 * and sort the children of the TV item specified in lParam
     1558 */
     1559static LRESULT WINAPI TREEVIEW_SortChildrenCB(
     1560  HWND   hwnd,
     1561  WPARAM wParam,
     1562  LPARAM lParam
     1563  )
     1564{
     1565 LPTVSORTCB pSort=(LPTVSORTCB) lParam;
     1566
     1567 return TREEVIEW_Sort (hwnd, wParam, pSort->hParent, pSort);
     1568}
     1569
     1570
     1571/***************************************************************************
     1572 * Sort the children of the TV item specified in lParam.
     1573 */
     1574static LRESULT WINAPI TREEVIEW_SortChildren (
     1575  HWND   hwnd,
     1576  WPARAM wParam,
     1577  LPARAM lParam)
     1578{
     1579 return TREEVIEW_Sort (hwnd, (BOOL) wParam, (HTREEITEM) lParam, NULL);
     1580}
     1581
    14781582
    14791583int ffs(int mask)
     
    17791883
    17801884
    1781 
     1885static LRESULT
     1886TREEVIEW_InsertItemW(HWND hwnd, WPARAM wParam, LPARAM lParam)
     1887{
     1888    TVINSERTSTRUCTW *tvisW;
     1889    TVINSERTSTRUCTA tvisA;
     1890    LRESULT lRes;
     1891
     1892    tvisW = (LPTVINSERTSTRUCTW)lParam;
     1893
     1894    tvisA.hParent = tvisW->hParent;
     1895    tvisA.hInsertAfter = tvisW->hInsertAfter;
     1896
     1897    tvisA.DUMMYUNIONNAME.item.mask           = tvisW->DUMMYUNIONNAME.item.mask;
     1898    tvisA.DUMMYUNIONNAME.item.hItem          = tvisW->DUMMYUNIONNAME.item.hItem;
     1899    tvisA.DUMMYUNIONNAME.item.state          = tvisW->DUMMYUNIONNAME.item.state;
     1900    tvisA.DUMMYUNIONNAME.item.stateMask      = tvisW->DUMMYUNIONNAME.item.stateMask;
     1901    tvisA.DUMMYUNIONNAME.item.cchTextMax     = tvisW->DUMMYUNIONNAME.item.cchTextMax;
     1902
     1903    if(tvisW->DUMMYUNIONNAME.item.pszText)
     1904    {
     1905        if (tvisW->DUMMYUNIONNAME.item.pszText!=LPSTR_TEXTCALLBACKW)
     1906        {
     1907            int len = lstrlenW (tvisW->DUMMYUNIONNAME.item.pszText)+1;
     1908            tvisA.DUMMYUNIONNAME.item.pszText = COMCTL32_Alloc (len);
     1909            lstrcpyWtoA (tvisA.DUMMYUNIONNAME.item.pszText,
     1910                         tvisW->DUMMYUNIONNAME.item.pszText );
     1911        }
     1912        else
     1913        {
     1914            tvisA.DUMMYUNIONNAME.item.pszText = LPSTR_TEXTCALLBACKA;
     1915            tvisA.DUMMYUNIONNAME.item.cchTextMax = 0;
     1916        }
     1917    }
     1918
     1919    tvisA.DUMMYUNIONNAME.item.iImage         = tvisW->DUMMYUNIONNAME.item.iImage;
     1920    tvisA.DUMMYUNIONNAME.item.iSelectedImage = tvisW->DUMMYUNIONNAME.item.iSelectedImage;
     1921    tvisA.DUMMYUNIONNAME.item.cChildren      = tvisW->DUMMYUNIONNAME.item.cChildren;
     1922    tvisA.DUMMYUNIONNAME.item.lParam         = tvisW->DUMMYUNIONNAME.item.lParam;
     1923
     1924    lRes = TREEVIEW_InsertItemA(hwnd,wParam,(LPARAM)&tvisA);
     1925
     1926    if (tvisA.DUMMYUNIONNAME.item.pszText!=LPSTR_TEXTCALLBACKA)
     1927    {
     1928        COMCTL32_Free(tvisA.DUMMYUNIONNAME.item.pszText);
     1929    }
     1930
     1931    return lRes;
     1932
     1933}
    17821934
    17831935
     
    18582010
    18592011
    1860 LRESULT CALLBACK
     2012static LRESULT CALLBACK
    18612013TREEVIEW_GetEditControl (HWND hwnd)
    18622014
     
    19792131TREEVIEW_StyleChanged (HWND hwnd, WPARAM wParam, LPARAM lParam)
    19802132{
    1981   LPSTYLESTRUCT lpss=(LPSTYLESTRUCT) lParam;
    1982 
    19832133//  TRACE (treeview,"(%x %lx)\n",wParam,lParam);
    19842134
    1985   if (wParam & (GWL_STYLE))
    1986          SetWindowLongA( hwnd, GWL_STYLE, lpss->styleNew);
    1987   if (wParam & (GWL_EXSTYLE))
    1988          SetWindowLongA( hwnd, GWL_STYLE, lpss->styleNew);
     2135  TREEVIEW_Refresh(hwnd);
    19892136
    19902137  return 0;
     
    20222169    infoPtr->clrBk = GetSysColor (COLOR_WINDOW);
    20232170    infoPtr->clrText = GetSysColor (COLOR_BTNTEXT);
     2171    infoPtr->clrLine = GetSysColor (COLOR_WINDOWTEXT);
    20242172    infoPtr->cy = 0;
    20252173    infoPtr->cx = 0;
     
    20392187    infoPtr->dropItem=0;
    20402188    infoPtr->pCallBackSort=NULL;
     2189    infoPtr->uScrollTime = 300; /* milliseconds */
    20412190
    20422191/*
     
    26962845
    26972846
    2698 LRESULT
     2847static LRESULT
    26992848TREEVIEW_LButtonDoubleClick (HWND hwnd, WPARAM wParam, LPARAM lParam)
    27002849{
     
    33583507}
    33593508
    3360 
    3361 LRESULT WINAPI
     3509static LRESULT
     3510TREEVIEW_GetScrollTime (HWND hwnd)
     3511{
     3512  TREEVIEW_INFO *infoPtr = TREEVIEW_GetInfoPtr(hwnd);
     3513  return infoPtr->uScrollTime;
     3514}
     3515
     3516static LRESULT
     3517TREEVIEW_SetScrollTime (HWND hwnd, UINT uScrollTime)
     3518{
     3519  TREEVIEW_INFO *infoPtr = TREEVIEW_GetInfoPtr(hwnd);
     3520  UINT uOldScrollTime = infoPtr->uScrollTime;
     3521  infoPtr->uScrollTime = min (uScrollTime, 100);
     3522  return uOldScrollTime;
     3523}
     3524
     3525static LRESULT WINAPI
    33623526TREEVIEW_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
    33633527{
     
    33673531
    33683532        case TVM_INSERTITEMW:
    3369 //                      FIXME (treeview, "Unimplemented msg TVM_INSERTITEM32W\n");
    3370                 return 0;
     3533          return TREEVIEW_InsertItemW(hwnd,wParam,lParam);
    33713534
    33723535        case TVM_DELETEITEM:
     
    34043567
    34053568        case TVM_GETITEMW:
    3406 //                      FIXME (treeview, "Unimplemented msg TVM_GETITEM32W\n");
     3569//                      FIXME (treeview, "Unimplemented msg TVM_GETITEMW\n");
    34073570                return 0;
    34083571
     
    34153578
    34163579        case TVM_EDITLABELA:
    3417 //                      FIXME (treeview, "Unimplemented msg TVM_EDITLABEL32A \n");
     3580//                      FIXME (treeview, "Unimplemented msg TVM_EDITLABELA \n");
    34183581                return 0;
    34193582
    34203583        case TVM_EDITLABELW:
    3421 //                      FIXME (treeview, "Unimplemented msg TVM_EDITLABEL32W \n");
     3584//                      FIXME (treeview, "Unimplemented msg TVM_EDITLABELW \n");
    34223585                return 0;
    34233586
     
    34353598
    34363599        case TVM_SORTCHILDREN:
    3437 //                      FIXME (treeview, "Unimplemented msg TVM_SORTCHILDREN\n");
    3438                 return 0;
     3600                return TREEVIEW_SortChildrenCB(hwnd, wParam, lParam);
    34393601
    34403602        case TVM_ENSUREVISIBLE:
     
    34493611
    34503612        case TVM_GETISEARCHSTRINGA:
    3451 //                      FIXME (treeview, "Unimplemented msg TVM_GETISEARCHSTRING32A\n");
     3613//                      FIXME (treeview, "Unimplemented msg TVM_GETISEARCHSTRINGA\n");
    34523614                return 0;
    34533615
    34543616        case TVM_GETISEARCHSTRINGW:
    3455 //                      FIXME (treeview, "Unimplemented msg TVM_GETISEARCHSTRING32W\n");
     3617//                      FIXME (treeview, "Unimplemented msg TVM_GETISEARCHSTRINGW\n");
    34563618                return 0;
    34573619
     
    34853647
    34863648        case TVM_SETSCROLLTIME:
    3487 //                      FIXME (treeview, "Unimplemented msg TVM_SETSCROLLTIME\n");
    3488                 return 0;
     3649                return TREEVIEW_SetScrollTime (hwnd, (UINT)wParam);
    34893650
    34903651        case TVM_GETSCROLLTIME:
    3491 //                      FIXME (treeview, "Unimplemented msg TVM_GETSCROLLTIME\n");
    3492                 return 0;
     3652                return TREEVIEW_GetScrollTime (hwnd);
     3653
     3654        case TVM_GETITEMSTATE:
     3655                return TREEVIEW_GetItemState (hwnd,wParam, lParam);
     3656
     3657        case TVM_GETLINECOLOR:
     3658                return TREEVIEW_GetLineColor (hwnd,wParam, lParam);
     3659
     3660        case TVM_SETLINECOLOR:
     3661                return TREEVIEW_SetLineColor (hwnd,wParam, lParam);
    34933662
    34943663        case TVM_SETINSERTMARKCOLOR:
     
    35043673                return 0;
    35053674
    3506                 case WM_COMMAND:
    3507                          return TREEVIEW_Command (hwnd, wParam, lParam);
    3508 
    3509                 case WM_CREATE:
    3510                         return TREEVIEW_Create (hwnd, wParam, lParam);
    3511 
    3512                 case WM_DESTROY:
    3513                         return TREEVIEW_Destroy (hwnd);
    3514 
    3515 /*              case WM_ENABLE: */
    3516 
    3517                 case WM_ERASEBKGND:
    3518                         return TREEVIEW_EraseBackground (hwnd, wParam, lParam);
    3519 
    3520                 case WM_GETDLGCODE:
     3675        case WM_COMMAND:
     3676                return TREEVIEW_Command (hwnd, wParam, lParam);
     3677
     3678        case WM_CREATE:
     3679                return TREEVIEW_Create (hwnd, wParam, lParam);
     3680
     3681        case WM_DESTROY:
     3682                return TREEVIEW_Destroy (hwnd);
     3683
     3684/*      case WM_ENABLE: */
     3685
     3686        case WM_ERASEBKGND:
     3687                return TREEVIEW_EraseBackground (hwnd, wParam, lParam);
     3688
     3689        case WM_GETDLGCODE:
    35213690                return DLGC_WANTARROWS | DLGC_WANTCHARS;
    35223691
    3523                 case WM_PAINT:
     3692        case WM_PAINT:
    35243693                return TREEVIEW_Paint (hwnd, wParam, lParam);
    35253694
    3526                 case WM_GETFONT:
     3695        case WM_GETFONT:
    35273696                return TREEVIEW_GetFont (hwnd, wParam, lParam);
    35283697
    3529                 case WM_SETFONT:
     3698        case WM_SETFONT:
    35303699                return TREEVIEW_SetFont (hwnd, wParam, lParam);
    35313700
    3532                 case WM_KEYDOWN:
    3533                         return TREEVIEW_KeyDown (hwnd, wParam, lParam);
    3534 
    3535 
    3536                 case WM_SETFOCUS:
    3537                         return TREEVIEW_SetFocus (hwnd, wParam, lParam);
    3538 
    3539                 case WM_KILLFOCUS:
    3540                         return TREEVIEW_KillFocus (hwnd, wParam, lParam);
    3541 
    3542 
    3543                 case WM_LBUTTONDOWN:
    3544                         return TREEVIEW_LButtonDown (hwnd, wParam, lParam);
    3545 
    3546                 case WM_LBUTTONUP:
    3547                         return TREEVIEW_LButtonUp (hwnd, wParam, lParam);
    3548 
    3549                 case WM_LBUTTONDBLCLK:
    3550                         return TREEVIEW_LButtonDoubleClick (hwnd, wParam, lParam);
    3551 
    3552                 case WM_RBUTTONDOWN:
    3553                         return TREEVIEW_RButtonDown (hwnd, wParam, lParam);
    3554 
    3555                 case WM_RBUTTONUP:
    3556                         return TREEVIEW_RButtonUp (hwnd, wParam, lParam);
    3557 
    3558                 case WM_MOUSEMOVE:
    3559                         return TREEVIEW_MouseMove (hwnd, wParam, lParam);
    3560 
    3561 
    3562 /*              case WM_SYSCOLORCHANGE: */
    3563                 case WM_STYLECHANGED:
    3564                         return TREEVIEW_StyleChanged (hwnd, wParam, lParam);
    3565 
    3566 /*              case WM_SETREDRAW: */
    3567 
    3568                 case WM_TIMER:
    3569                         return TREEVIEW_HandleTimer (hwnd, wParam, lParam);
    3570 
    3571                 case WM_SIZE:
    3572                         return TREEVIEW_Size (hwnd, wParam,lParam);
    3573 
    3574                 case WM_HSCROLL:
    3575                         return TREEVIEW_HScroll (hwnd, wParam, lParam);
    3576                 case WM_VSCROLL:
    3577                         return TREEVIEW_VScroll (hwnd, wParam, lParam);
    3578 
    3579                 case WM_DRAWITEM:
    3580 //                      printf ("drawItem\n");
    3581                         return DefWindowProcA (hwnd, uMsg, wParam, lParam);
    3582 
    3583                 default:
    3584 //                if (uMsg >= WM_USER)
    3585 //              FIXME (treeview, "Unknown msg %04x wp=%08x lp=%08lx\n",
     3701        case WM_KEYDOWN:
     3702                return TREEVIEW_KeyDown (hwnd, wParam, lParam);
     3703
     3704        case WM_SETFOCUS:
     3705                return TREEVIEW_SetFocus (hwnd, wParam, lParam);
     3706
     3707        case WM_KILLFOCUS:
     3708                return TREEVIEW_KillFocus (hwnd, wParam, lParam);
     3709
     3710        case WM_LBUTTONDOWN:
     3711                return TREEVIEW_LButtonDown (hwnd, wParam, lParam);
     3712
     3713        case WM_LBUTTONUP:
     3714                return TREEVIEW_LButtonUp (hwnd, wParam, lParam);
     3715
     3716        case WM_LBUTTONDBLCLK:
     3717                return TREEVIEW_LButtonDoubleClick (hwnd, wParam, lParam);
     3718
     3719        case WM_RBUTTONDOWN:
     3720                return TREEVIEW_RButtonDown (hwnd, wParam, lParam);
     3721
     3722        case WM_RBUTTONUP:
     3723                return TREEVIEW_RButtonUp (hwnd, wParam, lParam);
     3724
     3725        case WM_MOUSEMOVE:
     3726                return TREEVIEW_MouseMove (hwnd, wParam, lParam);
     3727
     3728        case WM_STYLECHANGED:
     3729                return TREEVIEW_StyleChanged (hwnd, wParam, lParam);
     3730
     3731/*      case WM_SYSCOLORCHANGE: */
     3732/*      case WM_SETREDRAW: */
     3733
     3734        case WM_TIMER:
     3735                return TREEVIEW_HandleTimer (hwnd, wParam, lParam);
     3736
     3737        case WM_SIZE:
     3738                return TREEVIEW_Size (hwnd, wParam,lParam);
     3739
     3740        case WM_HSCROLL:
     3741                return TREEVIEW_HScroll (hwnd, wParam, lParam);
     3742
     3743        case WM_VSCROLL:
     3744                return TREEVIEW_VScroll (hwnd, wParam, lParam);
     3745
     3746        case WM_DRAWITEM:
     3747//              printf ("drawItem\n");
     3748                return DefWindowProcA (hwnd, uMsg, wParam, lParam);
     3749
     3750        default:
     3751//              if (uMsg >= WM_USER)
     3752//                FIXME (treeview, "Unknown msg %04x wp=%08x lp=%08lx\n",
    35863753//                   uMsg, wParam, lParam);
    35873754            return DefWindowProcA (hwnd, uMsg, wParam, lParam);
Note: See TracChangeset for help on using the changeset viewer.