Ignore:
Timestamp:
Jan 7, 2000, 6:38:48 PM (26 years ago)
Author:
cbratschi
Message:

* empty log message *

File:
1 edited

Legend:

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

    r2317 r2353  
    1 /* $Id: dc.cpp,v 1.9 2000-01-04 19:51:32 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.10 2000-01-07 17:38:46 cbratschi Exp $ */
    22
    33/*
     
    584584         pRect->left = pRect->top = pRect->right = pRect->bottom = 0;
    585585   }
     586
     587   return updateRegionExists;
     588}
     589
     590//functions for WM_NCPAINT
     591
     592INT SYSTEM GetOS2UpdateRgn(HWND hwnd,HRGN hrgn)
     593{
     594  return O32_GetUpdateRgn(hwnd,hrgn,FALSE);
     595}
     596
     597BOOL SYSTEM GetOS2UpdateRect(HWND hwnd,LPRECT pRect)
     598{
     599   RECTL rectl;
     600   BOOL updateRegionExists = WinQueryUpdateRect(hwnd,pRect ? &rectl:NULL);
     601
     602   if (!pRect)
     603     return (updateRegionExists);
     604
     605   if (updateRegionExists)
     606     mapOS2ToWin32Rect(hwnd,(PRECTLOS2)&rectl,pRect);
     607   else
     608     pRect->left = pRect->top = pRect->right = pRect->bottom = 0;
    586609
    587610   return updateRegionExists;
     
    14511474 *             display any portion of a window that lies outside of the window region
    14521475 *             When this function is called, the system sends the WM_WINDOWPOSCHANGING and
    1453  *             WM_WINDOWPOSCHANGED messages to the window. 
     1476 *             WM_WINDOWPOSCHANGED messages to the window.
    14541477 *
    14551478 * Parameters: HWND  hWnd    handle to window whose window region is to be set
     
    14801503    dprintf(("USER32:SetWindowRgn (%x,%x,%d)", hwnd, hRgn, bRedraw));
    14811504    if(window->GetWindowRegion()) {
    1482         O32_DeleteObject(window->GetWindowRegion());
     1505        O32_DeleteObject(window->GetWindowRegion());
    14831506    }
    14841507    window->SetWindowRegion(hRgn);
    14851508    if(bRedraw) {
    1486         RedrawWindow(hwnd, 0, 0, RDW_UPDATENOW_W);     
     1509        RedrawWindow(hwnd, 0, 0, RDW_UPDATENOW_W);
    14871510    }
    14881511//TODO:
    14891512//  When this function is called, the system sends the WM_WINDOWPOSCHANGING and
    1490 //  WM_WINDOWPOSCHANGED messages to the window. 
     1513//  WM_WINDOWPOSCHANGED messages to the window.
    14911514    return 1;
    14921515}
Note: See TracChangeset for help on using the changeset viewer.