Ignore:
Timestamp:
Jan 13, 2000, 2:54:55 PM (26 years ago)
Author:
sandervl
Message:

wm_activate fixes, scrollbar fix, drawframe fix

File:
1 edited

Legend:

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

    r2411 r2426  
    1 /* $Id: win32wbasenonclient.cpp,v 1.3 2000-01-11 18:32:07 cbratschi Exp $ */
     1/* $Id: win32wbasenonclient.cpp,v 1.4 2000-01-13 13:54:54 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2 (non-client methods)
     
    586586    width = GetSystemMetrics(SM_CXDLGFRAME) - GetSystemMetrics(SM_CXEDGE);
    587587    height = GetSystemMetrics(SM_CYDLGFRAME) - GetSystemMetrics(SM_CYEDGE);
    588   } else
     588  }
     589  else
    589590  {
    590591    width = GetSystemMetrics(SM_CXFRAME) - GetSystemMetrics(SM_CXEDGE);
     
    595596
    596597  /* Draw frame */
    597 
    598   PatBlt(hdc,rect->left,rect->top,rect->right-rect->left,height,PATCOPY);
    599   PatBlt(hdc,rect->left,rect->top,width,rect->bottom-rect->top,PATCOPY);
    600   PatBlt(hdc,rect->left,rect->bottom-1,rect->right-rect->left,-height,PATCOPY);
    601   PatBlt(hdc,rect->right-1,rect->top,-width,rect->bottom-rect->top,PATCOPY);
     598  PatBlt(hdc,rect->left,   rect->top,      rect->right-rect->left, height,PATCOPY);
     599  PatBlt(hdc,rect->left,   rect->top,      width,                  rect->bottom-rect->top,PATCOPY);
     600  PatBlt(hdc,rect->left,   rect->bottom, rect->right-rect->left,-height,PATCOPY);
     601  //SvL: Was PatBlt(hdc,rect->left,   rect->bottom-1, rect->right-rect->left,-height,PATCOPY);
     602  PatBlt(hdc,rect->right,  rect->top,     -width,                  rect->bottom-rect->top,PATCOPY);
     603  //SvL: Was PatBlt(hdc,rect->right-1,  rect->top,     -width,                  rect->bottom-rect->top,PATCOPY);
    602604  SelectObject(hdc,oldBrush);
    603605
     
    11441146
    11451147    case SC_MOVE:
    1146       FrameTrackFrame(this,TFOS_MOVE);
    1147       break;
     1148        FrameTrackFrame(this,TFOS_MOVE);
     1149        break;
    11481150
    11491151    case SC_MINIMIZE:
Note: See TracChangeset for help on using the changeset viewer.