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/oslibwin.cpp

    r6156 r6168  
    1 /* $Id: oslibwin.cpp,v 1.104 2001-07-03 18:33:26 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.105 2001-07-04 09:55:17 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    2121#include <win32type.h>
    2222#include <winconst.h>
     23#include <winuser32.h>
    2324#include "oslibwin.h"
    2425#include "oslibutil.h"
     
    494495BOOL OSLibWinSetIcon(HWND hwnd, HANDLE hIcon)
    495496{
    496     return (BOOL) WinSendMsg(hwnd, WM_SETICON, (MPARAM)hIcon, 0);
     497    ULONG hIconOS2 = GetOS2Icon(hIcon);
     498    if(hIconOS2)
     499       return (BOOL) WinSendMsg(hwnd, WM_SETICON, (MPARAM)hIconOS2, 0);
     500    return FALSE;
    497501}
    498502//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.