Ignore:
Timestamp:
Jan 29, 2000, 9:46:52 PM (26 years ago)
Author:
sandervl
Message:

SetWindowPos, UpdateWindow & WS_VISIBLE fixes/changes

File:
1 edited

Legend:

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

    r2560 r2569  
    1 /* $Id: dc.cpp,v 1.39 2000-01-29 14:23:32 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.40 2000-01-29 20:46:52 sandervl Exp $ */
    22
    33/*
     
    847847BOOL WIN32API UpdateWindow (HWND hwnd)
    848848{
    849    if (!hwnd)
    850        return FALSE;
    851 
    852    Win32BaseWindow *wnd = Win32BaseWindow::GetWindowFromHandle (hwnd);
    853 
    854    dprintf (("User32: UpdateWindow hwnd %x -> wnd %x", hwnd, wnd));
    855 
    856 #if 0
    857    if (WinQueryUpdateRect (wnd->getOS2WindowHandle(), NULL))
    858        sendEraseBkgnd (wnd);
    859 #endif
    860 
    861    WinUpdateWindow(wnd->getOS2FrameWindowHandle());
     849  Win32BaseWindow *wnd = Win32BaseWindow::GetWindowFromHandle (hwnd);
     850
     851   if(!wnd) {
     852        O32_SetLastError(ERROR_INVALID_WINDOW_HANDLE);
     853        return FALSE;
     854   }
     855
     856   dprintf (("User32: UpdateWindow hwnd %x", hwnd));
     857
     858   //SvL: Should update client window, not the frame
     859   WinUpdateWindow(wnd->getOS2WindowHandle());
    862860
    863861   return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.