Changeset 1542 for trunk/src/user32


Ignore:
Timestamp:
Nov 2, 1999, 6:07:25 PM (26 years ago)
Author:
cbratschi
Message:

frame bug fixes

Location:
trunk/src/user32
Files:
3 edited

Legend:

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

    r1540 r1542  
    1 /* $Id: pmframe.cpp,v 1.16 1999-11-01 19:11:41 sandervl Exp $ */
     1/* $Id: pmframe.cpp,v 1.17 1999-11-02 17:07:25 cbratschi Exp $ */
    22/*
    33 * Win32 Frame Managment Code for OS/2
     
    245245
    246246        if(!win32wnd->CanReceiveSizeMsgs()) {
     247            goto RunDefFrameProc; //CB: must call def frame proc or frame control activation is broken
    247248            break;
    248249        }
     
    267268           if(wndAfter) wp.hwndInsertAfter = wndAfter->getWindowHandle();
    268269        }
     270
     271        //CB: problems with profmine titlebar tracking
    269272        if(win32wnd->MsgPosChanging((LPARAM)&wp) == 0)
    270273        {//app or default window handler changed wp
    271274            dprintf(("PMFRAME: WM_ADJUSTWINDOWPOS, app changed windowpos struct"));
    272275            dprintf(("%x (%d,%d), (%d,%d)", pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
     276
    273277            OSLibMapWINDOWPOStoSWPFrame(&wp, pswp, &swpOld, hParent, hwnd);
    274278            dprintf(("%x (%d,%d), (%d,%d)", pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
     
    277281            pswp->hwnd = hwnd;
    278282
    279             RestoreOS2TIB();
    280             return (MRESULT)0xf;
     283            goto RunDefFrameProc; //CB: must call def frame proc or frame control activation is broken
     284            //RestoreOS2TIB();
     285            //return (MRESULT)0xf;
    281286        }
    282287        goto RunDefFrameProc; //CB: must call def frame proc or frame control activation is broken
  • trunk/src/user32/win32dlg.cpp

    r1526 r1542  
    1 /* $Id: win32dlg.cpp,v 1.26 1999-10-31 01:14:42 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.27 1999-11-02 17:07:25 cbratschi Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    1919#include <win32dlg.h>
    2020#include "oslibmsg.h"
     21#include "oslibwin.h"
    2122#include "win32wdesktop.h"
    2223#include "controls.h"
     
    270271    {
    271272        topOwner->EnableWindow( FALSE );
     273        //CB: todo: make modal, implement modeless, remove FCF_TASKLIST
     274        //    emulate WinProcessDlg
    272275        ShowWindow( SW_SHOW );
    273276
  • trunk/src/user32/win32wbase.cpp

    r1540 r1542  
    1 /* $Id: win32wbase.cpp,v 1.71 1999-11-01 19:11:43 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.72 1999-11-02 17:07:25 cbratschi Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    16011601    case WM_SETTEXT:
    16021602    {
    1603         if(!fInternalMsg) 
     1603        if(!fInternalMsg)
    16041604        {
    16051605           LRESULT result;
     
    24222422HWND Win32BaseWindow::SetActiveWindow()
    24232423{
    2424   return OSLibWinSetActiveWindow(OS2Hwnd);
     2424  return OSLibWinSetActiveWindow(OS2HwndFrame);
    24252425}
    24262426//******************************************************************************
     
    24292429BOOL Win32BaseWindow::EnableWindow(BOOL fEnable)
    24302430{
    2431   return OSLibWinEnableWindow(OS2Hwnd, fEnable);
     2431  return OSLibWinEnableWindow(OS2HwndFrame, fEnable);
    24322432}
    24332433//******************************************************************************
     
    24352435BOOL Win32BaseWindow::CloseWindow()
    24362436{
    2437   return OSLibWinMinimizeWindow(OS2Hwnd);
     2437  return OSLibWinMinimizeWindow(OS2HwndFrame);
    24382438}
    24392439//******************************************************************************
     
    24592459BOOL Win32BaseWindow::IsWindowEnabled()
    24602460{
    2461     return OSLibWinIsWindowEnabled(OS2Hwnd);
     2461    return OSLibWinIsWindowEnabled(OS2HwndFrame);
    24622462}
    24632463//******************************************************************************
     
    24682468    return (dwStyle & WS_VISIBLE) == WS_VISIBLE;
    24692469#else
    2470     return OSLibWinIsWindowVisible(OS2Hwnd);
     2470    return OSLibWinIsWindowVisible(OS2HwndFrame);
    24712471#endif
    24722472}
Note: See TracChangeset for help on using the changeset viewer.