Ignore:
Timestamp:
Mar 21, 2000, 6:30:46 PM (25 years ago)
Author:
cbratschi
Message:

bug fixes and improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/comboex.cpp

    r2895 r3182  
    1 /* $Id: comboex.cpp,v 1.2 2000-02-25 17:00:15 cbratschi Exp $ */
     1/* $Id: comboex.cpp,v 1.3 2000-03-21 17:30:40 cbratschi Exp $ */
    22/*
    33 * ComboBoxEx control
     
    3939    COMBOEX_INFO *infoPtr = COMBOEX_GetInfoPtr (hwnd);
    4040
    41 //    TRACE (comboex, "\n");
    42 
    4341    return (LRESULT)infoPtr->hwndCombo;
    4442}
     
    5351        return 0;
    5452
    55 //    TRACE (comboex, "-- 0x%x\n", GetDlgItem (infoPtr->hwndCombo, ID_CB_EDIT));
    56 
    5753    return (LRESULT)GetDlgItem (infoPtr->hwndCombo, ID_CB_EDIT);
    5854}
     
    7369    COMBOEX_INFO *infoPtr = COMBOEX_GetInfoPtr (hwnd);
    7470
    75 //    TRACE (comboex, "(0x%08x 0x%08lx)\n", wParam, lParam);
    76 
    7771    return (LRESULT)infoPtr->himl;
    7872}
     
    8175
    8276
    83 static LRESULT
    84 COMBOEX_InsertItemA (HWND hwnd, WPARAM wParam, LPARAM lParam)
     77static LRESULT COMBOEX_InsertItem(HWND hwnd,WPARAM wParam,LPARAM lParam,BOOL unicode)
    8578{
    8679    /* COMBOEX_INFO *infoPtr = COMBOEX_GetInfoPtr (hwnd); */
     
    9891    COMBOEX_INFO *infoPtr = COMBOEX_GetInfoPtr (hwnd);
    9992    DWORD dwTemp;
    100 
    101 //    TRACE (comboex, "(0x%08x 0x%08lx)\n", wParam, lParam);
    10293
    10394    dwTemp = infoPtr->dwExtStyle;
     
    121112    HIMAGELIST himlTemp;
    122113
    123 //    TRACE (comboex, "(0x%08x 0x%08lx)\n", wParam, lParam);
    124 
    125114    himlTemp = infoPtr->himl;
    126115    infoPtr->himl = (HIMAGELIST)lParam;
     
    130119
    131120
    132 static LRESULT
    133 COMBOEX_SetItemA (HWND hwnd, WPARAM wParam, LPARAM lParam)
     121static LRESULT COMBOEX_SetItem(HWND hwnd,WPARAM wParam,LPARAM lParam,BOOL unicode)
    134122{
    135123    /* COMBOEX_INFO *infoPtr = COMBOEX_GetInfoPtr (hwnd); */
     
    139127    return TRUE;
    140128}
    141 
    142 
    143 /* << COMBOEX_SetItem32W >> */
    144129
    145130
     
    242227/*      case CBEM_GETITEM32A:
    243228        case CBEM_GETITEM32W:
    244         case CBEM_GETUNICODEFORMAT:
    245229        case CBEM_HASEDITCHANGED:
    246230*/
    247231
    248232        case CBEM_INSERTITEMA:
    249             return COMBOEX_InsertItemA (hwnd, wParam, lParam);
    250 
    251 /*      case CBEM_INSERTITEM32W: */
     233            return COMBOEX_InsertItem(hwnd,wParam,lParam,FALSE);
     234
     235        case CBEM_INSERTITEMW:
     236            return COMBOEX_InsertItem(hwnd,wParam,lParam,TRUE);
    252237
    253238        case CBEM_SETEXTENDEDSTYLE:
     
    258243
    259244        case CBEM_SETITEMA:
    260             return COMBOEX_SetItemA (hwnd, wParam, lParam);
    261 
    262 /*      case CBEM_SETITEM32W:
    263         case CBEM_SETUNICODEFORMAT:
    264 */
     245            return COMBOEX_SetItem(hwnd,wParam,lParam,FALSE);
     246
     247        case CBEM_SETITEMW:
     248            return COMBOEX_SetItem(hwnd,wParam,lParam,TRUE);
    265249
    266250        case CB_DELETESTRING:
Note: See TracChangeset for help on using the changeset viewer.