Ignore:
Timestamp:
Oct 15, 2001, 7:10:55 PM (24 years ago)
Author:
sandervl
Message:

custom build update

File:
1 edited

Legend:

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

    r6401 r7063  
    1 /* $Id: oslibwin.cpp,v 1.108 2001-07-29 18:59:27 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.109 2001-10-15 17:09:03 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    157157  }
    158158
    159 #if 0
    160   hwndControl = WinWindowFromID(hwndFrame, FID_SYSMENU);
    161   if(hwndControl) {
    162       swp[i].hwnd = hwndControl;
    163       swp[i].hwndInsertBehind = HWND_TOP;
    164       swp[i].x  = pRect->xLeft;
    165       swp[i].y  = pRect->yBottom;
    166       if(pRect->yTop - pRect->yBottom > minmaxheight) {
    167           swp[i].y += pRect->yTop - pRect->yBottom - minmaxheight;
     159  if(fOS2Look == OS2_APPEARANCE_SYSMENU) {
     160      hwndControl = WinWindowFromID(hwndFrame, FID_SYSMENU);
     161      if(hwndControl) {
     162          swp[i].hwnd = hwndControl;
     163          swp[i].hwndInsertBehind = HWND_TOP;
     164          swp[i].x  = pRect->xLeft;
     165          swp[i].y  = pRect->yBottom;
     166          if(pRect->yTop - pRect->yBottom > minmaxheight) {
     167              swp[i].y += pRect->yTop - pRect->yBottom - minmaxheight;
     168          }
     169          swp[i].cx = minmaxwidth/2;
     170          swp[i].cy = minmaxheight;;
     171          swp[i].fl = SWP_SIZE | SWP_MOVE | SWP_SHOW;
     172          dprintf(("FID_SYSMENU (%d,%d)(%d,%d)", swp[i].x, swp[i].y, swp[i].cx, swp[i].cy));
     173          pRect->xLeft += minmaxwidth/2;
     174          i++;
    168175      }
    169       swp[i].cx = minmaxwidth/2;
    170       swp[i].cy = minmaxheight;;
    171       swp[i].fl = SWP_SIZE | SWP_MOVE | SWP_SHOW;
    172       dprintf(("FID_SYSMENU (%d,%d)(%d,%d)", swp[i].x, swp[i].y, swp[i].cx, swp[i].cy));
    173       pRect->xLeft += minmaxwidth/2;
    174       i++;
    175   }
    176 #else
     176  }
     177  else
    177178  if((dwStyle & WS_SYSMENU_W) && !(dwExStyle & WS_EX_TOOLWINDOW_W) && hSysMenuIcon) {
    178179      pRect->xLeft += minmaxwidth/2;
    179180  }
    180 #endif
     181
    181182  if((dwStyle & WS_CAPTION_W) == WS_CAPTION_W) {
    182183      hwndControl = WinWindowFromID(hwndFrame, FID_TITLEBAR);
Note: See TracChangeset for help on using the changeset viewer.