Changeset 21334 for trunk/src


Ignore:
Timestamp:
Jul 7, 2009, 9:06:23 PM (16 years ago)
Author:
vladest
Message:

Added functions, required for Flash 9/10 plugin

Location:
trunk/src/user32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/USER32.DEF

    r21320 r21334  
    728728    _selectClientArea@4                                          @2025 NONAME
    729729
    730     _CreateFakeWindowEx@8                                        @2028 NONAME
    731     _DestroyFakeWindow@4                                         @2035 NONAME
     730    _CreateFakeWindowEx@8 = _CreateFakeWindowEx@8                @2028
     731    _DestroyFakeWindow@4  = _DestroyFakeWindow@4                 @2035
     732
    732733    _checkOrigin@4                                               @2029 NONAME
    733734
     
    753754
    754755    _GetOS2Icon@4                                                @2045 NONAME
     756
     757; used for Flash plugin
     758    GetWindowInfo = _GetWindowInfo@8                             @2046
  • trunk/src/user32/user32dbg.def

    r21320 r21334  
    726726    _selectClientArea@4                                          @2025 NONAME
    727727
    728     _CreateFakeWindowEx@8                                        @2028 NONAME
    729     _DestroyFakeWindow@4                                         @2035 NONAME
     728    _CreateFakeWindowEx@8 = _CreateFakeWindowEx@8                @2028
     729    _DestroyFakeWindow@4  = _DestroyFakeWindow@4                 @2035
    730730    _checkOrigin@4                                               @2029 NONAME
    731731
     
    750750
    751751    _GetOS2Icon@4                                                @2045 NONAME
     752
     753; used for Flash plugin
     754    GetWindowInfo = _GetWindowInfo@8                             @2046
  • trunk/src/user32/window.cpp

    r21303 r21334  
    437437    return hwndRelated;
    438438}
     439
     440/******************************************************************************
     441 *              GetWindowInfo (USER32.@)
     442 *
     443 * Note: tests show that Windows doesn't check cbSize of the structure.
     444 */
     445BOOL WINAPI GetWindowInfo( HWND hwnd, PWINDOWINFO pwi)
     446{
     447    if (!pwi) return FALSE;
     448    if (!IsWindow(hwnd)) return FALSE;
     449
     450    GetWindowRect(hwnd, &pwi->rcWindow);
     451    GetClientRect(hwnd, &pwi->rcClient);
     452    /* translate to screen coordinates */
     453    MapWindowPoints(hwnd, 0, (LPPOINT)&pwi->rcClient, 2);
     454
     455    pwi->dwStyle = GetWindowLongW(hwnd, GWL_STYLE);
     456    pwi->dwExStyle = GetWindowLongW(hwnd, GWL_EXSTYLE);
     457    pwi->dwWindowStatus = ((GetActiveWindow() == hwnd) ? WS_ACTIVECAPTION : 0);
     458
     459    pwi->cxWindowBorders = pwi->rcClient.left - pwi->rcWindow.left;
     460    pwi->cyWindowBorders = pwi->rcWindow.bottom - pwi->rcClient.bottom;
     461
     462    pwi->atomWindowType = GetClassLongW( hwnd, GCW_ATOM );
     463    pwi->wCreatorVersion = 0x0400;
     464
     465    return TRUE;
     466}
     467
    439468//******************************************************************************
    440469//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.