Changeset 2353 for trunk/src/user32/new/dc.cpp
- Timestamp:
- Jan 7, 2000, 6:38:48 PM (26 years ago)
- 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 sandervlExp $ */1 /* $Id: dc.cpp,v 1.10 2000-01-07 17:38:46 cbratschi Exp $ */ 2 2 3 3 /* … … 584 584 pRect->left = pRect->top = pRect->right = pRect->bottom = 0; 585 585 } 586 587 return updateRegionExists; 588 } 589 590 //functions for WM_NCPAINT 591 592 INT SYSTEM GetOS2UpdateRgn(HWND hwnd,HRGN hrgn) 593 { 594 return O32_GetUpdateRgn(hwnd,hrgn,FALSE); 595 } 596 597 BOOL 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; 586 609 587 610 return updateRegionExists; … … 1451 1474 * display any portion of a window that lies outside of the window region 1452 1475 * 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. 1454 1477 * 1455 1478 * Parameters: HWND hWnd handle to window whose window region is to be set … … 1480 1503 dprintf(("USER32:SetWindowRgn (%x,%x,%d)", hwnd, hRgn, bRedraw)); 1481 1504 if(window->GetWindowRegion()) { 1482 1505 O32_DeleteObject(window->GetWindowRegion()); 1483 1506 } 1484 1507 window->SetWindowRegion(hRgn); 1485 1508 if(bRedraw) { 1486 RedrawWindow(hwnd, 0, 0, RDW_UPDATENOW_W); 1509 RedrawWindow(hwnd, 0, 0, RDW_UPDATENOW_W); 1487 1510 } 1488 1511 //TODO: 1489 1512 // 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. 1491 1514 return 1; 1492 1515 }
Note:
See TracChangeset
for help on using the changeset viewer.