Changeset 10352 for trunk/src


Ignore:
Timestamp:
Dec 1, 2003, 2:32:44 PM (22 years ago)
Author:
sandervl
Message:

KOM: Listbox: added index and length conversion between ANSI and UNICODE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/listbox.c

    r10216 r10352  
    26252625        if ((INT)wParam >= descr->nb_items || (INT)wParam < 0)
    26262626            return LB_ERR;
     2627#ifdef __WIN32OS2__
     2628        if( HAS_STRINGS( descr ))
     2629        {
     2630            LRESULT result = strlenW(descr->items[wParam].str);
     2631
     2632            if( !unicode )
     2633                result = WideCharToMultiByte( CP_ACP, 0, descr->items[ wParam ].str, result, 0, 0, 0, 0 );
     2634
     2635            return result;
     2636        }
     2637
     2638        return sizeof( DWORD );
     2639#else
    26272640        return (HAS_STRINGS(descr) ? strlenW(descr->items[wParam].str)
    26282641                                   : sizeof(DWORD));
     2642#endif
    26292643
    26302644    case LB_GETCURSEL16:
Note: See TracChangeset for help on using the changeset viewer.