Ignore:
Timestamp:
Jul 4, 2001, 11:55:18 AM (24 years ago)
Author:
sandervl
Message:

add icon to PM tasklist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/winicon.cpp

    r5968 r6168  
    1 /* $Id: winicon.cpp,v 1.24 2001-06-11 20:08:26 sandervl Exp $ */
     1/* $Id: winicon.cpp,v 1.25 2001-07-04 09:55:18 sandervl Exp $ */
    22/*
    33 * Win32 Icon Code for OS/2
     
    209209    dprintf(("USER32:  CopyIcon %x", hIcon));
    210210    return CURSORICON_Copy( hIcon );
     211}
     212//******************************************************************************
     213//******************************************************************************
     214HICON WIN32API GetOS2Icon(HICON hIcon)
     215{
     216    CURSORICONINFO  *ciconinfo;
     217
     218    ciconinfo = (CURSORICONINFO *)GlobalLock((HGLOBAL)hIcon);
     219    if (!ciconinfo)
     220        return 0;
     221    HICON hOS2Icon = ciconinfo->hColorBmp;
     222    GlobalUnlock(hIcon);
     223    return hOS2Icon;
    211224}
    212225/**********************************************************************
     
    10741087            GetBitmapBits( hXorBits, sizeXor, (char *)(info + 1) + sizeAnd);
    10751088        }
    1076         if(!bIcon) {
    1077             info->hColorBmp = OSLibWinCreateCursor(info, (char *)(info + 1), (LPBITMAP_W)&bmpAnd, (char *)(info + 1) + sizeAnd, (LPBITMAP_W)&bmpXor);
    1078             dprintf(("Create cursor %x with OS/2 pointer handle %x", hObj, info->hColorBmp));
    1079         }
     1089        info->hColorBmp = OSLibWinCreatePointer(info, (char *)(info + 1), (LPBITMAP_W)&bmpAnd, (char *)(info + 1) + sizeAnd, (LPBITMAP_W)&bmpXor, bIcon == FALSE);
     1090        dprintf(("Create cursor/icon %x with OS/2 pointer handle %x", hObj, info->hColorBmp));
    10801091        GlobalUnlock( hObj );
    10811092    }
Note: See TracChangeset for help on using the changeset viewer.