Ignore:
Timestamp:
Jan 12, 2000, 4:14:16 PM (26 years ago)
Author:
sandervl
Message:

client positioning + scrollbar fixes

File:
1 edited

Legend:

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

    r2415 r2418  
    1 /* $Id: pmframe.cpp,v 1.11 2000-01-12 12:40:45 sandervl Exp $ */
     1/* $Id: pmframe.cpp,v 1.12 2000-01-12 15:14:16 sandervl Exp $ */
    22/*
    33 * Win32 Frame Managment Code for OS/2
     
    391391  return WinDefWindowProc(hwnd,msg,mp1,mp2);
    392392}
    393 
     393//******************************************************************************
     394//******************************************************************************
    394395PVOID FrameSubclassFrameWindow(Win32BaseWindow *win32wnd)
    395396{
    396397  return WinSubclassWindow(win32wnd->getOS2FrameWindowHandle(),PFNWP(Win32FrameProc));
    397398}
    398 
    399 VOID FrameUpdateFrame(Win32BaseWindow *win32wnd,DWORD flags)
     399//******************************************************************************
     400//******************************************************************************
     401VOID FrameUpdateClient(Win32BaseWindow *win32wnd)
    400402{
    401   WinSendMsg(win32wnd->getOS2FrameWindowHandle(),WM_UPDATEFRAME,(MPARAM)flags,(MPARAM)0);
     403  RECTL rect;
     404  SWP swpClient = {0};
     405
     406        win32wnd->MsgFormatFrame();
     407        //CB: todo: use result for WM_CALCVALIDRECTS
     408        mapWin32ToOS2Rect(WinQueryWindow(win32wnd->getOS2FrameWindowHandle(),QW_PARENT),win32wnd->getOS2FrameWindowHandle(),win32wnd->getClientRectPtr(),(PRECTLOS2)&rect);
     409
     410        swpClient.hwnd = win32wnd->getOS2WindowHandle();
     411        swpClient.hwndInsertBehind = 0;
     412        swpClient.x  = rect.xLeft;
     413        swpClient.y  = rect.yBottom;
     414        swpClient.cx = rect.xRight-rect.xLeft;
     415        swpClient.cy = rect.yTop-rect.yBottom;
     416        swpClient.fl = SWP_MOVE | SWP_SIZE;
     417        WinSetMultWindowPos(GetThreadHAB(), &swpClient, 1);
    402418}
     419//******************************************************************************
     420//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.