Ignore:
Timestamp:
May 22, 2000, 7:25:13 PM (25 years ago)
Author:
cbratschi
Message:

merged with Corel WINE 20000513, added new DPA_* functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/toolbar.cpp

    r3428 r3585  
    1 /* $Id: toolbar.cpp,v 1.5 2000-04-19 14:47:24 sandervl Exp $ */
     1/* $Id: toolbar.cpp,v 1.6 2000-05-22 17:25:12 cbratschi Exp $ */
    22/*
    33 * Toolbar control
     
    2929
    3030/*
    31  - Corel 20000317 level
    32  - WINE 991212 level
    33 */
    34 
    35 /* CB: Odin32/WINE bugs
    36   - IMAGELIST_Draw draws a line too at the bottom of the bitmap (toolbar.exe)
    37     imagelist uses default size values instead of real bitmap values
     31 - Corel 20000513 level
     32 - (WINE 991212 level)
    3833*/
    3934
     
    16001595            return -1;
    16011596
    1602 //        TRACE ("adding %d bitmaps!\n", nButtons);
     1597        //TRACE ("adding %d bitmaps!\n", nButtons);
    16031598    }
    16041599
    16051600    if (!(infoPtr->himlDef)) {
    16061601        /* create new default image list */
    1607 //        TRACE ("creating default image list!\n");
    1608 
    1609         infoPtr->himlDef =
    1610             ImageList_Create (infoPtr->nBitmapWidth, infoPtr->nBitmapHeight,
    1611                               ILC_COLOR | ILC_MASK, nButtons, 2);
     1602        //TRACE ("creating default image list!\n");
     1603        /* It seems that the image list created is 1 pixel taller than the bitmap height */
     1604//CB: nope, it's otherwise     
     1605        infoPtr->himlDef =
     1606            ImageList_Create (infoPtr->nBitmapWidth, infoPtr->nBitmapHeight-1,
     1607                              ILC_COLOR | ILC_MASK, nButtons, 2);
    16121608        infoPtr->himlInt = infoPtr->himlDef;
    16131609    }
     
    34623458    TOOLBAR_INFO *infoPtr = TOOLBAR_GetInfoPtr (hwnd);
    34633459
    3464     /* delete tooltip control */
    3465     if (infoPtr->hwndToolTip)
    3466         DestroyWindow (infoPtr->hwndToolTip);
    3467 
    34683460    /* delete button data */
    34693461    if (infoPtr->buttons)
     
    34723464
    34733465      //SvL: Check pointers
    3474       for (x = 0;x < infoPtr->nNumButtons;x++) 
    3475         if(infoPtr->buttons[x].pszName)
    3476                 COMCTL32_Free(infoPtr->buttons[x].pszName);
     3466      for (x = 0;x < infoPtr->nNumButtons;x++)
     3467        if(infoPtr->buttons[x].pszName)
     3468                COMCTL32_Free(infoPtr->buttons[x].pszName);
    34773469
    34783470      COMCTL32_Free(infoPtr->buttons);
Note: See TracChangeset for help on using the changeset viewer.