Ignore:
Timestamp:
Jun 17, 2001, 11:08:01 PM (24 years ago)
Author:
sandervl
Message:

WS_VISIBLE flag change allowed in SetWindowLong; scrollbar fix for sizebox/grip style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32wbase.cpp

    r6012 r6040  
    1 /* $Id: win32wbase.cpp,v 1.270 2001-06-14 14:49:17 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.271 2001-06-17 21:08:01 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    34633463                    break;
    34643464                }
    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);
    34663472                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);
    34693474                SendInternalMessageA(WM_STYLECHANGING,GWL_STYLE,(LPARAM)&ss);
    34703475                setStyle(ss.styleNew);
    34713476                SendInternalMessageA(WM_STYLECHANGED,GWL_STYLE,(LPARAM)&ss);
    34723477                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                }
    34733485#ifdef DEBUG
    34743486                PrintWindowStyle(ss.styleNew, 0);
     
    37053717 Win32BaseWindow *window;
    37063718
     3719////TODO: temporary workaround for crashes in Opera (pmwinx; releasesemaphore)
     3720////      while browsing
     3721////      Not thread safe now!
    37073722////    lock(&critsect);
    37083723    if(HwGetWindowHandleData(hwnd, (DWORD *)&window) == TRUE) {
Note: See TracChangeset for help on using the changeset viewer.