Changeset 2221 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Dec 27, 1999, 11:54:49 PM (26 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/win32wbase.cpp (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r2211 r2221 1 /* $Id: win32wbase.cpp,v 1.12 1 1999-12-27 17:08:08cbratschi Exp $ */1 /* $Id: win32wbase.cpp,v 1.122 1999-12-27 22:53:53 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 362 362 363 363 /* Fix the coordinates */ 364 if ( cs->x == CW_USEDEFAULT || cs->x == CW_USEDEFAULT16)364 if ((cs->x == CW_USEDEFAULT) || (cs->x == CW_USEDEFAULT16)) 365 365 { 366 366 // PDB *pdb = PROCESS_Current(); … … 382 382 * the one that comes with Win95 and NT) 383 383 */ 384 if ( cs->y != CW_USEDEFAULT && cs->y != CW_USEDEFAULT16) sw = cs->y;384 if ((cs->y != CW_USEDEFAULT) && (cs->y != CW_USEDEFAULT16)) sw = cs->y; 385 385 386 386 /* We have saved cs->y, now we can trash it */ … … 397 397 // } 398 398 } 399 if ( cs->cx == CW_USEDEFAULT || cs->cx == CW_USEDEFAULT16)399 if ((cs->cx == CW_USEDEFAULT) || (cs->cx == CW_USEDEFAULT16)) 400 400 { 401 401 #if 0 … … 439 439 { 440 440 SetParent(0); 441 if (!cs->hwndParent || cs->hwndParent == windowDesktop->getWindowHandle()) {441 if (!cs->hwndParent || (cs->hwndParent == windowDesktop->getWindowHandle())) { 442 442 owner = NULL; 443 443 } … … 784 784 SendInternalMessageA(WM_NCDESTROY, 0, 0); 785 785 786 if (hwndHorzScroll && OSLibWinQueryWindow(hwndHorzScroll,QWOS_PARENT) == OSLibWinQueryObjectWindow()) OSLibWinDestroyWindow(hwndHorzScroll);787 if (hwndVertScroll && OSLibWinQueryWindow(hwndVertScroll,QWOS_PARENT) == OSLibWinQueryObjectWindow()) OSLibWinDestroyWindow(hwndVertScroll);786 if (hwndHorzScroll && (OSLibWinQueryWindow(hwndHorzScroll,QWOS_PARENT) == OSLibWinQueryObjectWindow())) OSLibWinDestroyWindow(hwndHorzScroll); 787 if (hwndVertScroll && (OSLibWinQueryWindow(hwndVertScroll,QWOS_PARENT) == OSLibWinQueryObjectWindow())) OSLibWinDestroyWindow(hwndVertScroll); 788 788 789 789 TIMER_KillTimerFromWindow(OS2Hwnd); … … 991 991 992 992 HWND hwndActive = GetActiveWindow(); 993 if (hwndTop && getWindowHandle() != hwndActive)993 if (hwndTop && (getWindowHandle() != hwndActive)) 994 994 { 995 995 LONG ret = SendInternalMessageA(WM_MOUSEACTIVATE, hwndTop, … … 1342 1342 UINT uCommand = wParam & 0xFFF0; 1343 1343 1344 if ( getStyle() & WS_CHILD && uCommand != SC_KEYMENU)1344 if ((getStyle() & WS_CHILD) && (uCommand != SC_KEYMENU)) 1345 1345 ScreenToClient(getParent()->getWindowHandle(), pt32 ); 1346 1346 … … 2202 2202 window = GetWindowFromHandle(hwnd++); 2203 2203 if(window) { 2204 if ( window->getStyle() & WS_POPUP || (window->getStyle() & WS_CAPTION) == WS_CAPTION)2204 if ((window->getStyle() & WS_POPUP) || ((window->getStyle() & WS_CAPTION) == WS_CAPTION)) 2205 2205 { 2206 2206 … … 2228 2228 window = GetWindowFromHandle(hwnd++); 2229 2229 if(window) { 2230 if ( window->getStyle() & WS_POPUP || (window->getStyle() & WS_CAPTION) == WS_CAPTION)2230 if ((window->getStyle() & WS_POPUP) || ((window->getStyle() & WS_CAPTION) == WS_CAPTION)) 2231 2231 { 2232 2232 … … 3012 3012 if(IsWindowDestroyed()) return; 3013 3013 3014 //CB: todo: dwExStyle, creating new frame controls, destroy not used , WS_VISIBLE, ...3014 //CB: todo: dwExStyle, creating new frame controls, destroy not used controls, WS_VISIBLE, WS_CHILD, ... 3015 3015 // write test cases 3016 if (dwStyle & 0xFFFF0000 != oldStyle & 0xFFFF0000) 3016 if ((dwStyle & 0xFFFF0000) != (oldStyle & 0xFFFF0000)) 3017 { 3018 //dprintf(("updateWindowStyle: %x %x",oldStyle,dwStyle)); 3017 3019 OSLibSetWindowStyle(OS2HwndFrame, dwStyle, fTaskList); 3020 } 3018 3021 } 3019 3022 //****************************************************************************** … … 3271 3274 } 3272 3275 3273 if (!child || child->getParent() != this)3276 if (!child || (child->getParent() != this)) 3274 3277 { 3275 3278 retvalue = 0; … … 3339 3342 } 3340 3343 3341 if (!child || child->getParent() != this)3344 if (!child || (child->getParent() != this)) 3342 3345 { 3343 3346 retvalue = 0; … … 3368 3371 while (TRUE) 3369 3372 { 3370 if (!nextchild || nextchild->getStyle() & WS_GROUP)3373 if (!nextchild || (nextchild->getStyle() & WS_GROUP)) 3371 3374 { 3372 3375 /* Wrap-around to the beginning of the group */
Note:
See TracChangeset
for help on using the changeset viewer.
