Ignore:
Timestamp:
May 20, 2000, 4:57:24 PM (25 years ago)
Author:
sandervl
Message:

SetWindowPos & ShowWindow bugfixes (client also updated)

File:
1 edited

Legend:

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

    r3578 r3581  
    1 /* $Id: win32wbase.cpp,v 1.190 2000-05-20 13:30:59 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.191 2000-05-20 14:57:24 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    20862086
    20872087    rc = OSLibWinShowWindow(OS2HwndFrame, showstate);
     2088    OSLibWinShowWindow(OS2Hwnd, showstate);
    20882089
    20892090    SendInternalMessageA(WM_SHOWWINDOW, (showstate & SWPOS_SHOW) ? 1 : 0, 0);
     
    21162117   Win32BaseWindow *window;
    21172118   HWND hParent = 0;
    2118    BOOL fShow = FALSE, fHide = FALSE;
     2119   BOOL fShow = FALSE;
    21192120
    21202121    if (fuFlags &
     
    21982199            FrameUpdateClient(this);
    21992200        }
    2200         if(fuFlags & SWP_SHOWWINDOW) {
    2201                 setStyle(getStyle() | WS_VISIBLE);
    2202         }
    2203         else
    2204         if(fuFlags & SWP_HIDEWINDOW) {
    2205                 setStyle(getStyle() & ~WS_VISIBLE);
    2206         }
    22072201        return TRUE;
    22082202    }
     
    22262220    if(fuFlags & SWP_SHOWWINDOW && !IsWindowVisible()) {
    22272221        setStyle(getStyle() | WS_VISIBLE);
     2222        //SvL: TODO: Send WM_SHOWWINDOW??
     2223        OSLibWinShowWindow(OS2Hwnd, SWPOS_SHOW);
    22282224    }
    22292225    else
    22302226    if(fuFlags & SWP_HIDEWINDOW && IsWindowVisible()) {
    22312227        setStyle(getStyle() & ~WS_VISIBLE);
     2228        //SvL: TODO: Send WM_SHOWWINDOW??
     2229        OSLibWinShowWindow(OS2Hwnd, SWPOS_HIDE);
    22322230    }
    22332231    rc = OSLibWinSetMultWindowPos(&swp, 1);
    22342232
     2233#ifdef DEBUG
     2234    if(fShow) {
     2235        dprintf(("Frame style 0x%08x, client style 0x%08x", OSLibQueryWindowStyle(OS2HwndFrame), OSLibQueryWindowStyle(OS2Hwnd)));
     2236    }
     2237#endif
    22352238    if (rc == FALSE)
    22362239    {
    22372240        dprintf(("OSLibWinSetMultWindowPos failed! Error %x",OSLibWinGetLastError()));
    22382241    }
    2239 
    22402242    if((fuFlags & SWP_FRAMECHANGED) && (fuFlags & (SWP_NOMOVE | SWP_NOSIZE) == (SWP_NOMOVE | SWP_NOSIZE)))
    22412243    {
Note: See TracChangeset for help on using the changeset viewer.