Changeset 2257 for trunk/src/user32/pmframe.cpp
- Timestamp:
- Dec 29, 1999, 11:54:04 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmframe.cpp
r2204 r2257 1 /* $Id: pmframe.cpp,v 1.3 0 1999-12-26 17:30:16cbratschi Exp $ */1 /* $Id: pmframe.cpp,v 1.31 1999-12-29 22:54:01 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Frame Managment Code for OS/2 … … 103 103 BOOL CanDrawSizeBox(Win32BaseWindow *win32wnd) 104 104 { 105 return ( win32wnd->getStyle() & WS_SIZEBOX_W && WinQueryWindowULong(win32wnd->getOS2FrameWindowHandle(),QWL_STYLE) & FS_SIZEBORDER105 return ((win32wnd->getStyle() & WS_SIZEBOX_W) && (WinQueryWindowULong(win32wnd->getOS2FrameWindowHandle(),QWL_STYLE) & FS_SIZEBORDER) 106 106 && win32wnd->getVertScrollHandle() && WinQueryWindow(win32wnd->getVertScrollHandle(),QW_PARENT) == win32wnd->getOS2FrameWindowHandle() 107 107 && win32wnd->getHorzScrollHandle() && WinQueryWindow(win32wnd->getHorzScrollHandle(),QW_PARENT) == win32wnd->getOS2FrameWindowHandle()); … … 347 347 DWORD dwStyle = win32wnd->getWindowClass()->getClassLongA(GCL_STYLE_W); 348 348 349 if ( dwStyle & CS_HREDRAW_W && newRect->xRight-newRect->xLeft != oldRect->xRight-oldRect->xLeft)349 if ((dwStyle & CS_HREDRAW_W) && (newRect->xRight-newRect->xLeft != oldRect->xRight-oldRect->xLeft)) 350 350 res |= CVR_REDRAW; 351 else if ( dwStyle & CS_VREDRAW_W && newRect->yTop-newRect->yBottom != oldRect->yTop-oldRect->yBottom)351 else if ((dwStyle & CS_VREDRAW_W) && (newRect->yTop-newRect->yBottom != oldRect->yTop-oldRect->yBottom)) 352 352 res |= CVR_REDRAW; 353 353 } else res |= CVR_REDRAW; … … 514 514 FrameGetBorderSize(win32wnd,&point); 515 515 WinSendMsg(win32wnd->getOS2FrameWindowHandle(),WM_SETBORDERSIZE,(MPARAM)win32wnd->getBorderWidth(),(MPARAM)win32wnd->getBorderHeight()); 516 if ( point.x != win32wnd->getBorderWidth() || point.y != win32wnd->getBorderHeight())516 if ((point.x != win32wnd->getBorderWidth()) || (point.y != win32wnd->getBorderHeight())) 517 517 { 518 518 INT xDiff = win32wnd->getBorderWidth()-point.x; … … 582 582 HWND hwndCurPar = WinQueryWindow(win32wnd->getHorzScrollHandle(),QW_PARENT); 583 583 584 if ((fShow && hwndCurPar == hwndObj) || (!fShow && hwndCurPar != hwndObj))584 if ((fShow && (hwndCurPar == hwndObj)) || (!fShow && (hwndCurPar != hwndObj))) 585 585 { 586 586 WinSetParent(win32wnd->getHorzScrollHandle(),fShow ? win32wnd->getOS2FrameWindowHandle():HWND_OBJECT,FALSE); … … 593 593 HWND hwndCurPar = WinQueryWindow(win32wnd->getVertScrollHandle(),QW_PARENT); 594 594 595 if ((fShow && hwndCurPar == hwndObj) || (!fShow && hwndCurPar != hwndObj))595 if ((fShow && (hwndCurPar == hwndObj)) || (!fShow && (hwndCurPar != hwndObj))) 596 596 { 597 597 WinSetParent(win32wnd->getVertScrollHandle(),fShow ? win32wnd->getOS2FrameWindowHandle():HWND_OBJECT,FALSE); … … 619 619 if (win32wnd->getOS2WindowHandle() == WinQueryCapture(HWND_DESKTOP)) return HTCLIENT_W; 620 620 point.x = x; 621 point.y = WinQuerySysValue(HWND_DESKTOP,SV_CYSCREEN)-y-1;621 point.y = mapScreenY(y); 622 622 WinMapWindowPoints(HWND_DESKTOP,hwnd,&point,1); 623 623 child = WinWindowFromPoint(hwnd,&point,FALSE);
Note:
See TracChangeset
for help on using the changeset viewer.