Ignore:
Timestamp:
Oct 7, 1999, 11:28:02 AM (26 years ago)
Author:
sandervl
Message:

EB's fixes + scrollbar changes

File:
1 edited

Legend:

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

    r1063 r1159  
    1 /* $Id: window.cpp,v 1.10 1999-09-26 14:44:58 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.11 1999-10-07 09:28:02 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    174174    //TODO: According to the docs className can be a 16 bits atom
    175175    //      Wine seems to assume it's a string though...
    176     if(!stricmp(className, MDICLIENTCLASSNAMEA)) {
     176    if(!strcmpi(className, MDICLIENTCLASSNAMEA)) {
    177177        window = (Win32BaseWindow *) new Win32MDIClientWindow(&cs, classAtom, FALSE);
    178178    }
     
    238238    //TODO: According to the docs className can be a 16 bits atom
    239239    //      Wine seems to assume it's a string though...
    240     if(!lstrcmpW(className, (LPWSTR)MDICLIENTCLASSNAMEW)) {
     240    if(!lstrcmpiW(className, (LPWSTR)MDICLIENTCLASSNAMEW)) {
    241241        window = (Win32BaseWindow *) new Win32MDIClientWindow(&cs, classAtom, TRUE);
    242242    }
     
    784784 BOOL rc;
    785785
     786#if 1
    786787    hwnd = Win32BaseWindow::Win32ToOS2Handle(hwnd);
    787788    rc = OSLibWinQueryWindowRect(hwnd, pRect);
    788789    dprintf(("USER32:  GetClientRect of %X returned (%d,%d) (%d,%d)\n", hwnd, pRect->left, pRect->top, pRect->right, pRect->bottom));
    789790    return rc;
     791#else
     792   Win32BaseWindow *window;
     793
     794    window = Win32BaseWindow::GetWindowFromHandle(hwnd);
     795    if(!window) {
     796        dprintf(("GetClientRect, window %x not found", hwnd));
     797        SetLastError(ERROR_INVALID_WINDOW_HANDLE);
     798        return 0;
     799    }
     800    *pRect = *window->getClientRect();
     801    dprintf(("GetClientRect of %X returned (%d,%d) (%d,%d)\n", hwnd, pRect->left, pRect->top, pRect->right, pRect->bottom));
     802    return TRUE;
     803#endif
    790804}
    791805//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.