- Timestamp:
- Jan 27, 2000, 6:21:10 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r2515 r2529 1 /* $Id: dc.cpp,v 1.3 6 2000-01-25 20:39:41 sandervlExp $ */1 /* $Id: dc.cpp,v 1.37 2000-01-27 17:21:08 cbratschi Exp $ */ 2 2 3 3 /* … … 828 828 if (hwnd) 829 829 { 830 831 832 833 834 835 830 Win32BaseWindow *wnd = Win32BaseWindow::GetWindowFromHandle (hwnd); 831 if(wnd == NULL) { 832 dprintf(("ERROR: ReleaseDC %x %x failed", hwnd, hdc)); 833 return 0; 834 } 835 //SvL: Hack for memory.exe (doesn't get repainted properly otherwise) 836 836 // isOwnDC = wnd->isOwnDC() && wnd->getOwnDC(); 837 837 isOwnDC = wnd->isOwnDC() && (wnd->getOwnDC() == hdc); 838 838 } 839 839 if (isOwnDC) … … 1040 1040 { 1041 1041 BOOL result; 1042 1042 1043 1043 result = RedrawWindow (hwnd, pRect, NULLHANDLE, 1044 1044 RDW_ALLCHILDREN_W | RDW_INVALIDATE_W | … … 1250 1250 APIRET rc; 1251 1251 RECTL clientRect; 1252 PRECT pClientRect; 1252 1253 RECTL scrollRect; 1253 1254 RECTL clipRect; 1254 PRECT pClientRect;1255 1255 PRECTL pScrollRect = NULL; 1256 1256 PRECTL pClipRect = NULL; … … 1263 1263 } 1264 1264 dprintf(("ScrollWindow %x %d %d %x %x", hwnd, dx, dy, pScroll, pClip)); 1265 1265 1266 pClientRect = window->getClientRectPtr(); 1266 1267 clientRect.xLeft = 0; … … 1268 1269 clientRect.xRight = pClientRect->right - pClientRect->left; 1269 1270 clientRect.yTop = pClientRect->bottom - pClientRect->top; 1271 1270 1272 if(pScroll) { 1271 1273 mapWin32ToOS2Rect(window,(RECT *)pScroll, (PRECTLOS2)&scrollRect); -
trunk/src/user32/win32wbase.cpp
r2521 r2529 1 /* $Id: win32wbase.cpp,v 1.14 5 2000-01-26 18:02:36cbratschi Exp $ */1 /* $Id: win32wbase.cpp,v 1.146 2000-01-27 17:21:09 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2048 2048 dprintf(("CB: cx is 0! %d",fuFlags)); 2049 2049 if (fuFlags & SWP_NOSIZE) dprintf(("CB: nosize")); 2050 //cx = 50;2050 cx = 50; 2051 2051 } 2052 2052 if (cy == 0) … … 2054 2054 dprintf(("CB: cy is 0! %d",fuFlags)); 2055 2055 if (fuFlags & SWP_NOSIZE) dprintf(("CB: nosize")); 2056 //cy = 50;2056 cy = 50; 2057 2057 } 2058 2058 -
trunk/src/user32/win32wbase.h
r2521 r2529 1 /* $Id: win32wbase.h,v 1.7 4 2000-01-26 18:02:37cbratschi Exp $ */1 /* $Id: win32wbase.h,v 1.75 2000-01-27 17:21:09 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 386 386 LONG HandleNCLButtonDblClk(WPARAM wParam,LPARAM lParam); 387 387 LONG HandleNCRButtonUp(WPARAM wParam,LPARAM lParam); 388 BOOL WindowNeedsWMBorder();389 388 VOID AdjustRectOuter(LPRECT rect,BOOL menu); 390 389 VOID AdjustRectInner(LPRECT rect); -
trunk/src/user32/win32wbasenonclient.cpp
r2521 r2529 1 /* $Id: win32wbasenonclient.cpp,v 1. 5 2000-01-26 18:02:37cbratschi Exp $ */1 /* $Id: win32wbasenonclient.cpp,v 1.6 2000-01-27 17:21:09 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 (non-client methods) … … 74 74 WORD wStateChange; 75 75 76 //CB: only caption is changed on activation77 if (!(dwStyle & WS_CAPTION)) return TRUE;78 79 76 if( wParam ) wStateChange = !(flags & WIN_NCACTIVATED); 80 77 else wStateChange = flags & WIN_NCACTIVATED; … … 84 81 if (wParam) flags |= WIN_NCACTIVATED; 85 82 else flags &= ~WIN_NCACTIVATED; 83 84 if (!(dwStyle & WS_CAPTION)) return TRUE; 86 85 87 86 if(!(dwStyle & WS_MINIMIZE)) … … 303 302 //****************************************************************************** 304 303 //****************************************************************************** 305 BOOL Win32BaseWindow::WindowNeedsWMBorder()306 {307 if (!(dwStyle & WS_CHILD) &&308 //Options.managed && //CB: to check309 !(dwExStyle & WS_EX_TOOLWINDOW) &&310 ( ((dwStyle & WS_CAPTION) == WS_CAPTION) ||311 (dwStyle & WS_THICKFRAME)))312 return TRUE;313 if (dwExStyle & WS_EX_TRAYWINDOW)314 return TRUE;315 return FALSE;316 }317 //******************************************************************************318 //******************************************************************************319 304 VOID Win32BaseWindow::AdjustMaximizedRect(LPRECT rect) 320 305 { 321 /* Decide if the window will be managed (see CreateWindowEx) */322 //if (!WindowNeedsWMBorder()) //CB: check Options.managed323 {324 if (HAS_ THICKFRAME(dwStyle,dwExStyle ))325 InflateRect( rect, GetSystemMetrics(SM_CXFRAME), GetSystemMetrics(SM_CYFRAME) );306 if (HAS_THICKFRAME(dwStyle,dwExStyle )) 307 InflateRect( rect, GetSystemMetrics(SM_CXFRAME), GetSystemMetrics(SM_CYFRAME) ); 308 else 309 if (HAS_DLGFRAME( dwStyle, dwExStyle )) 310 InflateRect(rect, GetSystemMetrics(SM_CXDLGFRAME), GetSystemMetrics(SM_CYDLGFRAME) ); 326 311 else 327 if (HAS_DLGFRAME( dwStyle, dwExStyle )) 328 InflateRect(rect, GetSystemMetrics(SM_CXDLGFRAME), GetSystemMetrics(SM_CYDLGFRAME) ); 329 else 330 if (HAS_THINFRAME( dwStyle )) 331 InflateRect( rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER)); 332 } 312 if (HAS_THINFRAME( dwStyle )) 313 InflateRect( rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER)); 333 314 } 334 315 //****************************************************************************** … … 345 326 if(dwStyle & WS_ICONIC) return; 346 327 347 /* Decide if the window will be managed (see CreateWindowEx) */348 //if (!WindowNeedsWMBorder()) //CB: check Options.managed349 {350 if (HAS_ THICKFRAME(dwStyle,dwExStyle ))351 InflateRect( rect, GetSystemMetrics(SM_CXFRAME), GetSystemMetrics(SM_CYFRAME) );328 if (HAS_THICKFRAME(dwStyle,dwExStyle )) 329 InflateRect( rect, GetSystemMetrics(SM_CXFRAME), GetSystemMetrics(SM_CYFRAME) ); 330 else 331 if (HAS_DLGFRAME( dwStyle, dwExStyle )) 332 InflateRect(rect, GetSystemMetrics(SM_CXDLGFRAME), GetSystemMetrics(SM_CYDLGFRAME) ); 352 333 else 353 if (HAS_DLGFRAME( dwStyle, dwExStyle )) 354 InflateRect(rect, GetSystemMetrics(SM_CXDLGFRAME), GetSystemMetrics(SM_CYDLGFRAME) ); 355 else 356 if (HAS_THINFRAME( dwStyle )) 357 InflateRect( rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER)); 358 359 if ((dwStyle & WS_CAPTION) == WS_CAPTION) 360 { 361 if (dwExStyle & WS_EX_TOOLWINDOW) 362 rect->top -= GetSystemMetrics(SM_CYSMCAPTION); 363 else 364 rect->top -= GetSystemMetrics(SM_CYCAPTION); 365 } 334 if (HAS_THINFRAME( dwStyle )) 335 InflateRect( rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER)); 336 337 if ((dwStyle & WS_CAPTION) == WS_CAPTION) 338 { 339 if (dwExStyle & WS_EX_TOOLWINDOW) 340 rect->top -= GetSystemMetrics(SM_CYSMCAPTION); 341 else 342 rect->top -= GetSystemMetrics(SM_CYCAPTION); 366 343 } 367 344 -
trunk/src/user32/window.cpp
r2521 r2529 1 /* $Id: window.cpp,v 1.5 1 2000-01-26 18:02:38cbratschi Exp $ */1 /* $Id: window.cpp,v 1.52 2000-01-27 17:21:10 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 817 817 818 818 //Adjust rect outer (Win32BaseWindow::AdjustRectOuter) 819 /* Decide if the window will be managed (see CreateWindowEx) */820 //if (!WindowNeedsWMBorder()) //CB: check Options.managed821 {822 if (HAS_ THICKFRAME(style,exStyle))823 InflateRect( rect, GetSystemMetrics(SM_CXFRAME), GetSystemMetrics(SM_CYFRAME) );819 if (HAS_THICKFRAME(style,exStyle)) 820 InflateRect( rect, GetSystemMetrics(SM_CXFRAME), GetSystemMetrics(SM_CYFRAME) ); 821 else 822 if (HAS_DLGFRAME(style,exStyle)) 823 InflateRect(rect, GetSystemMetrics(SM_CXDLGFRAME), GetSystemMetrics(SM_CYDLGFRAME) ); 824 824 else 825 if (HAS_DLGFRAME(style,exStyle)) 826 InflateRect(rect, GetSystemMetrics(SM_CXDLGFRAME), GetSystemMetrics(SM_CYDLGFRAME) ); 827 else 828 if (HAS_THINFRAME(style)) 829 InflateRect( rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER)); 830 831 if ((style & WS_CAPTION) == WS_CAPTION) 832 { 833 if (exStyle & WS_EX_TOOLWINDOW) 834 rect->top -= GetSystemMetrics(SM_CYSMCAPTION); 835 else 836 rect->top -= GetSystemMetrics(SM_CYCAPTION); 837 } 825 if (HAS_THINFRAME(style)) 826 InflateRect( rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER)); 827 828 if ((style & WS_CAPTION) == WS_CAPTION) 829 { 830 if (exStyle & WS_EX_TOOLWINDOW) 831 rect->top -= GetSystemMetrics(SM_CYSMCAPTION); 832 else 833 rect->top -= GetSystemMetrics(SM_CYCAPTION); 838 834 } 839 835 … … 1307 1303 { 1308 1304 hwnd = Win32BaseWindow::OS2ToWin32Handle(hwndOS2); 1309 if (!hwnd)1310 {1311 //CB: could be a frame control1312 hwndOS2 = OSLibWinQueryWindow(hwndOS2,QWOS_PARENT);1313 hwnd = Win32BaseWindow::OS2ToWin32Handle(hwndOS2);1314 }1315 1305 if(hwnd) { 1316 1306 dprintf(("WindowFromPoint (%d,%d) %x->%x\n", point.x, point.y, hwndOS2, hwnd));
Note:
See TracChangeset
for help on using the changeset viewer.