Changeset 9463 for trunk/src


Ignore:
Timestamp:
Dec 4, 2002, 4:23:41 PM (23 years ago)
Author:
sandervl
Message:

extra logging + support for postponed ddraw resize

Location:
trunk/src/user32
Files:
4 edited

Legend:

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

    r9345 r9463  
    1 /* $Id: oslibwin.cpp,v 1.129 2002-10-15 09:18:10 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.130 2002-12-04 15:23:38 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    682682    pwpos->hwndInsertAfter  = hWinAfter;
    683683    pwpos->hwnd             = hWindow;
     684
     685    dprintf2(("OSLibMapSWPtoWINDOWPOS %x (%d,%d)(%d,%d) -> %x (%d,%d)(%d,%d) parent height %d", pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy, flags, x, y, cx, cy, parentHeight));
    684686}
    685687//******************************************************************************
     
    762764   pswp->ulReserved1      = 0;
    763765   pswp->ulReserved2      = 0;
     766
     767   dprintf2(("OSLibMapWINDOWPOStoSWP %x (%d,%d)(%d,%d) -> %x (%d,%d)(%d,%d) parent height %d", pwpos->flags, pwpos->x, pwpos->y, pwpos->cx, pwpos->cy, flags, x, y, cx, cy, parentHeight));
    764768}
    765769//******************************************************************************
  • trunk/src/user32/pmwindow.cpp

    r9437 r9463  
    1 /* $Id: pmwindow.cpp,v 1.190 2002-11-27 13:56:26 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.191 2002-12-04 15:23:39 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    2121
    2222#include <os2wrap.h>
     23#include <odinwrap.h>
    2324#include <stdlib.h>
    2425#include <string.h>
     
    491492    SetWin32TIB();
    492493
     494#ifdef DEBUG
     495    dbg_ThreadPushCall("Win32WindowProc");
     496#endif
     497
    493498    // BEGIN NOTE-------------->>>>>> If this is changed, also change Win32FrameWindowProc!! <<<<<<<<<<<-------------------- BEGIN
    494499    teb = GetThreadTEB();
     
    557562        RELEASE_WNDOBJ(win32wnd);
    558563        RestoreOS2TIB();
     564
     565#ifdef DEBUG
     566        dbg_ThreadPopCall();
     567#endif
    559568        return rc;
    560569    }
     
    670679        win32wnd->callVisibleRgnNotifyProc(FALSE);
    671680        goto RunDefWndProc;
     681
     682    case WIN32APP_DDRAWFULLSCREEN:
     683        //Changing the size of the win32 window in SetCooperativeLevel can
     684        //fail if this happens during WM_ADJUSTWINDOWPOS
     685        //NOTE: This is not a good solution, but a proper fix is more difficult
     686        //      with the current window mess
     687        dprintf(("WIN32APP_DDRAWFULLSCREEN %x (%d,%d)", win32wnd->getWindowHandle(), mp1, mp2));
     688        SetWindowPos(win32wnd->getWindowHandle(), HWND_TOP_W, 0, 0, (DWORD)mp1, (DWORD)mp2, 0);
     689        ShowWindow(win32wnd->getWindowHandle(), SW_SHOW_W);
     690        break;
    672691
    673692    case WIN32APP_SETFOCUSMSG:
     
    10331052    if(win32wnd) RELEASE_WNDOBJ(win32wnd);
    10341053    RestoreOS2TIB();
     1054
     1055#ifdef DEBUG
     1056    dbg_ThreadPopCall();
     1057#endif
    10351058    return (MRESULT)rc;
    10361059
     
    10391062    if(win32wnd) RELEASE_WNDOBJ(win32wnd);
    10401063    RestoreOS2TIB();
     1064
     1065#ifdef DEBUG
     1066    dbg_ThreadPopCall();
     1067#endif
    10411068    return WinDefWindowProc( hwnd, msg, mp1, mp2 );
    10421069} /* End of Win32WindowProc */
     
    10511078 MRESULT          rc = 0;
    10521079 MSG              winMsg, *pWinMsg;
     1080
     1081#ifdef DEBUG
     1082    dbg_ThreadPushCall("Win32FrameWindowProc");
     1083#endif
    10531084
    10541085    //Restore our FS selector
     
    14061437        }
    14071438        dprintf(("WM_ADJUSTWINDOWPOS ret %x flags %x", ret, WinQueryWindowUShort(hwnd, QWS_FLAGS)));
     1439//testestset
     1440        if(ret == 0x0f) {
     1441            dprintf(("PMFRAME:WM_ADJUSTWINDOWPOS, app changed windowpos struct"));
     1442            dprintf(("%x (%s) (%d,%d), (%d,%d)", pswp->fl, DbgGetStringSWPFlags(pswp->fl), pswp->x, pswp->y, pswp->cx, pswp->cy));
     1443        }
     1444//testestset
    14081445        rc = (MRESULT)ret;
    14091446        break;
     
    19541991    if(win32wnd) RELEASE_WNDOBJ(win32wnd);
    19551992    RestoreOS2TIB();
     1993
     1994#ifdef DEBUG
     1995    dbg_ThreadPopCall();
     1996#endif
    19561997    return (MRESULT)rc;
    19571998
     
    19602001    if(win32wnd) RELEASE_WNDOBJ(win32wnd);
    19612002    RestoreOS2TIB();
     2003
     2004#ifdef DEBUG
     2005    dbg_ThreadPopCall();
     2006#endif
    19622007    return pfnFrameWndProc(hwnd, msg, mp1, mp2);
    19632008
     
    19682013    //calling WinDefWindowProc here breaks Opera hotlist window (WM_ADJUSTWINDOWPOS)
    19692014//    return pfnFrameWndProc(hwnd, msg, mp1, mp2);
     2015
     2016#ifdef DEBUG
     2017    dbg_ThreadPopCall();
     2018#endif
    19702019    return WinDefWindowProc( hwnd, msg, mp1, mp2 );
    19712020}
  • trunk/src/user32/win32wbase.cpp

    r9418 r9463  
    1 /* $Id: win32wbase.cpp,v 1.343 2002-11-20 12:59:06 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.344 2002-12-04 15:23:40 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    24992499     //we will update the restore position at the end of this method
    25002500        if(!(wpos.flags & SWP_NOSIZE)) {
     2501            //TODO: updating the window rectangle doesn't look right
    25012502            wpos.flags |= SWP_NOSIZE;
    25022503            rectWindow.right  = rectWindow.left + wpos.cx;
    25032504            rectWindow.bottom = rectWindow.top + wpos.cy;
     2505            dprintf(("WARNING: Don't allow size change for minimized window; only save new restore position"));
     2506            dprintf(("new window rectangle (%d,%d)(%d,%d)", rectWindow.left, rectWindow.top, rectWindow.right, rectWindow.bottom));
    25042507        }
    25052508    }
  • trunk/src/user32/win32wbase.h

    r9418 r9463  
    1 /* $Id: win32wbase.h,v 1.146 2002-11-20 12:59:06 sandervl Exp $ */
     1/* $Id: win32wbase.h,v 1.147 2002-12-04 15:23:41 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    6262    LPSTR               string;   /* Property string (or atom) */
    6363} PROPERTY;
    64 
    65 //PostThreadMessage is done through Open32; which means the message id will be translated
    66 //(0xc00 added)
    67 #define OPEN32_MSGDIFF            0xC00
    68 #define WIN32APP_POSTMSG          (0x1000+OPEN32_MSGDIFF)
    69 
    70 //PM doesn't allow SetFocus during WM_SETFOCUS message processing; must delay
    71 //this by posting a message
    72 //NOTE Must be smaller than WIN32APP_POSTMSG!
    73 #define WIN32APP_SETFOCUSMSG      (WIN32APP_POSTMSG-1)
    74 #define WIN32APP_POSTPONEDESTROY  (WIN32APP_POSTMSG-2)
    75 
    76 #define WIN32MSG_MAGICA           0x12345678
    77 #define WIN32MSG_MAGICW           0x12345679
    78 
    79 typedef struct
    80 {
    81         ULONG           wParam;
    82         ULONG           lParam;
    83 } POSTMSG_PACKET;
    8464
    8565#define HAS_DLGFRAME(style,exStyle) \
Note: See TracChangeset for help on using the changeset viewer.