Ignore:
Timestamp:
Jun 8, 2000, 8:10:12 PM (25 years ago)
Author:
sandervl
Message:

lots of fixes + changes (see ChangeLog)

File:
1 edited

Legend:

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

    r3663 r3679  
    1 /* $Id: win32wbase.cpp,v 1.199 2000-06-07 21:45:50 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.200 2000-06-08 18:10:11 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    716716            }
    717717
    718             if (cs->style & WS_VISIBLE) ShowWindow(sw);
     718            if(cs->style & WS_VISIBLE) {
     719                dwStyle &= ~WS_VISIBLE;
     720                ShowWindow(sw);
     721            }
    719722
    720723            /* Call WH_SHELL hook */
     
    22382241                MsgFormatFrame(NULL);
    22392242                UnionRect(&oldClientRect, &oldClientRect, &rectClient);
     2243                OffsetRect(&oldClientRect, -rectClient.left, -rectClient.top);
    22402244                InvalidateRect(getWindowHandle(), &oldClientRect, TRUE);
    22412245//TODO: move child windows!!
     
    22842288    {
    22852289        UnionRect(&oldClientRect, &oldClientRect, &rectClient);
     2290        OffsetRect(&oldClientRect, -rectClient.left, -rectClient.top);
    22862291        InvalidateRect(getWindowHandle(), &oldClientRect, TRUE);
    22872292//TODO: move child windows!!
     
    24982503HWND Win32BaseWindow::GetTopWindow()
    24992504{
    2500     return GetWindow(GW_CHILD);
     2505 HWND             hwndTop;
     2506 Win32BaseWindow *topwindow;
     2507
     2508    hwndTop = OSLibWinQueryWindow(getOS2WindowHandle(), QWOS_TOP);
     2509    if(!isDesktopWindow()) {
     2510        topwindow = GetWindowFromOS2Handle(hwndTop);
     2511        if(topwindow) {
     2512                return topwindow->getWindowHandle();
     2513        }
     2514        return 0;       
     2515    }
     2516    while(hwndTop) {
     2517        topwindow = GetWindowFromOS2Handle(hwndTop);
     2518        if(topwindow) {
     2519                return topwindow->getWindowHandle();
     2520        }
     2521        hwndTop = OSLibWinQueryWindow(hwndTop, QWOS_NEXT);
     2522    }
     2523
     2524    return 0;
    25012525}
    25022526//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.