Ignore:
Timestamp:
Jun 23, 2000, 9:04:13 PM (25 years ago)
Author:
sandervl
Message:

wsprintf fix, menu accelerator fix

File:
1 edited

Legend:

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

    r3705 r3747  
    1 /* $Id: win32wbase.cpp,v 1.201 2000-06-14 13:15:25 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.202 2000-06-23 19:04:12 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    379379  {
    380380        SetParent(cs->hwndParent);
    381         owner = GetWindowFromHandle(cs->hwndParent);
    382         if(owner == NULL)
     381//        owner = GetWindowFromHandle(cs->hwndParent);
     382        owner = 0;
     383/*        if(owner == NULL)
    383384        {
    384385            dprintf(("HwGetWindowHandleData couldn't find owner window %x!!!", cs->hwndParent));
    385386            SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    386387            return FALSE;
    387         }
     388        }*/
    388389        //SvL: Shell positioning shouldn't be done for child windows! (breaks Notes)
    389390        fXDefault = fCXDefault = FALSE;
     
    516517  OS2Hwnd = OSLibWinCreateWindow((getParent()) ? getParent()->getOS2WindowHandle() : OSLIB_HWND_DESKTOP,
    517518                                 dwOSWinStyle,(char *)windowNameA,
    518                                  (owner) ? owner->getOS2WindowHandle() : OSLIB_HWND_DESKTOP,
     519                                 (owner) ? owner->getOS2WindowHandle() : ((getParent()) ? getParent()->getOS2WindowHandle() : OSLIB_HWND_DESKTOP),
    519520                                 (hwndLinkAfter == HWND_BOTTOM) ? TRUE : FALSE,
    520521                                 0, fTaskList,fXDefault | fCXDefault,windowClass->getStyle());
     
    16551656                else    SendMessageA(WM_SYSCOMMAND, (WPARAM)SC_KEYMENU, (LPARAM)(DWORD)wParam );
    16561657        }
     1658#if 0
    16571659        else /* check for Ctrl-Esc */
    16581660                if (wParam != VK_ESCAPE) MessageBeep(0);
    16591661                        break;
     1662#endif
    16601663    }
    16611664
     
    25502553    for (child = (Win32BaseWindow *)getFirstChild(); child; child = (Win32BaseWindow *)child->getNextChild())
    25512554    {
    2552         dprintf(("EnumChildWindows: enumerating child %x", child->getWindowHandle()));
     2555        dprintf(("EnumChildWindows: enumerating child %x (owner %x; parent %x)", child->getWindowHandle(), (child->getOwner()) ? child->getOwner()->getWindowHandle() : 0, getWindowHandle()));
    25532556        hwnd = child->getWindowHandle();
    25542557        if(child->getOwner()) {
Note: See TracChangeset for help on using the changeset viewer.