Ignore:
Timestamp:
Jun 12, 2001, 10:02:35 AM (24 years ago)
Author:
sandervl
Message:

PM frame control positioning fixes

File:
1 edited

Legend:

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

    r5951 r5969  
    1 /* $Id: oslibwin.cpp,v 1.97 2001-06-10 12:05:38 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.98 2001-06-12 08:02:35 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    141141  HWND hwndControl;
    142142  int  i = 0;
    143   static int minmaxwidth = 0;
     143  static int minmaxwidth  = 0;
     144  static int minmaxheight = 0;
    144145
    145146  if(minmaxwidth == 0) {
    146       minmaxwidth = WinQuerySysValue(HWND_DESKTOP, SV_CXMINMAXBUTTON);
     147      minmaxwidth  = WinQuerySysValue(HWND_DESKTOP, SV_CXMINMAXBUTTON);
     148      minmaxheight = WinQuerySysValue(HWND_DESKTOP, SV_CYMINMAXBUTTON);
    147149  }
    148150
     
    153155      swp[i].x  = pRect->xLeft;
    154156      swp[i].y  = pRect->yBottom;
     157      if(pRect->yTop - pRect->yBottom > minmaxheight) {
     158          swp[i].y += pRect->yTop - pRect->yBottom - minmaxheight;
     159      }
    155160      swp[i].cx = minmaxwidth/2;
    156       swp[i].cy = pRect->yTop - pRect->yBottom;
     161      swp[i].cy = minmaxheight;;
    157162      swp[i].fl = SWP_SIZE | SWP_MOVE | SWP_SHOW;
    158       pRect->xLeft += swp[i].cx;
     163      dprintf(("FID_SYSMENU (%d,%d)(%d,%d)", swp[i].x, swp[i].y, swp[i].cx, swp[i].cy));
     164      pRect->xLeft += minmaxwidth/2;
    159165      i++;
    160166  }
     
    167173      swp[i].cx = pRect->xRight - pRect->xLeft;
    168174      if(WinWindowFromID(hwndFrame, FID_MINMAX)) {
    169           swp[i].cx -= minmaxwidth - minmaxwidth/2;
     175          swp[i].cx -= (minmaxwidth + minmaxwidth/2);
    170176      }
    171177      swp[i].cy = pRect->yTop - pRect->yBottom;
    172178      swp[i].fl = SWP_SIZE | SWP_MOVE | SWP_SHOW;
     179      dprintf(("FID_TITLEBAR (%d,%d)(%d,%d)", swp[i].x, swp[i].y, swp[i].cx, swp[i].cy));
    173180      pRect->xLeft += swp[i].cx;
    174181      i++;
     
    180187      swp[i].x  = pRect->xLeft;
    181188      swp[i].y  = pRect->yBottom;
     189      if(pRect->yTop - pRect->yBottom > minmaxheight) {
     190          swp[i].y += pRect->yTop - pRect->yBottom - minmaxheight;
     191      }
    182192      swp[i].cx = minmaxwidth + minmaxwidth/2;
    183       swp[i].cy = pRect->yTop - pRect->yBottom;
     193      swp[i].cy = minmaxheight;
    184194      swp[i].fl = SWP_SIZE | SWP_MOVE | SWP_SHOW;
     195      dprintf(("FID_MINMAX (%d,%d)(%d,%d)", swp[i].x, swp[i].y, swp[i].cx, swp[i].cy));
    185196      pRect->xLeft += swp[i].cx;
    186197      i++;
Note: See TracChangeset for help on using the changeset viewer.