Ignore:
Timestamp:
Jul 30, 2002, 9:55:35 PM (23 years ago)
Author:
achimha
Message:

adding documentation

File:
1 edited

Legend:

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

    r8944 r8945  
    1 /* $Id: win32wbase.cpp,v 1.331 2002-07-30 18:55:42 achimha Exp $ */
     1/* $Id: win32wbase.cpp,v 1.332 2002-07-30 19:55:35 achimha Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    482482    }
    483483
     484    // check if it's the standard child window case
    484485    if ((cs->style & WS_CHILD) && cs->hwndParent)
    485486    {
    486487        SetParent(cs->hwndParent);
    487         owner = 0;
     488        owner = NULL;
    488489        //SvL: Shell positioning shouldn't be done for child windows! (breaks Notes)
    489490        fXDefault = fCXDefault = FALSE;
     
    491492    else
    492493    {
     494        // either no child window or a popup window
     495
    493496        SetParent(0);
    494497        if (!cs->hwndParent || (cs->hwndParent == windowDesktop->getWindowHandle())) {
     
    497500        else
    498501        {
    499             Win32BaseWindow *wndparent = GetWindowFromHandle(cs->hwndParent);
     502            // we're a popup window
     503
     504            Win32BaseWindow *wndparent = GetWindowFromHandle(cs->hwndParent);
    500505            if(wndparent) {
    501506                 owner = GetWindowFromHandle(wndparent->GetTopParent());
     
    555560    OSLibWinConvertStyle(dwStyle,dwExStyle,&dwOSWinStyle, &dwOSFrameStyle);
    556561
    557     OS2Hwnd = OSLibWinCreateWindow((getParent()) ? getParent()->getOS2WindowHandle() : OSLIB_HWND_DESKTOP,
    558                                    dwOSWinStyle, dwOSFrameStyle, (char *)windowNameA,
    559                                    (owner) ? owner->getOS2WindowHandle() : ((getParent()) ? getParent()->getOS2WindowHandle() : OSLIB_HWND_DESKTOP),
     562    // create PM windows - frame and client window
     563    HWND hwndOS2Frame = (getParent()) ? getParent()->getOS2WindowHandle() : OSLIB_HWND_DESKTOP;
     564    OS2Hwnd = OSLibWinCreateWindow(hwndOS2Frame,
     565                                   dwOSWinStyle,
     566                                   dwOSFrameStyle,
     567                                   (char *)windowNameA,
     568                                   (owner) ? owner->getOS2WindowHandle() : hwndOS2Frame,
    560569                                   (hwndLinkAfter == HWND_BOTTOM) ? TRUE : FALSE,
    561                                    0, fTaskList,fXDefault | fCXDefault,windowClass->getStyle(), &OS2HwndFrame);
     570                                   0,
     571                                   fTaskList,
     572                                   fXDefault | fCXDefault,
     573                                   windowClass->getStyle(),
     574                                   &OS2HwndFrame);
    562575    if(OS2Hwnd == 0) {
    563576        dprintf(("Window creation failed!! OS LastError %0x", OSLibWinGetLastError()));
Note: See TracChangeset for help on using the changeset viewer.