Changeset 3585 for trunk/src/comctl32/toolbar.cpp
- Timestamp:
- May 22, 2000, 7:25:13 PM (25 years ago)
- 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 sandervlExp $ */1 /* $Id: toolbar.cpp,v 1.6 2000-05-22 17:25:12 cbratschi Exp $ */ 2 2 /* 3 3 * Toolbar control … … 29 29 30 30 /* 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) 38 33 */ 39 34 … … 1600 1595 return -1; 1601 1596 1602 //TRACE ("adding %d bitmaps!\n", nButtons);1597 //TRACE ("adding %d bitmaps!\n", nButtons); 1603 1598 } 1604 1599 1605 1600 if (!(infoPtr->himlDef)) { 1606 1601 /* 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); 1612 1608 infoPtr->himlInt = infoPtr->himlDef; 1613 1609 } … … 3462 3458 TOOLBAR_INFO *infoPtr = TOOLBAR_GetInfoPtr (hwnd); 3463 3459 3464 /* delete tooltip control */3465 if (infoPtr->hwndToolTip)3466 DestroyWindow (infoPtr->hwndToolTip);3467 3468 3460 /* delete button data */ 3469 3461 if (infoPtr->buttons) … … 3472 3464 3473 3465 //SvL: Check pointers 3474 for (x = 0;x < infoPtr->nNumButtons;x++) 3475 3476 3466 for (x = 0;x < infoPtr->nNumButtons;x++) 3467 if(infoPtr->buttons[x].pszName) 3468 COMCTL32_Free(infoPtr->buttons[x].pszName); 3477 3469 3478 3470 COMCTL32_Free(infoPtr->buttons);
Note:
See TracChangeset
for help on using the changeset viewer.