Ignore:
Timestamp:
Oct 8, 1999, 2:10:27 PM (26 years ago)
Author:
cbratschi
Message:

resource and other fixes

File:
1 edited

Legend:

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

    r1096 r1184  
    1 /* $Id: combo.cpp,v 1.2 1999-10-01 10:15:22 sandervl Exp $ */
     1/* $Id: combo.cpp,v 1.3 1999-10-08 12:10:26 cbratschi Exp $ */
    22/*
    33 * Combo controls
     
    5858  if(hDC)
    5959  {
    60     BOOL        bRet = FALSE;
     60    BOOL      bRet = FALSE;
     61    HINSTANCE hinst;
     62
     63    //CB: Open32 hack to load our own bitmap
     64    hinst = LoadLibraryA("USER32.DLL");
    6165    hComboBmp = NativeLoadBitmap(0,MAKEINTRESOURCEA(OBM_COMBO));
     66    FreeLibrary(hinst);
    6267    if(hComboBmp)
    6368    {
     
    532537        lbeStyle |= LBS_DISABLENOSCROLL;
    533538
    534       if( CB_GETTYPE(lphc) == CBS_SIMPLE )      /* child listbox */
     539      if( CB_GETTYPE(lphc) == CBS_SIMPLE )      /* child listbox */
    535540      {
    536         lbeStyle |= WS_CHILD | WS_VISIBLE;
    537 
    538         /*
    539         * In win 95 look n feel, the listbox in the simple combobox has
    540         * the WS_EXCLIENTEDGE style instead of the WS_BORDER style.
    541         */
     541        lbeStyle |= WS_CHILD | WS_VISIBLE;
     542
     543        /*
     544        * In win 95 look n feel, the listbox in the simple combobox has
     545        * the WS_EXCLIENTEDGE style instead of the WS_BORDER style.
     546        */
    542547        lbeStyle   &= ~WS_BORDER;
    543548        lbeExStyle |= WS_EX_CLIENTEDGE;
    544549      }
    545       else                                      /* popup listbox */
    546         lbeStyle |= WS_POPUP;
     550      else                                      /* popup listbox */
     551        lbeStyle |= WS_POPUP;
    547552
    548553     /* Dropdown ComboLBox is not a child window and we cannot pass
     
    11321137
    11331138   SetWindowPos( lphc->hWndLBox, HWND_TOP, rect.left, rect.bottom,
    1134                 lphc->droppedRect.right - lphc->droppedRect.left,
     1139                lphc->droppedRect.right - lphc->droppedRect.left,
    11351140                 nDroppedHeight,
    1136                 SWP_NOACTIVATE | SWP_NOREDRAW);
     1141                SWP_NOACTIVATE | SWP_NOREDRAW);
    11371142
    11381143
     
    11641169           RECT rect;
    11651170
    1166            /*
    1167             * It seems useful to send the WM_LBUTTONUP with (-1,-1) when cancelling
    1168             * and with (0,0) (anywhere in the listbox) when Oking.
    1169             */
    1170            SendMessageA( lphc->hWndLBox, WM_LBUTTONUP, 0, ok ? (LPARAM)0 : (LPARAM)(-1) );
     1171           /*
     1172            * It seems useful to send the WM_LBUTTONUP with (-1,-1) when cancelling
     1173            * and with (0,0) (anywhere in the listbox) when Oking.
     1174            */
     1175           SendMessageA( lphc->hWndLBox, WM_LBUTTONUP, 0, ok ? (LPARAM)0 : (LPARAM)(-1) );
    11711176
    11721177           lphc->wState &= ~CBF_DROPPED;
Note: See TracChangeset for help on using the changeset viewer.