Changeset 6040 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Jun 17, 2001, 11:08:01 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r6012 r6040 1 /* $Id: win32wbase.cpp,v 1.27 0 2001-06-14 14:49:17sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.271 2001-06-17 21:08:01 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 3463 3463 break; 3464 3464 } 3465 value &= ~(WS_CHILD|WS_VISIBLE); /* Some bits can't be changed this way (WINE) */ 3465 dprintf(("SetWindowLong GWL_STYLE %x old %x new style %x (%x)", getWindowHandle(), dwStyle, value)); 3466 #ifdef DEBUG 3467 if((value & WS_CHILD) != (dwStyle & WS_CHILD)) { 3468 DebugInt3(); //is this allowed? 3469 } 3470 #endif 3471 value &= ~(WS_CHILD); 3466 3472 ss.styleOld = getStyle(); 3467 ss.styleNew = value | (ss.styleOld & (WS_CHILD|WS_VISIBLE)); 3468 dprintf(("SetWindowLong GWL_STYLE %x old %x new style %x", getWindowHandle(), ss.styleOld, ss.styleNew)); 3473 ss.styleNew = value | (ss.styleOld & WS_CHILD); 3469 3474 SendInternalMessageA(WM_STYLECHANGING,GWL_STYLE,(LPARAM)&ss); 3470 3475 setStyle(ss.styleNew); 3471 3476 SendInternalMessageA(WM_STYLECHANGED,GWL_STYLE,(LPARAM)&ss); 3472 3477 OSLibSetWindowStyle(getOS2FrameWindowHandle(), getOS2WindowHandle(), getStyle(), getExStyle()); 3478 3479 //TODO: Might not be correct to use ShowWindow here 3480 if((ss.styleOld & WS_VISIBLE) != (ss.styleNew & WS_VISIBLE)) { 3481 if(ss.styleNew & WS_VISIBLE) 3482 ShowWindow(SW_SHOWNOACTIVATE); 3483 else ShowWindow(SW_HIDE); 3484 } 3473 3485 #ifdef DEBUG 3474 3486 PrintWindowStyle(ss.styleNew, 0); … … 3705 3717 Win32BaseWindow *window; 3706 3718 3719 ////TODO: temporary workaround for crashes in Opera (pmwinx; releasesemaphore) 3720 //// while browsing 3721 //// Not thread safe now! 3707 3722 //// lock(&critsect); 3708 3723 if(HwGetWindowHandleData(hwnd, (DWORD *)&window) == TRUE) {
Note:
See TracChangeset
for help on using the changeset viewer.