Ignore:
Timestamp:
Nov 9, 1999, 6:09:27 PM (26 years ago)
Author:
cbratschi
Message:

MoveTo fixes

File:
1 edited

Legend:

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

    r1058 r1668  
    1 /* $Id: imagelist.c,v 1.7 1999-09-26 11:01:09 achimha Exp $ */
     1/* $Id: imagelist.c,v 1.8 1999-11-09 17:09:26 cbratschi Exp $ */
    22/*
    33 *  ImageList implementation
     
    242242    {
    243243        /* to obtain a transparent look, background color should be set
    244            to white and foreground color to black when blting the 
     244           to white and foreground color to black when blting the
    245245           monochrome mask. */
    246         oldBkColor = SetBkColor(pimldp->hdcDst, RGB(0xff, 0xff, 0xff)); 
     246        oldBkColor = SetBkColor(pimldp->hdcDst, RGB(0xff, 0xff, 0xff));
    247247        oldFgColor = SetTextColor(pimldp->hdcDst, RGB(0, 0, 0));
    248248
     
    259259            SRCPAINT);
    260260
    261         SetBkColor(pimldp->hdcDst, oldBkColor);
    262         SetTextColor(pimldp->hdcDst, oldFgColor);
     261        SetBkColor(pimldp->hdcDst, oldBkColor);
     262        SetTextColor(pimldp->hdcDst, oldFgColor);
    263263    }
    264264    /* Draw the image when no Background is specified
     
    903903    if (himl->cMaxImage > 0) {
    904904        himl->hbmImage =
    905           CreateBitmap (himl->cx * himl->cMaxImage, himl->cy,
     905          CreateBitmap (himl->cx * himl->cMaxImage, himl->cy,
    906906                        1, himl->uBitsPixel, NULL);
    907         if (himl->hbmImage == 0) {
    908 //          ERR("Error creating image bitmap!\n");
    909             return NULL;
    910         }
     907        if (himl->hbmImage == 0) {
     908//          ERR("Error creating image bitmap!\n");
     909            return NULL;
     910        }
    911911    }
    912912    else
    913913        himl->hbmImage = 0;
    914    
     914
    915915    if ( (himl->cMaxImage > 0) && (himl->flags & ILC_MASK)) {
    916916        himl->hbmMask = CreateBitmap (himl->cx * himl->cMaxImage, himl->cy,
     
    14561456
    14571457    if ((himl == NULL) || (i < 0) || (i >= himl->cCurImage))
    1458         return 0;
     1458        return 0;
    14591459
    14601460    hdcSrc = CreateCompatibleDC(0);
     
    14671467    hOldDstBitmap = (HBITMAP)SelectObject (hdcDst, ii.hbmMask);
    14681468    if (himl->hbmMask) {
    1469         SelectObject (hdcSrc, himl->hbmMask);
    1470         BitBlt (hdcDst, 0, 0, himl->cx, himl->cy,
    1471                   hdcSrc, i * himl->cx, 0, SRCCOPY);
     1469        SelectObject (hdcSrc, himl->hbmMask);
     1470        BitBlt (hdcDst, 0, 0, himl->cx, himl->cy,
     1471                  hdcSrc, i * himl->cx, 0, SRCCOPY);
    14721472    }
    14731473    else
    1474         PatBlt (hdcDst, 0, 0, himl->cx, himl->cy, BLACKNESS);
     1474        PatBlt (hdcDst, 0, 0, himl->cx, himl->cy, BLACKNESS);
    14751475
    14761476    /* draw image*/
     
    14791479    SelectObject (hdcDst, ii.hbmColor);
    14801480    BitBlt (hdcDst, 0, 0, himl->cx, himl->cy,
    1481               hdcSrc, i * himl->cx, 0, SRCCOPY);
     1481              hdcSrc, i * himl->cx, 0, SRCCOPY);
    14821482
    14831483    /*
     
    21362136
    21372137    hBestFitIcon = CopyImage(
    2138         hIcon, IMAGE_ICON, 
    2139         himl->cx, himl->cy, 
     2138        hIcon, IMAGE_ICON,
     2139        himl->cx, himl->cy,
    21402140        LR_COPYFROMRESOURCE);
    21412141
     
    21852185
    21862186    if(hBestFitIcon)
    2187         DestroyIcon(hBestFitIcon);
     2187        DestroyIcon(hBestFitIcon);
    21882188    if (hdcImageList)
    21892189        DeleteDC (hdcImageList);
Note: See TracChangeset for help on using the changeset viewer.