Ignore:
Timestamp:
Jun 7, 2000, 4:51:33 PM (25 years ago)
Author:
sandervl
Message:

Major rewrite: frame/client -> frame

File:
1 edited

Legend:

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

    r3625 r3662  
    1 /* $Id: win32wbasenonclient.cpp,v 1.23 2000-05-28 16:43:47 sandervl Exp $ */
     1/* $Id: win32wbasenonclient.cpp,v 1.24 2000-06-07 14:51:32 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2 (non-client methods)
     
    211211  }
    212212
    213   pt.x -= rectWindow.left;
    214   pt.y -= rectWindow.top;
    215   SCROLL_HandleScrollEvent(Win32Hwnd,0,MAKELONG(pt.x,pt.y),scrollbar,WM_LBUTTONDOWN);
     213  ScreenToClient(getWindowHandle(), &pt);
     214  pt.x += rectClient.left;
     215  pt.y += rectClient.top;
     216
     217  SCROLL_HandleScrollEvent(getWindowHandle(),0,MAKELONG(pt.x,pt.y),scrollbar,WM_LBUTTONDOWN);
    216218  if (GetCapture() != Win32Hwnd) return;
    217219  do
     
    224226        case WM_LBUTTONUP:
    225227        case WM_MOUSEMOVE:
    226             pt.x = msg.pt.x-rectWindow.left;
    227             pt.y = msg.pt.y-rectWindow.top;
     228            pt.x = msg.pt.x;
     229            pt.y = msg.pt.y;
     230            ScreenToClient(getWindowHandle(), &pt);
     231            pt.x += rectClient.left;
     232            pt.y += rectClient.top;
    228233            msg.lParam = MAKELONG(pt.x,pt.y);
    229234
     
    262267        {
    263268            //SvL: Calling topparent->SetActiveWindow() causes focus problems
    264             OSLibWinSetFocus(topparent->getOS2FrameWindowHandle());
     269//          topparent->SetActiveWindow();
     270            OSLibWinSetFocus(topparent->getOS2WindowHandle());
    265271        }
    266272
    267273        if (GetActiveWindow() == topparent->getWindowHandle())
    268274            SendInternalMessageA(WM_SYSCOMMAND,SC_MOVE+HTCAPTION,lParam);
     275        else dprintf(("ACtive window (%x) != toplevel wnd %x", OSLibWinQueryActiveWindow(), topparent->getWindowHandle()));
    269276        break;
    270277    }
     
    425432LONG Win32BaseWindow::HandleNCHitTest(POINT pt)
    426433{
    427   RECT rect = rectWindow;
     434  RECT rect;
    428435
    429436  if (dwStyle & WS_MINIMIZE) return HTCAPTION;
     437
     438  GetWindowRect(getWindowHandle(), &rect);
    430439
    431440  if (!PtInRect(&rect,pt)) return HTNOWHERE;
     
    10071016    //only redraw caption
    10081017    GetRgnBox(clip,&rectClip);
     1018#if 1
    10091019    //SvL: I'm getting paint problems when clipping a dc created in GetDCEx
    10101020    //     with a region that covers the entire window (RealPlayer 7 Update 1)
     
    10161026        rectClip = rect;
    10171027    }
     1028#endif
    10181029  }
    10191030  else
     
    11221133  }
    11231134
    1124   ReleaseDC(Win32Hwnd,hdc);
     1135  ReleaseDC(getWindowHandle(),hdc);
    11251136  IncreaseLogCount();
    11261137  dprintf(("**DoNCPaint %x DONE", getWindowHandle()));
     
    13051316
    13061317    case SC_TASKLIST:
    1307         OSLibWinShowTaskList(getOS2FrameWindowHandle());
     1318        OSLibWinShowTaskList(getOS2WindowHandle());
    13081319        break;
    13091320
Note: See TracChangeset for help on using the changeset viewer.