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

Several window position bugfixes

File:
1 edited

Legend:

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

    r2433 r2435  
    1 /* $Id: win32wbase.cpp,v 1.39 2000-01-13 20:11:37 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.40 2000-01-14 13:16:58 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    10821082  RECT oldWindowRect = rectWindow, client = rectClient, newWindowRect;
    10831083  WINDOWPOS wndPos;
     1084  ULONG rc;
    10841085
    10851086  if(lpWndPos) {
    10861087    //set new window rectangle
    10871088    setWindowRect(lpWndPos->x, lpWndPos->y, lpWndPos->x + lpWndPos->cx, lpWndPos->y + lpWndPos->cy);
    1088     newWindowRect = rectWindow;
     1089    newWindowRect= rectWindow;
    10891090  }
    10901091  else {
    1091     wndPos.hwnd  = Win32Hwnd;
     1092    wndPos.hwnd  = getWindowHandle();
    10921093    wndPos.hwndInsertAfter = 0;
    10931094    newWindowRect= rectWindow;
     
    10981099    wndPos.cy    = newWindowRect.bottom - newWindowRect.top;
    10991100    wndPos.flags = SWP_FRAMECHANGED;
    1100     lpWndPos = &wndPos;
    1101   }
    1102 
    1103   return SendNCCalcSize(TRUE, &oldWindowRect, &newWindowRect, &client, &wndPos, &rectClient);
     1101    lpWndPos     = &wndPos;
     1102  }
     1103
     1104  rc = SendNCCalcSize(TRUE, &newWindowRect,  &oldWindowRect, &client, lpWndPos, &rectClient);
     1105
     1106  dprintf(("MsgFormatFrame: old client rect (%d,%d)(%d,%d), new client (%d,%d)(%d,%d)", client.left, client.top, client.right, client.bottom, rectClient.left, rectClient.top, rectClient.right, rectClient.bottom));
     1107  return rc;
    11041108}
    11051109//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.