Ignore:
Timestamp:
Feb 6, 2002, 6:23:21 PM (24 years ago)
Author:
sandervl
Message:

Wine updates

File:
1 edited

Legend:

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

    r7726 r7815  
    5252 *  mod 4
    5353 *   1. Implemented CBN_SELCHANGE, CBN_KILLFOCUS, and CBN_SELENDOK.
    54  *   2. Fix putting text in CBEN_ENDEDIT notifys for CBN_DROPDOWN case.
     54 *   2. Fix putting text in CBEN_ENDEDIT notifies for CBN_DROPDOWN case.
    5555 *   3. Lock image selected status to focus state of edit control if
    5656 *      edit control exists. Mimics native actions.
     
    8787#include "debugtools.h"
    8888#include "wine/unicode.h"
    89 #ifdef __WIN32OS2__
    90 #include "ccbase.h"
    91 #define inline
    92 #endif
    9389
    9490DEFAULT_DEBUG_CHANNEL(comboex);
     
    116112typedef struct
    117113{
    118 #ifdef __WIN32OS2__
    119     COMCTL32_HEADER header;
    120 #endif
    121114    HIMAGELIST   himl;
    122115    HWND         hwndSelf;         /* my own hwnd */
     
    128121    INT          selected;         /* index of selected item */
    129122    DWORD        flags;            /* WINE internal flags */
    130 #ifdef __WIN32OS2__
    131123    HFONT        hDefaultFont;
    132 #endif
    133124    HFONT        font;
    134 
    135125    INT          nb_items;         /* Number of items */
    136126    BOOL         bUnicode;        /* TRUE if this window is Unicode   */
     
    543533    COMBOEX_INFO *infoPtr = COMBOEX_GetInfoPtr (hwnd);
    544534
    545     TRACE("-- 0x%p\n", infoPtr->himl);
     535    TRACE("-- %p\n", infoPtr->himl);
    546536
    547537    return (LRESULT)infoPtr->himl;
     
    10991089
    11001090    /* allocate memory for info structure */
    1101 #ifdef __WIN32OS2__
    1102     infoPtr = (COMBOEX_INFO*)initControl(hwnd,sizeof(COMBOEX_INFO));
    1103 #else
    11041091    infoPtr = (COMBOEX_INFO *)COMCTL32_Alloc (sizeof(COMBOEX_INFO));
    1105 #endif
    11061092    if (infoPtr == NULL) {
    11071093        ERR("could not allocate info memory!\n");
     
    12251211        SystemParametersInfoA (SPI_GETICONTITLELOGFONT, sizeof(mylogfont),
    12261212                               &mylogfont, 0);
    1227 #ifdef __WIN32OS2__
    12281213        infoPtr->font = infoPtr->hDefaultFont = CreateFontIndirectA (&mylogfont);
    1229 #else
    1230         infoPtr->font = CreateFontIndirectA (&mylogfont);
    1231 #endif
    12321214    }
    12331215    SendMessageW (infoPtr->hwndCombo, WM_SETFONT, (WPARAM)infoPtr->font, 0);
     
    14601442          dis->CtlType, dis->CtlID, dis->itemID, dis->hwndItem, dis->itemData);
    14611443
    1462     if ((dis->itemID >= infoPtr->nb_items) || (dis->itemID < 0)) return FALSE;
     1444    if (dis->itemID >= infoPtr->nb_items) return FALSE;
    14631445
    14641446    olditem = infoPtr->items;
     
    17701752    }
    17711753
    1772 #ifdef __WIN32OS2__
    1773     //NEVER delete the font object received by WM_SETFONT!
    17741754    if (infoPtr->hDefaultFont) DeleteObject (infoPtr->hDefaultFont);
    1775 #else
    1776     DeleteObject (infoPtr->font);
    1777 #endif
    17781755
    17791756    /* free comboex info data */
     
    24742451                ERR("unknown msg %04x wp=%08x lp=%08lx\n",
    24752452                     uMsg, wParam, lParam);
    2476 #ifdef __WIN32OS2__
    2477             return defComCtl32ProcA (hwnd, uMsg, wParam, lParam);
    2478 #else
    24792453            return DefWindowProcA (hwnd, uMsg, wParam, lParam);
    2480 #endif
    24812454    }
    24822455    return 0;
Note: See TracChangeset for help on using the changeset viewer.