Changeset 4497 for trunk/src/user32/window.cpp
- Timestamp:
- Oct 18, 2000, 7:10:50 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/window.cpp
r4463 r4497 1 /* $Id: window.cpp,v 1.8 0 2000-10-09 17:26:55sandervl Exp $ */1 /* $Id: window.cpp,v 1.81 2000-10-18 17:10:50 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 486 486 if( IsWindow(hwnd) ) 487 487 { 488 WINDOWPLACEMENT wndpl;489 UINT flags;488 WINDOWPLACEMENT wndpl; 489 UINT flags; 490 490 491 491 GetWindowPlacement(hwnd, &wndpl); 492 wndpl.length = sizeof(wndpl);493 wndpl.showCmd = showCmd;494 wndpl.flags = 0;495 496 if(lpPoint)497 {492 wndpl.length = sizeof(wndpl); 493 wndpl.showCmd = showCmd; 494 wndpl.flags = 0; 495 496 if(lpPoint) 497 { 498 498 wndpl.flags |= WPF_SETMINPOSITION; 499 wndpl.ptMinPosition = *lpPoint;500 }501 if(lpRect)502 {499 wndpl.ptMinPosition = *lpPoint; 500 } 501 if(lpRect) 502 { 503 503 wndpl.rcNormalPosition = *lpRect; 504 }504 } 505 505 SetWindowPlacement( hwnd, &wndpl); 506 506 } … … 593 593 } 594 594 //****************************************************************************** 595 //NOTE: length must equal structure size or else api fails (verified in NT4, SP6) 595 596 //****************************************************************************** 596 597 BOOL WIN32API SetWindowPlacement(HWND hwnd, const WINDOWPLACEMENT *winpos) … … 604 605 return FALSE; 605 606 } 606 if(!winpos ) {607 if(!winpos || winpos->length != sizeof(WINDOWPLACEMENT)) { 607 608 dprintf(("SetWindowPlacement %x invalid parameter", hwnd)); 608 609 SetLastError(ERROR_INVALID_PARAMETER); … … 613 614 } 614 615 //****************************************************************************** 616 //NOTE: Length does not need to be correct (even though the SDK docs claim otherwise) 617 // (Verified in NT4, SP6) 615 618 //****************************************************************************** 616 619 BOOL WIN32API GetWindowPlacement(HWND hwnd, LPWINDOWPLACEMENT winpos) … … 1630 1633 HWND hwnd; 1631 1634 1632 hWnd = Win32BaseWindow::Win32ToOS2Handle(hWnd); 1633 1634 hwnd = Win32BaseWindow::OS2ToWin32Handle(O32_GetLastActivePopup(hWnd)); 1635 hwnd = Win32BaseWindow::Win32ToOS2Handle(hWnd); 1636 hwnd = Win32BaseWindow::OS2ToWin32Handle(O32_GetLastActivePopup(hwnd)); 1635 1637 1636 1638 dprintf(("GetLastActivePopup %x returned %x NOT CORRECTLY IMPLEMENTED", hWnd, hwnd));
Note:
See TracChangeset
for help on using the changeset viewer.