Changeset 21949 for trunk/src


Ignore:
Timestamp:
Jan 19, 2012, 6:55:02 PM (14 years ago)
Author:
dmik
Message:

Add GetComboBoxInfo() to USER32.

Taken from the recent Wine sources. Fixes the Winrar startup
problem.

Location:
trunk/src/user32
Files:
3 edited

Legend:

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

    r21916 r21949  
    18861886}
    18871887
     1888static LRESULT COMBO_GetComboBoxInfo(const HEADCOMBO *lphc, COMBOBOXINFO *pcbi)
     1889{
     1890    if (!pcbi || (pcbi->cbSize < sizeof(COMBOBOXINFO)))
     1891        return FALSE;
     1892
     1893    pcbi->rcItem = lphc->textRect;
     1894    pcbi->rcButton = lphc->buttonRect;
     1895    pcbi->stateButton = 0;
     1896    if (lphc->wState & CBF_BUTTONDOWN)
     1897        pcbi->stateButton |= STATE_SYSTEM_PRESSED;
     1898    if (IsRectEmpty(&lphc->buttonRect))
     1899        pcbi->stateButton |= STATE_SYSTEM_INVISIBLE;
     1900    pcbi->hwndCombo = lphc->self;
     1901    pcbi->hwndItem = lphc->hWndEdit;
     1902    pcbi->hwndList = lphc->hWndLBox;
     1903    return TRUE;
     1904}
    18881905
    18891906/***********************************************************************
     
    22792296    case CB_GETEXTENDEDUI:
    22802297        return  (lphc->wState & CBF_EUI) ? TRUE : FALSE;
    2281 
     2298    case CB_GETCOMBOBOXINFO:
     2299        return COMBO_GetComboBoxInfo(lphc, (COMBOBOXINFO *)lParam);
    22822300    default:
    22832301        if (message >= WM_USER)
     
    23102328    return ComboWndProc_common( hwnd, message, wParam, lParam, TRUE );
    23112329}
     2330
     2331/*************************************************************************
     2332 *           GetComboBoxInfo   (USER32.@)
     2333 */
     2334BOOL WINAPI GetComboBoxInfo(HWND hwndCombo,      /* [in] handle to combo box */
     2335                PCOMBOBOXINFO pcbi   /* [in/out] combo box information */)
     2336{
     2337    TRACE("(%p, %p)\n", hwndCombo, pcbi);
     2338    return SendMessageW(hwndCombo, CB_GETCOMBOBOXINFO, 0, (LPARAM)pcbi);
     2339}
  • trunk/src/user32/user32.def

    r21916 r21949  
    697697    PrivateExtractIconExA      = "_PrivateExtractIconExA@20"   @1018
    698698
     699
     700    GetComboBoxInfo            = "_GetComboBoxInfo@8"          @1019
     701
    699702;
    700703; ENDOFEXPORTS
  • trunk/src/user32/user32dbg.def

    r21916 r21949  
    696696    PrivateExtractIconExA      = "_PrivateExtractIconExA@20"   @1018
    697697
     698
     699    GetComboBoxInfo            = "_GetComboBoxInfo@8"          @1019
     700
    698701;
    699702; ENDOFEXPORTS
Note: See TracChangeset for help on using the changeset viewer.