Ignore:
Timestamp:
Apr 7, 2000, 2:55:16 PM (25 years ago)
Author:
sandervl
Message:

clip fix for WM_NCPAINT

File:
1 edited

Legend:

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

    r3284 r3341  
    1 /* $Id: win32wbase.cpp,v 1.176 2000-03-31 14:42:48 cbratschi Exp $ */
     1/* $Id: win32wbase.cpp,v 1.177 2000-04-07 12:55:16 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    10261026
    10271027////    mapWin32Rect(getParent() ? getParent()->getOS2WindowHandle():OSLIB_HWND_DESKTOP,OS2HwndFrame,&client);
    1028     if ((rect.left >= client.left) && (rect.left < client.right) &&
    1029         (rect.right >= client.left) && (rect.right < client.right) &&
    1030         (rect.top  >= client.top) && (rect.top < client.bottom) &&
    1031         (rect.bottom >= client.top) && (rect.bottom < client.bottom))
    1032       return 0;
    1033 
    1034     dprintf(("MsgNCPaint (%d,%d)(%d,%d)", rect.left, rect.top, rect.right, rect.bottom));
    1035     hrgn = CreateRectRgnIndirect(&rect);
    1036     if (!hrgn) return 0;
    1037     rc = SendInternalMessageA(WM_NCPAINT,hrgn,0);
    1038     DeleteObject(hrgn);
    1039 
    1040     return rc;
    1041   }
    1042   else return 0;
     1028        if ((rect.left >= client.left) && (rect.left < client.right) &&
     1029           (rect.right >= client.left) && (rect.right < client.right) &&
     1030           (rect.top  >= client.top) && (rect.top < client.bottom) &&
     1031           (rect.bottom >= client.top) && (rect.bottom < client.bottom))
     1032        {
     1033                return 0;
     1034        }
     1035
     1036        dprintf(("MsgNCPaint (%d,%d)(%d,%d)", rect.left, rect.top, rect.right, rect.bottom));
     1037        hrgn = CreateRectRgnIndirect(&rect);
     1038        if (!hrgn) return 0;
     1039
     1040        rc = SendInternalMessageA(WM_NCPAINT,hrgn,0);
     1041
     1042        DeleteObject(hrgn);
     1043
     1044        return rc;
     1045  }
     1046  else  return 0;
    10431047}
    10441048//******************************************************************************
     
    12951299        if ((dwStyle & WS_CAPTION) == WS_CAPTION)
    12961300        {
    1297           HandleNCPaint((HRGN)1);
     1301//          HandleNCPaint((HRGN)1);
    12981302          OSLibWinSetWindowText(OS2HwndFrame,(LPSTR)windowNameA);
    12991303        }
Note: See TracChangeset for help on using the changeset viewer.