Ignore:
Timestamp:
Oct 12, 1999, 4:47:24 PM (26 years ago)
Author:
sandervl
Message:

MDI fix, extra message support etc

File:
1 edited

Legend:

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

    r1253 r1256  
    1 /* $Id: window.cpp,v 1.13 1999-10-11 20:54:26 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.14 1999-10-12 14:47:24 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    179179        window = (Win32BaseWindow *) new Win32MDIClientWindow(&cs, classAtom, TRUE);
    180180    }
     181    else
    181182    if(!lstrcmpiW(className, (LPWSTR)DIALOG_CLASS_NAMEW))
    182183    {
     
    739740{
    740741 BOOL rc;
    741 
    742 #if 1
     742 HWND hwndWin32 = hwnd;
     743
    743744    hwnd = Win32BaseWindow::Win32ToOS2Handle(hwnd);
    744745    rc = OSLibWinQueryWindowRect(hwnd, pRect);
    745     dprintf(("USER32:  GetClientRect of %X returned (%d,%d) (%d,%d)\n", hwnd, pRect->left, pRect->top, pRect->right, pRect->bottom));
     746    dprintf(("GetClientRect of %X returned (%d,%d) (%d,%d)\n", hwndWin32, pRect->left, pRect->top, pRect->right, pRect->bottom));
    746747    return rc;
    747 #else
    748    Win32BaseWindow *window;
    749 
    750     window = Win32BaseWindow::GetWindowFromHandle(hwnd);
    751     if(!window) {
    752         dprintf(("GetClientRect, window %x not found", hwnd));
    753         SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    754         return 0;
    755     }
    756     *pRect = *window->getClientRect();
    757     dprintf(("GetClientRect of %X returned (%d,%d) (%d,%d)\n", hwnd, pRect->left, pRect->top, pRect->right, pRect->bottom));
    758     return TRUE;
    759 #endif
    760748}
    761749//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.