Ignore:
Timestamp:
Oct 17, 1999, 9:32:05 PM (26 years ago)
Author:
cbratschi
Message:

DrawIcon/DrawIconEx, fixed other icon handling problems

File:
1 edited

Legend:

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

    r1333 r1343  
    1 /* $Id: pmframe.cpp,v 1.7 1999-10-17 12:17:44 cbratschi Exp $ */
     1/* $Id: pmframe.cpp,v 1.8 1999-10-17 19:32:04 cbratschi Exp $ */
    22/*
    33 * Win32 Frame Managment Code for OS/2
     
    9292BOOL CanDrawSizeBox(Win32BaseWindow *win32wnd)
    9393{
    94   return (!win32wnd->isChild() && WinQueryWindowULong(win32wnd->getOS2FrameWindowHandle(),QWL_STYLE) & FS_SIZEBORDER
     94  return (win32wnd->getStyle() & WS_SIZEBOX_W && WinQueryWindowULong(win32wnd->getOS2FrameWindowHandle(),QWL_STYLE) & FS_SIZEBORDER
    9595          && win32wnd->getVertScrollHandle() && WinQueryWindow(win32wnd->getVertScrollHandle(),QW_PARENT) == win32wnd->getOS2FrameWindowHandle()
    9696          && win32wnd->getHorzScrollHandle() && WinQueryWindow(win32wnd->getHorzScrollHandle(),QW_PARENT) == win32wnd->getOS2FrameWindowHandle());
     
    272272
    273273          GetSizeBox(win32wnd,&rect);
    274           hps = WinGetClipPS(hwnd,0,PSF_CLIPCHILDREN);
     274          hps = WinGetClipPS(hwnd,0,PSF_CLIPCHILDREN | PSF_CLIPSIBLINGS);
    275275          DrawSizeBox(hps,rect);
    276276          WinReleasePS(hps);
     
    293293        rect.yTop = rect.yTop-rect.yBottom;
    294294        rect.xLeft = rect.yBottom = 0;
    295         hps = WinGetClipPS(hwnd,0,PSF_CLIPCHILDREN);
     295        hps = WinGetClipPS(hwnd,0,PSF_CLIPCHILDREN | PSF_CLIPSIBLINGS);
    296296        DrawFrame(hps,&rect,win32wnd);
    297297        WinReleasePS(hps);
     
    318318
    319319          GetSizeBox(win32wnd,&rect);
    320           hps = WinGetClipPS(hwnd,0,PSF_CLIPCHILDREN);
     320          hps = WinGetClipPS(hwnd,0,PSF_CLIPCHILDREN | PSF_CLIPSIBLINGS);
    321321          DrawSizeBox(hps,rect);
    322322          WinReleasePS(hps);
     
    338338        rect.yTop = rect.yTop-rect.yBottom;
    339339        rect.xLeft = rect.yBottom = 0;
    340         hps = WinGetClipPS(hwnd,0,PSF_CLIPCHILDREN);
     340        hps = WinGetClipPS(hwnd,0,PSF_CLIPCHILDREN | PSF_CLIPSIBLINGS);
    341341        DrawFrame(hps,&rect,win32wnd);
    342342        WinReleasePS(hps);
Note: See TracChangeset for help on using the changeset viewer.